-
Notifications
You must be signed in to change notification settings - Fork 977
[OPIK-2240] [BE] Add new demo data to Opik #3132
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
Conversation
📋 PR Linter Failed❌ Invalid Title Format. Your PR title must include a ticket/issue number and at least one component tag (
Example: |
10753ca
to
a0b78b3
Compare
📋 PR Linter Failed❌ Missing Section. The description is missing the |
1 similar comment
📋 PR Linter Failed❌ Missing Section. The description is missing the |
a0b78b3
to
5aea53d
Compare
186440e
to
23d661a
Compare
…hiagohora/OPIK-2240_add_new_demo_data
3714567
to
5908579
Compare
@@ -72,6 +73,44 @@ def test_create_demo_data_structure(httpserver): | |||
httpserver.expect_request("/v1/private/prompts/versions/retrieve", method="POST").respond_with_json(prompt) | |||
httpserver.expect_request("/v1/private/prompts/versions", method="POST").respond_with_json(prompt) | |||
|
|||
# Mock optimization endpoints that don't exist in the backend yet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why they don't exist in BE?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we first called to check if it existed, we then created it.
The base branch was changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the demo data generation in Opik to include more comprehensive examples, including new optimization and thread feedback functionality. The changes enhance the demo experience for users with additional project types and more realistic data patterns.
Key changes:
- Adds new "Opik Demo Optimizer" project with optimization functionality
- Enhances thread feedback scoring with concurrent processing
- Improves time handling to preserve temporal relationships between traces and spans
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
apps/opik-python-backend/src/opik_backend/demo_data_generator.py |
Major refactoring to add optimization project creation, improve time handling, and implement concurrent thread processing |
apps/opik-python-backend/tests/test_demo_data_generator.py |
Adds test mocking for new optimization and thread endpoints |
apps/opik-python-backend/tests/test_evaluator_python.py |
Removes unnecessary empty line |
apps/opik-python-backend/requirements.txt |
Updates opik version from 1.8.4 to 1.8.33 |
apps/opik-python-backend/src/opik_backend/demo_data_generator.py
Outdated
Show resolved
Hide resolved
Fix the error message Co-authored-by: Copilot <[email protected]>
Details
Changing the Opik Demo data.
When adding new demo data to the project, this data will be created for every sign-up for OS and Clouse users.
Change checklist
Issues
Testing
Documentation
NA