Skip to content

Conversation

thiagohora
Copy link
Contributor

@thiagohora thiagohora commented Aug 28, 2025

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

  • User-facing
  • Documentation update

Issues

  • Resolves #
  • OPIK-2240

Testing

  • The creation of the test is covered by unittests

Documentation

NA

@thiagohora thiagohora changed the title OPIK-2240: Add new demo data to opik [OPIK-2240] [BE] Add new demo data to Opik Aug 28, 2025
Copy link
Contributor

📋 PR Linter Failed

Invalid Title Format. Your PR title must include a ticket/issue number and at least one component tag ([FE], [BE], etc.).

  • Internal contributors: Open a JIRA ticket and link to it: [OPIK-xxxx] [COMPONENT] Your change
  • External contributors: Open a Github Issue and link to it via its number: [issue-xxxx] [COMPONENT] Your change

Example: [issue-3108] [BE] [FE] Fix authentication bug

Copy link
Contributor

github-actions bot commented Aug 28, 2025

Python Backend Tests Results

41 tests  ±0   39 ✅ ±0   1m 51s ⏱️ -1s
 1 suites ±0    2 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 28e2f42. ± Comparison against base commit 7db1b89.

♻️ This comment has been updated with latest results.

@thiagohora thiagohora force-pushed the thiagohora/OPIK-2240_add_new_demo_data branch 3 times, most recently from 10753ca to a0b78b3 Compare August 29, 2025 10:49
Copy link
Contributor

📋 PR Linter Failed

Missing Section. The description is missing the ## Documentation section.

1 similar comment
Copy link
Contributor

📋 PR Linter Failed

Missing Section. The description is missing the ## Documentation section.

@thiagohora thiagohora force-pushed the thiagohora/OPIK-2240_add_new_demo_data branch from a0b78b3 to 5aea53d Compare August 29, 2025 10:58
@thiagohora thiagohora force-pushed the thiagohora/OPIK-2240_add_new_demo_data_constant branch from 186440e to 23d661a Compare August 29, 2025 11:01
@thiagohora thiagohora marked this pull request as ready for review August 29, 2025 11:02
@thiagohora thiagohora requested a review from a team as a code owner August 29, 2025 11:02
@thiagohora thiagohora force-pushed the thiagohora/OPIK-2240_add_new_demo_data_constant branch 2 times, most recently from 3714567 to 5908579 Compare August 29, 2025 11:41
BorisTkachenko
BorisTkachenko previously approved these changes Aug 29, 2025
@@ -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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Base automatically changed from thiagohora/OPIK-2240_add_new_demo_data_constant to main August 29, 2025 12:15
@thiagohora thiagohora dismissed BorisTkachenko’s stale review August 29, 2025 12:15

The base branch was changed.

@Copilot Copilot AI review requested due to automatic review settings August 31, 2025 11:09
Copy link
Contributor

@Copilot Copilot AI left a 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

BorisTkachenko
BorisTkachenko previously approved these changes Sep 1, 2025
@thiagohora thiagohora merged commit b5a1c02 into main Sep 5, 2025
8 checks passed
@thiagohora thiagohora deleted the thiagohora/OPIK-2240_add_new_demo_data branch September 5, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants