Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Dashboard code generator #522

Draft
wants to merge 70 commits into
base: main
Choose a base branch
from
Draft

Conversation

lingyielia
Copy link
Contributor

@lingyielia lingyielia commented Jun 12, 2024

Description

Run

res = vizro_ai.dashboard([df, df_stocks], user_question_2_data)
res

res contains the following objects:

class DashboardOutputs:
    """Dataclass containing all possible `VizroAI.dashboard()` output."""

    code: str <-- only placeholder for now
    dashboard: vm.Dashboard

Note: the code string is not available yet. Will add later once we finalize the code to string capability.

Remaining TODOs:

  • Solve the circular imports issue of vizro_ai.plot and vizro_ai.dashboard. This is essential for Graph to be enabled in vizro_ai.dashboard.
  • vizro_ai.plot code restructure. so plot code and dashboard code are separated. Tidy/vizro ai restructure #561
  • Enable the Graph component to leverage vizro_ai.plot
    Try other llm offering
  • Anthropic
  • Mistral
    Revisit
  • _compose_imports_code
    Logging
  • Enable default progress logging

Screenshot

Notice

  • I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

    • I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
    • I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorized to submit this contribution on behalf of the original creator(s) or their licensees.
    • I certify that the use of this contribution as authorized by the Apache 2.0 license does not violate the intellectual property rights of anyone else.
    • I have not referenced individuals, products or companies in any commits, directly or indirectly.
    • I have not added data or restricted code in any commits, directly or indirectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stage: Technical Design 🎨 Issue/PR needs to undergo technical design before implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants