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

[QA] Vizro AI dashboard tests improvements #935

Merged
merged 26 commits into from
Feb 4, 2025
Merged

Conversation

l0uden
Copy link
Contributor

@l0uden l0uden commented Dec 24, 2024

Description

  • rewrote score calculation with numpy lib
  • added prompt text to report
  • added anthropic provider for an easy dashboard creation (it failed to build medium and complex dashboard)
  • added complex prompt to have score less than 1.0

Reference to potential complexity prompts improvements -> #935 (comment)

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.

@github-actions github-actions bot added the Vizro-AI 🤖 Issue/PR that addresses Vizro-AI package label Dec 24, 2024
Copy link
Contributor

@petar-qb petar-qb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like these enhancements Alexey. There are a few comments, but other than that, it's all good

vizro-ai/tests/score/prompts.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/prompts.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/prompts.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/prompts.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/test_dashboard.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/test_dashboard.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/test_dashboard.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/test_dashboard.py Outdated Show resolved Hide resolved
Copy link
Contributor

@lingyielia lingyielia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow I really like this whole Score tests logic you created! 💯 I think it's ready to be checked while we touch the vizro-ai code, and can help track the performance more easily.

I just have some minor questions and suggestions. Overall it's really cool!

.github/workflows/test-score-vizro-ai.yml Outdated Show resolved Hide resolved
.github/workflows/test-score-vizro-ai.yml Outdated Show resolved Hide resolved
vizro-ai/tests/score/prompts.py Outdated Show resolved Hide resolved
@l0uden
Copy link
Contributor Author

l0uden commented Jan 16, 2025

Huge thanks for all of your comments!
It is ready for review again

.github/workflows/test-score-vizro-ai.yml Outdated Show resolved Hide resolved
vizro-ai/tests/score/prompts.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/test_dashboard.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/test_dashboard.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/test_dashboard.py Outdated Show resolved Hide resolved
@lingyielia lingyielia self-requested a review January 17, 2025 18:07
Copy link
Contributor

@lingyielia lingyielia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvement! 🎉

Copy link
Contributor

@maxschulz-COL maxschulz-COL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a light review, looks good! I think this is going in the right direction! Left a few small comments. ⭐ 💯

In general I think my main comments are:

  1. Make adding tests as easy as possible (ideally just another prompt + expectation pair, nothing else)
  2. Make adding and removing models etc as easy as possible (ideally just some test parametrization or so)
  3. make the complexity of the dashboard a column in the report, and allow for individual names for newly added tests (such that we can have in the furture smth like, easy_1, easy_2,easy_abc, etc.

Other than that, I think it's exciting!

vizro-ai/hatch.toml Outdated Show resolved Hide resolved
vizro-ai/tests/score/prompts.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/test_dashboard.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/test_dashboard.py Outdated Show resolved Hide resolved
vizro-ai/tests/score/prompts.py Outdated Show resolved Hide resolved
…ests_improvements

� Conflicts:
�	vizro-ai/hatch.toml
�	vizro-ai/pyproject.toml
�	vizro-ai/tests/e2e/data_classes.py
�	vizro-ai/tests/e2e/prompts.py
�	vizro-ai/tests/e2e/pytest.ini
�	vizro-ai/tests/e2e/test_dashboard.py
@l0uden l0uden changed the title [QA] Score tests improvements [QA] Vizro AI dashboard tests improvements Feb 3, 2025
Copy link
Contributor

@maxschulz-COL maxschulz-COL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐ Well done ⭐

I think this is much better, and looks much more usable. PLease address the outstanding comments still, but I think its almost there.

Could we add more models in the parametrization?

vizro-ai/tests/e2e/test_dashboard.py Show resolved Hide resolved
@l0uden
Copy link
Contributor Author

l0uden commented Feb 4, 2025

⭐ Well done ⭐

I think this is much better, and looks much more usable. PLease address the outstanding comments still, but I think its almost there.

Could we add more models in the parametrization?

Sure, added more

@l0uden l0uden merged commit 2426ef6 into main Feb 4, 2025
39 checks passed
@l0uden l0uden deleted the score_tests_improvements branch February 4, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Vizro-AI 🤖 Issue/PR that addresses Vizro-AI package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants