发布

  • [OPIK-4961] [OPIK-5207] [P SDK] [M2] Python SDK: Add project_name parameter to dataset, prompt, and experiment methods (#5684)

    frostbyte_neo 发布于 2026-03-25 14:15:47 +00:00

    • [OPIK-4961] Add project_name field to Dataset and update related tests
    • Introduced the project_name field in the Dataset class to associate datasets with specific projects.
    • Updated dataset initialization in tests and CLI to include the new project_name parameter when creating datasets.
    • Added a corresponding project_name property with getter functionality in the Dataset class.
    • [OPIK-4961] Add project_name support across SDK modules and update related tests
    • Introduced the project_name parameter throughout SDK methods for dataset, experiment, evaluation suite, and prompt operations.
    • Updated retrieval, creation, and search functions to handle project_name correctly.
    • Added missing TODO comments to integrate project_name with the backend when applicable.
    • Synchronized test cases to validate new project_name behavior.
    • [OPIK-4961] Refactor project_name handling in dataset and experiment methods
    • Adjusted method parameter order to make project_name optional and consistent with SDK conventions.
    • Added project_name resolution logic for improved dataset ID retrieval.
    • [OPIK-4961] Updated Fern code

    • [OPIK-4961] Updated Fern code

    • [OPIK-4961] Add project_name support to delete_dataset and dataset streaming methods

    • Updated delete_dataset to accept an optional project_name parameter, with default resolution logic.
    • Extended dataset streaming and related classes to handle project_name.
    • Added unit tests to validate project_name behavior in delete_dataset.
    • [OPIK-4961] Add project_name support to prompt creation, retrieval, and search methods
    • Updated prompt creation, retrieval, and history functions (create_prompt, get_prompt, get_prompt_history) to include project_name handling.
    • Extended ChatPrompt methods with project_name support.
    • Refactored relevant classes and tests to validate project_name resolution and propagation.
    • [OPIK-4961] Extend project_name support to chat prompts and update relevant tests
    • Added project_name parameter to chat prompt creation, retrieval, search, and history methods (create_chat_prompt, get_chat_prompt, get_chat_prompt_history, search_prompts).
    • Updated chat prompt-related tests to validate project_name propagation.
    • Fixed typos in code examples for get_prompt_history and get_chat_prompt_history.
    • [OPIK-4961] Add project_name support to dataset creation, filtering, and version view methods
    • Updated dataset creation, filtering, and version view methods (create_dataset, get_items, get_version_view) to include project_name handling.
    • Extended E2E tests to validate project_name propagation and expected behavior.
    • Added assertions for project_name comparison in dataset verifications.
    • [OPIK-4961] Expand project_name support across evaluation suites, experiments, and verifiers
    • Added project_name handling to evaluation suite creation, retrieval, and propagation methods.
    • Updated experiments, verifiers, and rest operations to support project_name.
    • Enhanced E2E tests to validate project_name propagation and assertions within evaluation scenarios.
    • [OPIK-4961] Add project_name parameter to evaluation test cases
    • Updated various unit tests to include project_name in evaluation suite, experiment, and dataset setups.
    • Added mock project_name initialization for dataset tests to ensure proper test coverage.
    • [OPIK-4961] Add project_name to evaluation and prompt test cases
    • Incorporated project_name parameter across evaluation and prompt test suites.
    • Updated test cases to validate project_name propagation for datasets, experiments, and prompts.
    • Enhanced verifications and assertions to include project_name consistency checks.
    • [OPIK-4961] Add project_name to stream_experiments in REST operations
    • Updated rest_operations.stream_experiments to include project_name parameter.
    • Ensured proper propagation of project_name to REST client calls.
    • [OPIK-4961] Resolved merge conflicts and updated

    • [OPIK-4961] Resolved merge conflicts and updated

    • [OPIK-4961] Fixed flacky tests

    • [OPIK-4961] Remove unused _resolve_project_id method from opik_client

    • [OPIK-4961] Update test cases to include project_name in experiment and suite retrievals

    • Added project_name parameter to experiment and evaluation suite retrievals in test cases.
    • Ensured consistency of verifications and assertions with project_name usage.
    • [OPIK-4961] Implemented backward compatibility E2E tests for OPIK v1.x
    • Set default value for the project_name parameter to None in dataset verification utility.
    • Introduced extensive compatibility tests for evaluation APIs, covering dataset versioning, assertions, execution policies, and pass/fail logic.
    • Enhanced validation checks for persistence, retrieval, and consistency of evaluation suite configurations.
    • [OPIK-4961] Fixed prompts test to avoid flakiness

    • [OPIK-4961] Add Python SDK Compatibility V1.x E2E tests

    • Introduced a new GitHub Actions workflow for Python SDK Compatibility V1.x End-to-End tests.
    • Updated existing E2E test workflow to ignore compatibility V1 tests.
    • [OPIK-4961] Remove default value for project_name in get_experiment_with_unique_name function
    下载附件