eval-studio-client 0.8.0a2__py3-none-any.whl → 1.0.0a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- eval_studio_client/__init__.py +2 -1
- eval_studio_client/api/__init__.py +125 -120
- eval_studio_client/api/api/__init__.py +1 -0
- eval_studio_client/api/api/dashboard_service_api.py +71 -71
- eval_studio_client/api/api/document_service_api.py +64 -64
- eval_studio_client/api/api/evaluation_service_api.py +42 -42
- eval_studio_client/api/api/evaluator_service_api.py +50 -50
- eval_studio_client/api/api/info_service_api.py +8 -8
- eval_studio_client/api/api/leaderboard_service_api.py +126 -126
- eval_studio_client/api/api/model_service_api.py +92 -92
- eval_studio_client/api/api/operation_progress_service_api.py +8 -8
- eval_studio_client/api/api/operation_service_api.py +36 -36
- eval_studio_client/api/api/perturbation_service_api.py +8 -8
- eval_studio_client/api/api/perturbator_service_api.py +15 -15
- eval_studio_client/api/api/prompt_generation_service_api.py +321 -0
- eval_studio_client/api/api/test_case_service_api.py +57 -57
- eval_studio_client/api/api/test_class_service_api.py +15 -15
- eval_studio_client/api/api/test_lab_service_api.py +22 -22
- eval_studio_client/api/api/test_service_api.py +376 -92
- eval_studio_client/api/api/who_am_i_service_api.py +8 -8
- eval_studio_client/api/api_client.py +1 -1
- eval_studio_client/api/configuration.py +1 -1
- eval_studio_client/api/docs/DashboardServiceApi.md +38 -38
- eval_studio_client/api/docs/DocumentServiceApi.md +34 -34
- eval_studio_client/api/docs/EvaluationServiceApi.md +22 -22
- eval_studio_client/api/docs/EvaluatorServiceApi.md +26 -26
- eval_studio_client/api/docs/InfoServiceApi.md +4 -4
- eval_studio_client/api/docs/LeaderboardServiceApi.md +66 -66
- eval_studio_client/api/docs/ModelServiceApi.md +50 -50
- eval_studio_client/api/docs/OperationProgressServiceApi.md +4 -4
- eval_studio_client/api/docs/OperationServiceApi.md +20 -20
- eval_studio_client/api/docs/PerturbationServiceApi.md +4 -4
- eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +3 -3
- eval_studio_client/api/docs/PerturbatorServiceApi.md +8 -8
- eval_studio_client/api/docs/PromptGenerationServiceApi.md +78 -0
- eval_studio_client/api/docs/PromptGenerationServiceAutoGeneratePromptsRequest.md +35 -0
- eval_studio_client/api/docs/RequiredTheDashboardToUpdate.md +1 -1
- eval_studio_client/api/docs/RequiredTheLeaderboardToUpdate.md +4 -4
- eval_studio_client/api/docs/RequiredTheModelToUpdate.md +1 -1
- eval_studio_client/api/docs/TestCaseServiceApi.md +31 -31
- eval_studio_client/api/docs/TestClassServiceApi.md +8 -8
- eval_studio_client/api/docs/TestLabServiceApi.md +11 -11
- eval_studio_client/api/docs/TestServiceApi.md +119 -49
- eval_studio_client/api/docs/TestServiceGenerateTestCasesRequest.md +33 -0
- eval_studio_client/api/docs/TestServicePerturbTestRequest.md +1 -1
- eval_studio_client/api/docs/V1BatchCreateLeaderboardsRequest.md +31 -0
- eval_studio_client/api/docs/V1BatchCreateLeaderboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchDeleteDashboardsRequest.md +29 -0
- eval_studio_client/api/docs/V1BatchDeleteDashboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchDeleteDocumentsRequest.md +29 -0
- eval_studio_client/api/docs/V1BatchDeleteDocumentsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchDeleteEvaluatorsRequest.md +29 -0
- eval_studio_client/api/docs/V1BatchDeleteEvaluatorsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchDeleteLeaderboardsRequest.md +30 -0
- eval_studio_client/api/docs/V1BatchDeleteLeaderboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchDeleteModelsRequest.md +29 -0
- eval_studio_client/api/docs/V1BatchDeleteModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchDeleteTestCasesResponse.md +29 -0
- eval_studio_client/api/docs/{V1alphaBatchDeleteTestsRequest.md → V1BatchDeleteTestsRequest.md} +8 -8
- eval_studio_client/api/docs/V1BatchDeleteTestsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchGetDashboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchGetDocumentsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchGetLeaderboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchGetModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchGetOperationsResponse.md +29 -0
- eval_studio_client/api/docs/V1BatchGetTestsResponse.md +29 -0
- eval_studio_client/api/docs/{V1alphaBatchImportLeaderboardRequest.md → V1BatchImportLeaderboardRequest.md} +9 -9
- eval_studio_client/api/docs/V1BatchImportLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/{V1alphaBatchImportTestsRequest.md → V1BatchImportTestsRequest.md} +8 -8
- eval_studio_client/api/docs/V1BatchImportTestsResponse.md +29 -0
- eval_studio_client/api/docs/V1CheckBaseModelsResponse.md +30 -0
- eval_studio_client/api/docs/{V1alphaCollectionInfo.md → V1CollectionInfo.md} +8 -8
- eval_studio_client/api/docs/V1CreateDashboardResponse.md +29 -0
- eval_studio_client/api/docs/V1CreateDocumentResponse.md +29 -0
- eval_studio_client/api/docs/{V1alphaCreateEvaluationRequest.md → V1CreateEvaluationRequest.md} +10 -10
- eval_studio_client/api/docs/V1CreateEvaluatorResponse.md +29 -0
- eval_studio_client/api/docs/V1CreateLeaderboardRequest.md +29 -0
- eval_studio_client/api/docs/V1CreateLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/V1CreateLeaderboardWithoutCacheResponse.md +29 -0
- eval_studio_client/api/docs/V1CreateModelResponse.md +29 -0
- eval_studio_client/api/docs/V1CreatePerturbationResponse.md +29 -0
- eval_studio_client/api/docs/V1CreateTestCaseResponse.md +29 -0
- eval_studio_client/api/docs/V1CreateTestLabResponse.md +29 -0
- eval_studio_client/api/docs/V1CreateTestResponse.md +29 -0
- eval_studio_client/api/docs/{V1alphaDashboard.md → V1Dashboard.md} +9 -9
- eval_studio_client/api/docs/{V1alphaDashboardStatus.md → V1DashboardStatus.md} +1 -1
- eval_studio_client/api/docs/V1DeleteDashboardResponse.md +29 -0
- eval_studio_client/api/docs/V1DeleteDocumentResponse.md +29 -0
- eval_studio_client/api/docs/V1DeleteEvaluatorResponse.md +29 -0
- eval_studio_client/api/docs/V1DeleteLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/V1DeleteModelResponse.md +29 -0
- eval_studio_client/api/docs/V1DeleteTestCaseResponse.md +29 -0
- eval_studio_client/api/docs/V1DeleteTestResponse.md +29 -0
- eval_studio_client/api/docs/{V1alphaDocument.md → V1Document.md} +8 -8
- eval_studio_client/api/docs/V1EvaluationTest.md +32 -0
- eval_studio_client/api/docs/{V1alphaEvaluator.md → V1Evaluator.md} +10 -9
- eval_studio_client/api/docs/{V1alphaEvaluatorParamType.md → V1EvaluatorParamType.md} +1 -1
- eval_studio_client/api/docs/{V1alphaEvaluatorParameter.md → V1EvaluatorParameter.md} +9 -9
- eval_studio_client/api/docs/{V1alphaEvaluatorView.md → V1EvaluatorView.md} +1 -1
- eval_studio_client/api/docs/V1FinalizeOperationResponse.md +29 -0
- eval_studio_client/api/docs/V1FindAllTestCasesByIDResponse.md +29 -0
- eval_studio_client/api/docs/V1FindTestLabResponse.md +29 -0
- eval_studio_client/api/docs/V1GenerateTestCasesResponse.md +29 -0
- eval_studio_client/api/docs/V1GetDashboardResponse.md +29 -0
- eval_studio_client/api/docs/V1GetDocumentResponse.md +29 -0
- eval_studio_client/api/docs/V1GetEvaluatorResponse.md +29 -0
- eval_studio_client/api/docs/V1GetInfoResponse.md +29 -0
- eval_studio_client/api/docs/V1GetLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/V1GetModelResponse.md +29 -0
- eval_studio_client/api/docs/V1GetOperationProgressByParentResponse.md +29 -0
- eval_studio_client/api/docs/V1GetOperationResponse.md +29 -0
- eval_studio_client/api/docs/V1GetPerturbatorResponse.md +29 -0
- eval_studio_client/api/docs/V1GetTestCaseResponse.md +29 -0
- eval_studio_client/api/docs/V1GetTestClassResponse.md +29 -0
- eval_studio_client/api/docs/V1GetTestResponse.md +29 -0
- eval_studio_client/api/docs/{V1alphaImportEvaluationRequest.md → V1ImportEvaluationRequest.md} +9 -9
- eval_studio_client/api/docs/{V1alphaImportLeaderboardRequest.md → V1ImportLeaderboardRequest.md} +9 -9
- eval_studio_client/api/docs/V1ImportLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/{V1alphaInfo.md → V1Info.md} +8 -8
- eval_studio_client/api/docs/{V1alphaInsight.md → V1Insight.md} +8 -8
- eval_studio_client/api/docs/{V1alphaLeaderboard.md → V1Leaderboard.md} +12 -12
- eval_studio_client/api/docs/{V1alphaLeaderboardStatus.md → V1LeaderboardStatus.md} +1 -1
- eval_studio_client/api/docs/{V1alphaLeaderboardType.md → V1LeaderboardType.md} +1 -1
- eval_studio_client/api/docs/{V1alphaLeaderboardView.md → V1LeaderboardView.md} +1 -1
- eval_studio_client/api/docs/V1ListBaseModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListDashboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListDocumentsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListEvaluatorsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListLLMModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListLeaderboardsResponse.md +30 -0
- eval_studio_client/api/docs/V1ListModelCollectionsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListMostRecentDashboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListMostRecentLeaderboardsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListMostRecentModelsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListMostRecentTestsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListOperationsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListPerturbatorsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListRAGCollectionsResponse.md +29 -0
- eval_studio_client/api/docs/V1ListTestCasesResponse.md +29 -0
- eval_studio_client/api/docs/V1ListTestClassesResponse.md +29 -0
- eval_studio_client/api/docs/V1ListTestsResponse.md +29 -0
- eval_studio_client/api/docs/{V1alphaModel.md → V1Model.md} +9 -9
- eval_studio_client/api/docs/{V1alphaModelType.md → V1ModelType.md} +1 -1
- eval_studio_client/api/docs/{V1alphaOperation.md → V1Operation.md} +8 -8
- eval_studio_client/api/docs/{V1alphaOperationProgress.md → V1OperationProgress.md} +8 -8
- eval_studio_client/api/docs/V1PerturbTestResponse.md +29 -0
- eval_studio_client/api/docs/{V1alphaPerturbator.md → V1Perturbator.md} +8 -8
- eval_studio_client/api/docs/V1PerturbatorConfiguration.md +32 -0
- eval_studio_client/api/docs/{V1alphaPerturbatorIntensity.md → V1PerturbatorIntensity.md} +1 -1
- eval_studio_client/api/docs/{V1alphaProblemAndAction.md → V1ProblemAndAction.md} +8 -8
- eval_studio_client/api/docs/{V1alphaTest.md → V1Test.md} +8 -8
- eval_studio_client/api/docs/{V1alphaTestCase.md → V1TestCase.md} +8 -8
- eval_studio_client/api/docs/{V1alphaTestCaseRelationship.md → V1TestCaseRelationship.md} +8 -8
- eval_studio_client/api/docs/V1TestCasesGenerator.md +11 -0
- eval_studio_client/api/docs/{V1alphaTestClass.md → V1TestClass.md} +9 -9
- eval_studio_client/api/docs/{V1alphaTestClassType.md → V1TestClassType.md} +1 -1
- eval_studio_client/api/docs/{V1alphaTestLab.md → V1TestLab.md} +8 -8
- eval_studio_client/api/docs/V1UpdateDashboardResponse.md +29 -0
- eval_studio_client/api/docs/V1UpdateDocumentResponse.md +29 -0
- eval_studio_client/api/docs/V1UpdateLeaderboardResponse.md +29 -0
- eval_studio_client/api/docs/V1UpdateModelResponse.md +29 -0
- eval_studio_client/api/docs/V1UpdateOperationResponse.md +29 -0
- eval_studio_client/api/docs/V1UpdateTestCaseResponse.md +29 -0
- eval_studio_client/api/docs/V1UpdateTestResponse.md +29 -0
- eval_studio_client/api/docs/{V1alphaWhoAmIResponse.md → V1WhoAmIResponse.md} +8 -8
- eval_studio_client/api/docs/WhoAmIServiceApi.md +4 -4
- eval_studio_client/api/exceptions.py +1 -1
- eval_studio_client/api/models/__init__.py +124 -120
- eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +10 -10
- eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +104 -0
- eval_studio_client/api/models/protobuf_any.py +1 -1
- eval_studio_client/api/models/required_the_dashboard_to_update.py +3 -3
- eval_studio_client/api/models/required_the_document_to_update.py +1 -1
- eval_studio_client/api/models/required_the_leaderboard_to_update.py +11 -11
- eval_studio_client/api/models/required_the_model_to_update.py +3 -3
- eval_studio_client/api/models/required_the_operation_to_finalize.py +1 -1
- eval_studio_client/api/models/required_the_operation_to_update.py +1 -1
- eval_studio_client/api/models/required_the_test_case_to_update.py +1 -1
- eval_studio_client/api/models/required_the_test_to_update.py +1 -1
- eval_studio_client/api/models/rpc_status.py +1 -1
- eval_studio_client/api/models/test_case_service_batch_delete_test_cases_request.py +1 -1
- eval_studio_client/api/models/test_service_generate_test_cases_request.py +96 -0
- eval_studio_client/api/models/test_service_perturb_test_request.py +4 -4
- eval_studio_client/api/models/{v1alpha_batch_create_leaderboards_request.py → v1_batch_create_leaderboards_request.py} +8 -8
- eval_studio_client/api/models/{v1alpha_update_operation_response.py → v1_batch_create_leaderboards_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_delete_dashboards_request.py → v1_batch_delete_dashboards_request.py} +5 -5
- eval_studio_client/api/models/{v1alpha_list_dashboards_response.py → v1_batch_delete_dashboards_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_delete_documents_request.py → v1_batch_delete_documents_request.py} +5 -5
- eval_studio_client/api/models/{v1alpha_list_documents_response.py → v1_batch_delete_documents_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_delete_evaluators_request.py → v1_batch_delete_evaluators_request.py} +5 -5
- eval_studio_client/api/models/{v1alpha_list_evaluators_response.py → v1_batch_delete_evaluators_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_delete_leaderboards_request.py → v1_batch_delete_leaderboards_request.py} +7 -7
- eval_studio_client/api/models/{v1alpha_batch_get_leaderboards_response.py → v1_batch_delete_leaderboards_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_delete_models_request.py → v1_batch_delete_models_request.py} +5 -5
- eval_studio_client/api/models/{v1alpha_list_models_response.py → v1_batch_delete_models_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_list_test_cases_response.py → v1_batch_delete_test_cases_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_delete_tests_request.py → v1_batch_delete_tests_request.py} +5 -5
- eval_studio_client/api/models/{v1alpha_list_tests_response.py → v1_batch_delete_tests_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_get_dashboards_response.py → v1_batch_get_dashboards_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_get_documents_response.py → v1_batch_get_documents_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_delete_leaderboards_response.py → v1_batch_get_leaderboards_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_get_models_response.py → v1_batch_get_models_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_list_operations_response.py → v1_batch_get_operations_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_get_tests_response.py → v1_batch_get_tests_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_import_leaderboard_request.py → v1_batch_import_leaderboard_request.py} +7 -7
- eval_studio_client/api/models/{v1alpha_import_leaderboard_response.py → v1_batch_import_leaderboard_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_import_tests_request.py → v1_batch_import_tests_request.py} +5 -5
- eval_studio_client/api/models/{v1alpha_batch_delete_tests_response.py → v1_batch_import_tests_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_check_base_models_response.py → v1_check_base_models_response.py} +5 -5
- eval_studio_client/api/models/{v1alpha_collection_info.py → v1_collection_info.py} +4 -4
- eval_studio_client/api/models/{v1alpha_get_dashboard_response.py → v1_create_dashboard_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_get_document_response.py → v1_create_document_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_create_evaluation_request.py → v1_create_evaluation_request.py} +11 -11
- eval_studio_client/api/models/{v1alpha_get_evaluator_response.py → v1_create_evaluator_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_get_leaderboard_response.py → v1_create_leaderboard_request.py} +8 -8
- eval_studio_client/api/models/{v1alpha_get_operation_response.py → v1_create_leaderboard_response.py} +8 -8
- eval_studio_client/api/models/v1_create_leaderboard_without_cache_response.py +91 -0
- eval_studio_client/api/models/{v1alpha_get_model_response.py → v1_create_model_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_create_perturbation_response.py → v1_create_perturbation_response.py} +5 -5
- eval_studio_client/api/models/{v1alpha_get_test_case_response.py → v1_create_test_case_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_find_test_lab_response.py → v1_create_test_lab_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_get_test_response.py → v1_create_test_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_dashboard.py → v1_dashboard.py} +7 -7
- eval_studio_client/api/models/{v1alpha_dashboard_status.py → v1_dashboard_status.py} +3 -3
- eval_studio_client/api/models/{v1alpha_update_dashboard_response.py → v1_delete_dashboard_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_update_document_response.py → v1_delete_document_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_create_evaluator_response.py → v1_delete_evaluator_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_create_leaderboard_request.py → v1_delete_leaderboard_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_create_model_response.py → v1_delete_model_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_delete_test_case_response.py → v1_delete_test_case_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_create_test_response.py → v1_delete_test_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_document.py → v1_document.py} +5 -5
- eval_studio_client/api/models/{v1alpha_evaluation_test.py → v1_evaluation_test.py} +10 -10
- eval_studio_client/api/models/{v1alpha_evaluator.py → v1_evaluator.py} +14 -10
- eval_studio_client/api/models/{v1alpha_evaluator_param_type.py → v1_evaluator_param_type.py} +3 -3
- eval_studio_client/api/models/{v1alpha_evaluator_parameter.py → v1_evaluator_parameter.py} +7 -7
- eval_studio_client/api/models/{v1alpha_evaluator_view.py → v1_evaluator_view.py} +3 -3
- eval_studio_client/api/models/{v1alpha_create_leaderboard_response.py → v1_finalize_operation_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_find_all_test_cases_by_id_response.py → v1_find_all_test_cases_by_id_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_create_test_lab_response.py → v1_find_test_lab_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_finalize_operation_response.py → v1_generate_test_cases_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_create_dashboard_response.py → v1_get_dashboard_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_delete_document_response.py → v1_get_document_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_delete_evaluator_response.py → v1_get_evaluator_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_get_info_response.py → v1_get_info_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_update_leaderboard_response.py → v1_get_leaderboard_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_update_model_response.py → v1_get_model_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_get_operation_progress_by_parent_response.py → v1_get_operation_progress_by_parent_response.py} +8 -8
- eval_studio_client/api/models/v1_get_operation_response.py +91 -0
- eval_studio_client/api/models/{v1alpha_get_perturbator_response.py → v1_get_perturbator_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_create_test_case_response.py → v1_get_test_case_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_get_test_class_response.py → v1_get_test_class_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_update_test_response.py → v1_get_test_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_import_evaluation_request.py → v1_import_evaluation_request.py} +8 -8
- eval_studio_client/api/models/{v1alpha_import_leaderboard_request.py → v1_import_leaderboard_request.py} +7 -7
- eval_studio_client/api/models/v1_import_leaderboard_response.py +91 -0
- eval_studio_client/api/models/{v1alpha_info.py → v1_info.py} +5 -5
- eval_studio_client/api/models/{v1alpha_insight.py → v1_insight.py} +4 -4
- eval_studio_client/api/models/{v1alpha_leaderboard.py → v1_leaderboard.py} +15 -15
- eval_studio_client/api/models/{v1alpha_leaderboard_status.py → v1_leaderboard_status.py} +3 -3
- eval_studio_client/api/models/{v1alpha_leaderboard_type.py → v1_leaderboard_type.py} +3 -3
- eval_studio_client/api/models/{v1alpha_leaderboard_view.py → v1_leaderboard_view.py} +3 -3
- eval_studio_client/api/models/{v1alpha_list_base_models_response.py → v1_list_base_models_response.py} +5 -5
- eval_studio_client/api/models/{v1alpha_batch_delete_dashboards_response.py → v1_list_dashboards_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_delete_documents_response.py → v1_list_documents_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_delete_evaluators_response.py → v1_list_evaluators_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_list_leaderboards_response.py → v1_list_leaderboards_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_list_llm_models_response.py → v1_list_llm_models_response.py} +5 -5
- eval_studio_client/api/models/{v1alpha_list_model_collections_response.py → v1_list_model_collections_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_delete_models_response.py → v1_list_models_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_list_most_recent_dashboards_response.py → v1_list_most_recent_dashboards_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_list_most_recent_leaderboards_response.py → v1_list_most_recent_leaderboards_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_list_most_recent_models_response.py → v1_list_most_recent_models_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_import_tests_response.py → v1_list_most_recent_tests_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_get_operations_response.py → v1_list_operations_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_list_perturbators_response.py → v1_list_perturbators_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_list_rag_collections_response.py → v1_list_rag_collections_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_batch_delete_test_cases_response.py → v1_list_test_cases_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_list_test_classes_response.py → v1_list_test_classes_response.py} +8 -8
- eval_studio_client/api/models/v1_list_tests_response.py +95 -0
- eval_studio_client/api/models/{v1alpha_model.py → v1_model.py} +7 -7
- eval_studio_client/api/models/{v1alpha_model_type.py → v1_model_type.py} +3 -3
- eval_studio_client/api/models/{v1alpha_operation.py → v1_operation.py} +4 -4
- eval_studio_client/api/models/{v1alpha_operation_progress.py → v1_operation_progress.py} +5 -5
- eval_studio_client/api/models/{v1alpha_delete_test_response.py → v1_perturb_test_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_perturbator.py → v1_perturbator.py} +5 -5
- eval_studio_client/api/models/{v1alpha_perturbator_configuration.py → v1_perturbator_configuration.py} +6 -6
- eval_studio_client/api/models/{v1alpha_perturbator_intensity.py → v1_perturbator_intensity.py} +4 -4
- eval_studio_client/api/models/{v1alpha_problem_and_action.py → v1_problem_and_action.py} +5 -5
- eval_studio_client/api/models/{v1alpha_test.py → v1_test.py} +5 -5
- eval_studio_client/api/models/{v1alpha_test_case.py → v1_test_case.py} +5 -5
- eval_studio_client/api/models/{v1alpha_test_case_relationship.py → v1_test_case_relationship.py} +5 -5
- eval_studio_client/api/models/v1_test_cases_generator.py +50 -0
- eval_studio_client/api/models/{v1alpha_test_class.py → v1_test_class.py} +7 -7
- eval_studio_client/api/models/{v1alpha_test_class_type.py → v1_test_class_type.py} +3 -3
- eval_studio_client/api/models/{v1alpha_test_lab.py → v1_test_lab.py} +5 -5
- eval_studio_client/api/models/{v1alpha_delete_dashboard_response.py → v1_update_dashboard_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_create_document_response.py → v1_update_document_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_delete_leaderboard_response.py → v1_update_leaderboard_response.py} +8 -8
- eval_studio_client/api/models/{v1alpha_delete_model_response.py → v1_update_model_response.py} +8 -8
- eval_studio_client/api/models/v1_update_operation_response.py +91 -0
- eval_studio_client/api/models/{v1alpha_update_test_case_response.py → v1_update_test_case_response.py} +8 -8
- eval_studio_client/api/models/v1_update_test_response.py +91 -0
- eval_studio_client/api/models/{v1alpha_who_am_i_response.py → v1_who_am_i_response.py} +5 -5
- eval_studio_client/api/rest.py +1 -1
- eval_studio_client/api/test/test_dashboard_service_api.py +1 -1
- eval_studio_client/api/test/test_document_service_api.py +1 -1
- eval_studio_client/api/test/test_evaluation_service_api.py +1 -1
- eval_studio_client/api/test/test_evaluator_service_api.py +1 -1
- eval_studio_client/api/test/test_info_service_api.py +1 -1
- eval_studio_client/api/test/test_leaderboard_service_api.py +1 -1
- eval_studio_client/api/test/test_model_service_api.py +1 -1
- eval_studio_client/api/test/test_operation_progress_service_api.py +1 -1
- eval_studio_client/api/test/test_operation_service_api.py +1 -1
- eval_studio_client/api/test/test_perturbation_service_api.py +1 -1
- eval_studio_client/api/test/test_perturbation_service_create_perturbation_request.py +4 -4
- eval_studio_client/api/test/test_perturbator_service_api.py +1 -1
- eval_studio_client/api/test/test_prompt_generation_service_api.py +37 -0
- eval_studio_client/api/test/test_prompt_generation_service_auto_generate_prompts_request.py +75 -0
- eval_studio_client/api/test/test_protobuf_any.py +1 -1
- eval_studio_client/api/test/test_required_the_dashboard_to_update.py +1 -1
- eval_studio_client/api/test/test_required_the_document_to_update.py +1 -1
- eval_studio_client/api/test/test_required_the_leaderboard_to_update.py +3 -3
- eval_studio_client/api/test/test_required_the_model_to_update.py +1 -1
- eval_studio_client/api/test/test_required_the_operation_to_finalize.py +1 -1
- eval_studio_client/api/test/test_required_the_operation_to_update.py +1 -1
- eval_studio_client/api/test/test_required_the_test_case_to_update.py +1 -1
- eval_studio_client/api/test/test_required_the_test_to_update.py +1 -1
- eval_studio_client/api/test/test_rpc_status.py +1 -1
- eval_studio_client/api/test/test_test_case_service_api.py +1 -1
- eval_studio_client/api/test/test_test_case_service_batch_delete_test_cases_request.py +1 -1
- eval_studio_client/api/test/test_test_class_service_api.py +1 -1
- eval_studio_client/api/test/test_test_lab_service_api.py +1 -1
- eval_studio_client/api/test/test_test_service_api.py +7 -1
- eval_studio_client/api/test/test_test_service_generate_test_cases_request.py +57 -0
- eval_studio_client/api/test/test_test_service_perturb_test_request.py +2 -2
- eval_studio_client/api/test/{test_v1alpha_batch_create_leaderboards_request.py → test_v1_batch_create_leaderboards_request.py} +16 -16
- eval_studio_client/api/test/{test_v1alpha_create_leaderboard_response.py → test_v1_batch_create_leaderboards_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_delete_models_request.py → test_v1_batch_delete_dashboards_request.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_batch_get_dashboards_response.py → test_v1_batch_delete_dashboards_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_delete_documents_request.py → test_v1_batch_delete_documents_request.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_batch_get_documents_response.py → test_v1_batch_delete_documents_response.py} +13 -13
- eval_studio_client/api/test/test_v1_batch_delete_evaluators_request.py +53 -0
- eval_studio_client/api/test/{test_v1alpha_batch_delete_evaluators_response.py → test_v1_batch_delete_evaluators_response.py} +15 -14
- eval_studio_client/api/test/{test_v1alpha_batch_delete_leaderboards_request.py → test_v1_batch_delete_leaderboards_request.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_batch_get_leaderboards_response.py → test_v1_batch_delete_leaderboards_response.py} +15 -15
- eval_studio_client/api/test/test_v1_batch_delete_models_request.py +53 -0
- eval_studio_client/api/test/{test_v1alpha_batch_get_models_response.py → test_v1_batch_delete_models_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_delete_test_cases_response.py → test_v1_batch_delete_test_cases_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_delete_tests_request.py → test_v1_batch_delete_tests_request.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_batch_get_tests_response.py → test_v1_batch_delete_tests_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_list_dashboards_response.py → test_v1_batch_get_dashboards_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_list_documents_response.py → test_v1_batch_get_documents_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_delete_leaderboards_response.py → test_v1_batch_get_leaderboards_response.py} +15 -15
- eval_studio_client/api/test/{test_v1alpha_list_models_response.py → test_v1_batch_get_models_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_list_operations_response.py → test_v1_batch_get_operations_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_list_tests_response.py → test_v1_batch_get_tests_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_import_leaderboard_request.py → test_v1_batch_import_leaderboard_request.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_import_leaderboard_response.py → test_v1_batch_import_leaderboard_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_import_tests_request.py → test_v1_batch_import_tests_request.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_batch_import_tests_response.py → test_v1_batch_import_tests_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_check_base_models_response.py → test_v1_check_base_models_response.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_collection_info.py → test_v1_collection_info.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_get_dashboard_response.py → test_v1_create_dashboard_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_get_document_response.py → test_v1_create_document_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_create_evaluation_request.py → test_v1_create_evaluation_request.py} +16 -16
- eval_studio_client/api/test/{test_v1alpha_get_evaluator_response.py → test_v1_create_evaluator_response.py} +15 -14
- eval_studio_client/api/test/{test_v1alpha_get_leaderboard_response.py → test_v1_create_leaderboard_request.py} +15 -15
- eval_studio_client/api/test/{test_v1alpha_update_operation_response.py → test_v1_create_leaderboard_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_import_leaderboard_response.py → test_v1_create_leaderboard_without_cache_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_get_model_response.py → test_v1_create_model_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_create_perturbation_response.py → test_v1_create_perturbation_response.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_get_test_case_response.py → test_v1_create_test_case_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_find_test_lab_response.py → test_v1_create_test_lab_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_get_test_response.py → test_v1_create_test_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_dashboard.py → test_v1_dashboard.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_evaluator_view.py → test_v1_dashboard_status.py} +7 -7
- eval_studio_client/api/test/{test_v1alpha_update_dashboard_response.py → test_v1_delete_dashboard_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_update_document_response.py → test_v1_delete_document_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_delete_evaluator_response.py → test_v1_delete_evaluator_response.py} +15 -14
- eval_studio_client/api/test/{test_v1alpha_create_leaderboard_request.py → test_v1_delete_leaderboard_response.py} +15 -15
- eval_studio_client/api/test/{test_v1alpha_delete_model_response.py → test_v1_delete_model_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_create_test_case_response.py → test_v1_delete_test_case_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_create_test_response.py → test_v1_delete_test_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_document.py → test_v1_document.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_evaluation_test.py → test_v1_evaluation_test.py} +14 -14
- eval_studio_client/api/test/{test_v1alpha_evaluator.py → test_v1_evaluator.py} +14 -13
- eval_studio_client/api/test/{test_v1alpha_test_class_type.py → test_v1_evaluator_param_type.py} +7 -7
- eval_studio_client/api/test/{test_v1alpha_evaluator_parameter.py → test_v1_evaluator_parameter.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_model_type.py → test_v1_evaluator_view.py} +7 -7
- eval_studio_client/api/test/{test_v1alpha_get_operation_response.py → test_v1_finalize_operation_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_find_all_test_cases_by_id_response.py → test_v1_find_all_test_cases_by_id_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_create_test_lab_response.py → test_v1_find_test_lab_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_finalize_operation_response.py → test_v1_generate_test_cases_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_create_dashboard_response.py → test_v1_get_dashboard_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_delete_document_response.py → test_v1_get_document_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_create_evaluator_response.py → test_v1_get_evaluator_response.py} +15 -14
- eval_studio_client/api/test/{test_v1alpha_get_info_response.py → test_v1_get_info_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_delete_leaderboard_response.py → test_v1_get_leaderboard_response.py} +15 -15
- eval_studio_client/api/test/{test_v1alpha_create_model_response.py → test_v1_get_model_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_get_operation_progress_by_parent_response.py → test_v1_get_operation_progress_by_parent_response.py} +13 -13
- eval_studio_client/api/test/test_v1_get_operation_response.py +71 -0
- eval_studio_client/api/test/{test_v1alpha_get_perturbator_response.py → test_v1_get_perturbator_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_delete_test_case_response.py → test_v1_get_test_case_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_get_test_class_response.py → test_v1_get_test_class_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_delete_test_response.py → test_v1_get_test_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_import_evaluation_request.py → test_v1_import_evaluation_request.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_import_leaderboard_request.py → test_v1_import_leaderboard_request.py} +12 -12
- eval_studio_client/api/test/test_v1_import_leaderboard_response.py +71 -0
- eval_studio_client/api/test/{test_v1alpha_info.py → test_v1_info.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_insight.py → test_v1_insight.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_leaderboard.py → test_v1_leaderboard.py} +14 -14
- eval_studio_client/api/test/{test_v1alpha_dashboard_status.py → test_v1_leaderboard_status.py} +7 -7
- eval_studio_client/api/test/test_v1_leaderboard_type.py +33 -0
- eval_studio_client/api/test/test_v1_leaderboard_view.py +33 -0
- eval_studio_client/api/test/{test_v1alpha_list_base_models_response.py → test_v1_list_base_models_response.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_batch_delete_dashboards_response.py → test_v1_list_dashboards_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_delete_documents_response.py → test_v1_list_documents_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_list_evaluators_response.py → test_v1_list_evaluators_response.py} +15 -14
- eval_studio_client/api/test/{test_v1alpha_list_leaderboards_response.py → test_v1_list_leaderboards_response.py} +15 -15
- eval_studio_client/api/test/{test_v1alpha_list_llm_models_response.py → test_v1_list_llm_models_response.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_list_rag_collections_response.py → test_v1_list_model_collections_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_delete_models_response.py → test_v1_list_models_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_list_most_recent_dashboards_response.py → test_v1_list_most_recent_dashboards_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_list_most_recent_leaderboards_response.py → test_v1_list_most_recent_leaderboards_response.py} +15 -15
- eval_studio_client/api/test/{test_v1alpha_list_most_recent_models_response.py → test_v1_list_most_recent_models_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_delete_tests_response.py → test_v1_list_most_recent_tests_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_batch_get_operations_response.py → test_v1_list_operations_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_list_perturbators_response.py → test_v1_list_perturbators_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_list_model_collections_response.py → test_v1_list_rag_collections_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_list_test_cases_response.py → test_v1_list_test_cases_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_list_test_classes_response.py → test_v1_list_test_classes_response.py} +13 -13
- eval_studio_client/api/test/test_v1_list_tests_response.py +69 -0
- eval_studio_client/api/test/{test_v1alpha_model.py → test_v1_model.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_leaderboard_view.py → test_v1_model_type.py} +7 -7
- eval_studio_client/api/test/{test_v1alpha_operation.py → test_v1_operation.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_operation_progress.py → test_v1_operation_progress.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_update_test_response.py → test_v1_perturb_test_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_perturbator.py → test_v1_perturbator.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_perturbator_configuration.py → test_v1_perturbator_configuration.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_leaderboard_type.py → test_v1_perturbator_intensity.py} +7 -7
- eval_studio_client/api/test/{test_v1alpha_problem_and_action.py → test_v1_problem_and_action.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_test.py → test_v1_test.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_test_case.py → test_v1_test_case.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_test_case_relationship.py → test_v1_test_case_relationship.py} +12 -12
- eval_studio_client/api/test/test_v1_test_cases_generator.py +33 -0
- eval_studio_client/api/test/{test_v1alpha_test_class.py → test_v1_test_class.py} +12 -12
- eval_studio_client/api/test/test_v1_test_class_type.py +33 -0
- eval_studio_client/api/test/{test_v1alpha_test_lab.py → test_v1_test_lab.py} +12 -12
- eval_studio_client/api/test/{test_v1alpha_delete_dashboard_response.py → test_v1_update_dashboard_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_create_document_response.py → test_v1_update_document_response.py} +13 -13
- eval_studio_client/api/test/{test_v1alpha_update_leaderboard_response.py → test_v1_update_leaderboard_response.py} +15 -15
- eval_studio_client/api/test/{test_v1alpha_update_model_response.py → test_v1_update_model_response.py} +13 -13
- eval_studio_client/api/test/test_v1_update_operation_response.py +71 -0
- eval_studio_client/api/test/{test_v1alpha_update_test_case_response.py → test_v1_update_test_case_response.py} +13 -13
- eval_studio_client/api/test/test_v1_update_test_response.py +67 -0
- eval_studio_client/api/test/{test_v1alpha_who_am_i_response.py → test_v1_who_am_i_response.py} +12 -12
- eval_studio_client/api/test/test_who_am_i_service_api.py +1 -1
- eval_studio_client/dashboards.py +23 -1
- eval_studio_client/documents.py +3 -3
- eval_studio_client/evaluators.py +1 -1
- eval_studio_client/gen/openapiv2/eval_studio.swagger.json +568 -387
- eval_studio_client/insights.py +1 -1
- eval_studio_client/leaderboards.py +14 -13
- eval_studio_client/models.py +117 -29
- eval_studio_client/perturbators.py +5 -7
- eval_studio_client/problems.py +1 -1
- eval_studio_client/test_labs.py +2 -2
- eval_studio_client/tests.py +239 -8
- {eval_studio_client-0.8.0a2.dist-info → eval_studio_client-1.0.0a1.dist-info}/METADATA +2 -2
- eval_studio_client-1.0.0a1.dist-info/RECORD +485 -0
- {eval_studio_client-0.8.0a2.dist-info → eval_studio_client-1.0.0a1.dist-info}/WHEEL +1 -1
- eval_studio_client/api/docs/V1alphaBatchCreateLeaderboardsRequest.md +0 -31
- eval_studio_client/api/docs/V1alphaBatchCreateLeaderboardsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchDeleteDashboardsRequest.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchDeleteDashboardsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchDeleteDocumentsRequest.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchDeleteDocumentsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchDeleteEvaluatorsRequest.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchDeleteEvaluatorsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchDeleteLeaderboardsRequest.md +0 -30
- eval_studio_client/api/docs/V1alphaBatchDeleteLeaderboardsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchDeleteModelsRequest.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchDeleteModelsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchDeleteTestCasesResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchDeleteTestsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchGetDashboardsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchGetDocumentsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchGetLeaderboardsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchGetModelsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchGetOperationsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchGetTestsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchImportLeaderboardResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaBatchImportTestsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaCheckBaseModelsResponse.md +0 -30
- eval_studio_client/api/docs/V1alphaCreateDashboardResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaCreateDocumentResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaCreateEvaluatorResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaCreateLeaderboardRequest.md +0 -29
- eval_studio_client/api/docs/V1alphaCreateLeaderboardResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaCreateLeaderboardWithoutCacheResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaCreateModelResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaCreatePerturbationResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaCreateTestCaseResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaCreateTestLabResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaCreateTestResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaDeleteDashboardResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaDeleteDocumentResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaDeleteEvaluatorResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaDeleteLeaderboardResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaDeleteModelResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaDeleteTestCaseResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaDeleteTestResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaEvaluationTest.md +0 -32
- eval_studio_client/api/docs/V1alphaFinalizeOperationResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaFindAllTestCasesByIDResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaFindTestLabResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetDashboardResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetDocumentResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetEvaluatorResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetInfoResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetLeaderboardResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetModelResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetOperationProgressByParentResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetOperationResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetPerturbatorResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetTestCaseResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetTestClassResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaGetTestResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaImportLeaderboardResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListBaseModelsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListDashboardsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListDocumentsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListEvaluatorsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListLLMModelsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListLeaderboardsResponse.md +0 -30
- eval_studio_client/api/docs/V1alphaListModelCollectionsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListModelsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListMostRecentDashboardsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListMostRecentLeaderboardsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListMostRecentModelsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListMostRecentTestsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListOperationsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListPerturbatorsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListRAGCollectionsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListTestCasesResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListTestClassesResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaListTestsResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaPerturbTestResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaPerturbatorConfiguration.md +0 -32
- eval_studio_client/api/docs/V1alphaUpdateDashboardResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaUpdateDocumentResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaUpdateLeaderboardResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaUpdateModelResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaUpdateOperationResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaUpdateTestCaseResponse.md +0 -29
- eval_studio_client/api/docs/V1alphaUpdateTestResponse.md +0 -29
- eval_studio_client/api/models/v1alpha_batch_create_leaderboards_response.py +0 -91
- eval_studio_client/api/models/v1alpha_batch_import_leaderboard_response.py +0 -91
- eval_studio_client/api/models/v1alpha_create_leaderboard_without_cache_response.py +0 -91
- eval_studio_client/api/models/v1alpha_list_most_recent_tests_response.py +0 -95
- eval_studio_client/api/models/v1alpha_perturb_test_response.py +0 -91
- eval_studio_client/api/test/test_v1alpha_batch_create_leaderboards_response.py +0 -71
- eval_studio_client/api/test/test_v1alpha_batch_delete_dashboards_request.py +0 -53
- eval_studio_client/api/test/test_v1alpha_batch_delete_evaluators_request.py +0 -53
- eval_studio_client/api/test/test_v1alpha_create_leaderboard_without_cache_response.py +0 -71
- eval_studio_client/api/test/test_v1alpha_evaluator_param_type.py +0 -33
- eval_studio_client/api/test/test_v1alpha_leaderboard_status.py +0 -33
- eval_studio_client/api/test/test_v1alpha_list_most_recent_tests_response.py +0 -69
- eval_studio_client/api/test/test_v1alpha_perturb_test_response.py +0 -67
- eval_studio_client/api/test/test_v1alpha_perturbator_intensity.py +0 -33
- eval_studio_client-0.8.0a2.dist-info/RECORD +0 -470
eval_studio_client/insights.py
CHANGED
|
@@ -22,7 +22,7 @@ class Insight:
|
|
|
22
22
|
_evaluator_id: Optional[str] = None
|
|
23
23
|
|
|
24
24
|
@staticmethod
|
|
25
|
-
def _from_api_insight(api_insight: models.
|
|
25
|
+
def _from_api_insight(api_insight: models.V1Insight) -> "Insight":
|
|
26
26
|
"""Converts an API Insight to a client Insight."""
|
|
27
27
|
return Insight(
|
|
28
28
|
description=api_insight.description or "",
|
|
@@ -33,10 +33,11 @@ class Leaderboard:
|
|
|
33
33
|
update_time: Optional[datetime.datetime] = None
|
|
34
34
|
problems: List[p6s.Problem] = dataclasses.field(default_factory=list)
|
|
35
35
|
insights: List[i6s.Insight] = dataclasses.field(default_factory=list)
|
|
36
|
+
existing_collection: Optional[str] = None
|
|
36
37
|
_report: Optional[str] = None
|
|
37
38
|
_leaderboard: Optional[str] = None
|
|
38
39
|
_model_name: Optional[str] = None
|
|
39
|
-
_status: Optional[models.
|
|
40
|
+
_status: Optional[models.V1LeaderboardStatus] = None
|
|
40
41
|
_client: Optional[api.ApiClient] = None
|
|
41
42
|
|
|
42
43
|
def __post_init__(self):
|
|
@@ -60,16 +61,14 @@ class Leaderboard:
|
|
|
60
61
|
def finished(self) -> bool:
|
|
61
62
|
"""Indicates whether the leaderboard has finished."""
|
|
62
63
|
return self._status in [
|
|
63
|
-
models.
|
|
64
|
-
models.
|
|
64
|
+
models.V1LeaderboardStatus.LEADERBOARD_STATUS_COMPLETED,
|
|
65
|
+
models.V1LeaderboardStatus.LEADERBOARD_STATUS_FAILED,
|
|
65
66
|
]
|
|
66
67
|
|
|
67
68
|
@property
|
|
68
69
|
def successful(self) -> bool:
|
|
69
70
|
"""Indicates whether the leaderboard has finished successfully."""
|
|
70
|
-
return
|
|
71
|
-
self._status == models.V1alphaLeaderboardStatus.LEADERBOARD_STATUS_COMPLETED
|
|
72
|
-
)
|
|
71
|
+
return self._status == models.V1LeaderboardStatus.LEADERBOARD_STATUS_COMPLETED
|
|
73
72
|
|
|
74
73
|
@property
|
|
75
74
|
def test_suite(self) -> List[tests.Test]:
|
|
@@ -154,18 +153,19 @@ class Leaderboard:
|
|
|
154
153
|
|
|
155
154
|
raise TimeoutError("Waiting timeout has been reached.")
|
|
156
155
|
|
|
157
|
-
def to_api_proto(self) -> models.
|
|
156
|
+
def to_api_proto(self) -> models.V1Leaderboard:
|
|
158
157
|
"""Converts the client Leaderboard to an API Leaderboard."""
|
|
159
|
-
return models.
|
|
158
|
+
return models.V1Leaderboard(
|
|
160
159
|
display_name=self.name,
|
|
161
160
|
description=self.description,
|
|
162
161
|
llm_models=self.base_models or None,
|
|
163
162
|
evaluator=self._evaluator_name,
|
|
164
163
|
tests=self._test_names,
|
|
165
164
|
model=self._model_name,
|
|
165
|
+
h2ogpte_collection=self.existing_collection or None,
|
|
166
166
|
)
|
|
167
167
|
|
|
168
|
-
def _update_result(self, api_leaderboard: models.
|
|
168
|
+
def _update_result(self, api_leaderboard: models.V1Leaderboard):
|
|
169
169
|
"""Refresh the leaderboard with the latest API data."""
|
|
170
170
|
self.key = api_leaderboard.name or ""
|
|
171
171
|
self.update_time = api_leaderboard.update_time
|
|
@@ -175,7 +175,7 @@ class Leaderboard:
|
|
|
175
175
|
|
|
176
176
|
@staticmethod
|
|
177
177
|
def _from_api_leaderboard(
|
|
178
|
-
api_leaderboard: models.
|
|
178
|
+
api_leaderboard: models.V1Leaderboard, client: Optional[api.ApiClient]
|
|
179
179
|
) -> "Leaderboard":
|
|
180
180
|
"""Converts an API Leaderboard to a client Leaderboard."""
|
|
181
181
|
api_problems = api_leaderboard.leaderboard_problems or []
|
|
@@ -191,6 +191,7 @@ class Leaderboard:
|
|
|
191
191
|
update_time=api_leaderboard.update_time,
|
|
192
192
|
problems=problems,
|
|
193
193
|
insights=insights,
|
|
194
|
+
existing_collection=api_leaderboard.h2ogpte_collection or None,
|
|
194
195
|
_evaluator_name=api_leaderboard.evaluator or "",
|
|
195
196
|
_test_names=api_leaderboard.tests or [],
|
|
196
197
|
_report=api_leaderboard.leaderboard_report or "",
|
|
@@ -200,8 +201,8 @@ class Leaderboard:
|
|
|
200
201
|
)
|
|
201
202
|
|
|
202
203
|
@staticmethod
|
|
203
|
-
def _is_finished_leaderboard(leaderboard: models.
|
|
204
|
+
def _is_finished_leaderboard(leaderboard: models.V1Leaderboard) -> bool:
|
|
204
205
|
return leaderboard.status in [
|
|
205
|
-
models.
|
|
206
|
-
models.
|
|
206
|
+
models.V1LeaderboardStatus.LEADERBOARD_STATUS_COMPLETED,
|
|
207
|
+
models.V1LeaderboardStatus.LEADERBOARD_STATUS_FAILED,
|
|
207
208
|
]
|
eval_studio_client/models.py
CHANGED
|
@@ -15,6 +15,34 @@ from eval_studio_client.api import models
|
|
|
15
15
|
# Key for Azure environment ID parameter within Model parameters.
|
|
16
16
|
_AZURE_ENV_ID_PARAM = "environment_id"
|
|
17
17
|
|
|
18
|
+
# Resource name of the default RAG model.
|
|
19
|
+
DEFAULT_RAG_MODEL_KEY = "models/defaultRAGModel"
|
|
20
|
+
|
|
21
|
+
# Resource name of the default LLM model.
|
|
22
|
+
DEFAULT_LLM_MODEL_KEY = "models/defaultLLMModel"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@dataclasses.dataclass
|
|
26
|
+
class CollectionInfo:
|
|
27
|
+
"""Represents the information about a collection in the H2OGPTE
|
|
28
|
+
or a Knowledge Base in Amazon Bedrock.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
key: str
|
|
32
|
+
name: str
|
|
33
|
+
description: str
|
|
34
|
+
|
|
35
|
+
def __str__(self):
|
|
36
|
+
return f"{self.name} ({self.key})"
|
|
37
|
+
|
|
38
|
+
@staticmethod
|
|
39
|
+
def _from_api_collection_info(api_col: models.V1CollectionInfo) -> "CollectionInfo":
|
|
40
|
+
return CollectionInfo(
|
|
41
|
+
key=api_col.id or "",
|
|
42
|
+
name=api_col.display_name or "",
|
|
43
|
+
description=api_col.description or "",
|
|
44
|
+
)
|
|
45
|
+
|
|
18
46
|
|
|
19
47
|
@dataclasses.dataclass
|
|
20
48
|
class Model:
|
|
@@ -55,7 +83,7 @@ class Model:
|
|
|
55
83
|
while True:
|
|
56
84
|
res = self._leaderboard_api.leaderboard_service_list_leaderboards(
|
|
57
85
|
filter=f'model="{self.key}"',
|
|
58
|
-
view=models.
|
|
86
|
+
view=models.V1LeaderboardView.LEADERBOARD_VIEW_BASIC_WITH_TABLE,
|
|
59
87
|
page_token=page_token,
|
|
60
88
|
)
|
|
61
89
|
if not res or not res.leaderboards:
|
|
@@ -74,6 +102,28 @@ class Model:
|
|
|
74
102
|
|
|
75
103
|
return result
|
|
76
104
|
|
|
105
|
+
@property
|
|
106
|
+
def base_models(self) -> List[str]:
|
|
107
|
+
"""List of base LLM models available to use e.g. for the evaluation."""
|
|
108
|
+
res = self._model_api.model_service_list_base_models(self.key)
|
|
109
|
+
if res and res.base_models:
|
|
110
|
+
return [str(m) for m in res.base_models]
|
|
111
|
+
|
|
112
|
+
raise RuntimeError("Failed to list base models")
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def collections(self) -> List[CollectionInfo]:
|
|
116
|
+
"""List of collections available for evaluation.
|
|
117
|
+
|
|
118
|
+
NOTE: This is currently supported only for H2OGPTe and Amazon Bedrock RAG
|
|
119
|
+
model hosts.
|
|
120
|
+
"""
|
|
121
|
+
res = self._model_api.model_service_list_model_collections(self.key)
|
|
122
|
+
if res and res.collections:
|
|
123
|
+
return list(res.collections)
|
|
124
|
+
|
|
125
|
+
raise RuntimeError("Failed to list model host collections")
|
|
126
|
+
|
|
77
127
|
def create_leaderboard(
|
|
78
128
|
self,
|
|
79
129
|
name: str,
|
|
@@ -82,20 +132,27 @@ class Model:
|
|
|
82
132
|
description: Optional[str] = None,
|
|
83
133
|
base_models: Optional[List[str]] = None,
|
|
84
134
|
use_cache: bool = True,
|
|
135
|
+
existing_collection: Optional[str] = None,
|
|
85
136
|
) -> Optional[l10s.Leaderboard]:
|
|
86
137
|
"""Runs a new evaluation for the model and creates a new leaderboard.
|
|
87
138
|
|
|
88
139
|
Args:
|
|
140
|
+
name: The name of the leaderboard.
|
|
89
141
|
evaluator: The evaluator to use for the evaluation.
|
|
90
142
|
test_suite: The list of tests used to evaluate the model.
|
|
143
|
+
description (optional): The description of the leaderboard.
|
|
91
144
|
base_models (optional): The base LLM models to use for the evaluation.
|
|
92
145
|
use_cache (optional): Whether to use the cached answers if available.
|
|
146
|
+
existing_collection (str): ID or the resource name of the existing
|
|
147
|
+
collection, which will be used as a corpus for evaluation.
|
|
148
|
+
NOTE: This option works only for the H2OGPTe and Amazon Bedrock model hosts ATM.
|
|
93
149
|
"""
|
|
94
150
|
lb = l10s.Leaderboard(
|
|
95
151
|
key="",
|
|
96
152
|
name=name,
|
|
97
153
|
description=description or "",
|
|
98
154
|
base_models=base_models or [],
|
|
155
|
+
existing_collection=existing_collection,
|
|
99
156
|
_model_name=self.key,
|
|
100
157
|
_evaluator_name=evaluator.key,
|
|
101
158
|
_test_names=[t.key for t in test_suite],
|
|
@@ -122,6 +179,7 @@ class Model:
|
|
|
122
179
|
test_suites: Union[tests.Test, List[tests.Test]],
|
|
123
180
|
description: Optional[str] = None,
|
|
124
181
|
base_models: Optional[List[str]] = None,
|
|
182
|
+
existing_collection: Optional[str] = None,
|
|
125
183
|
) -> Optional[d8s.Dashboard]:
|
|
126
184
|
"""Runs a new evaluation for the model and creates a new dashboard.
|
|
127
185
|
|
|
@@ -130,6 +188,9 @@ class Model:
|
|
|
130
188
|
test_suites: The test(s) used to evaluate the model.
|
|
131
189
|
description (optional): The description of the dashboard.
|
|
132
190
|
base_models (optional): The base LLM models to use for the evaluation.
|
|
191
|
+
existing_collection (str): ID or the resource name of the existing
|
|
192
|
+
collection, which will be used as a corpus for evaluation.
|
|
193
|
+
NOTE: This option works only for the H2OGPTe and Amazon Bedrock model hosts ATM.
|
|
133
194
|
"""
|
|
134
195
|
_evaluators = (
|
|
135
196
|
[evaluators] if isinstance(evaluators, e8s.Evaluator) else evaluators
|
|
@@ -138,25 +199,26 @@ class Model:
|
|
|
138
199
|
[test_suites] if isinstance(test_suites, tests.Test) else test_suites
|
|
139
200
|
)
|
|
140
201
|
|
|
141
|
-
create_lb_reqs: List[models.
|
|
202
|
+
create_lb_reqs: List[models.V1CreateLeaderboardRequest] = []
|
|
142
203
|
for evaluator in _evaluators:
|
|
143
204
|
lb = l10s.Leaderboard(
|
|
144
205
|
key="",
|
|
145
206
|
name=f"{name} - {evaluator.name}",
|
|
146
207
|
description=description or "",
|
|
147
208
|
base_models=base_models or [],
|
|
209
|
+
existing_collection=existing_collection,
|
|
148
210
|
_model_name=self.key,
|
|
149
211
|
_evaluator_name=evaluator.key,
|
|
150
212
|
_test_names=[t.key for t in _test_suites],
|
|
151
213
|
_client=self._client,
|
|
152
214
|
)
|
|
153
|
-
create_lb_req = models.
|
|
215
|
+
create_lb_req = models.V1CreateLeaderboardRequest(
|
|
154
216
|
leaderboard=lb.to_api_proto()
|
|
155
217
|
)
|
|
156
218
|
create_lb_reqs.append(create_lb_req)
|
|
157
219
|
|
|
158
220
|
res = self._leaderboard_api.leaderboard_service_batch_create_leaderboards(
|
|
159
|
-
models.
|
|
221
|
+
models.V1BatchCreateLeaderboardsRequest(
|
|
160
222
|
requests=create_lb_reqs,
|
|
161
223
|
dashboard_display_name=name,
|
|
162
224
|
dashboard_description=description,
|
|
@@ -184,7 +246,7 @@ class Model:
|
|
|
184
246
|
test_lab: The test lab in JSON format to use for the evaluation.
|
|
185
247
|
description (optional): The description of the leaderboard.
|
|
186
248
|
"""
|
|
187
|
-
req = models.
|
|
249
|
+
req = models.V1ImportLeaderboardRequest(
|
|
188
250
|
testLabJson=test_lab,
|
|
189
251
|
evaluator=evaluator.key,
|
|
190
252
|
model=self.key,
|
|
@@ -212,7 +274,7 @@ class Model:
|
|
|
212
274
|
raise RuntimeError("Failed to list base models")
|
|
213
275
|
|
|
214
276
|
def _get_leaderboard_from_operation(
|
|
215
|
-
self, operation: models.
|
|
277
|
+
self, operation: models.V1Operation
|
|
216
278
|
) -> Optional[l10s.Leaderboard]:
|
|
217
279
|
"""Retrieves the leaderboard from the operation, which created it.
|
|
218
280
|
|
|
@@ -230,7 +292,7 @@ class Model:
|
|
|
230
292
|
return None
|
|
231
293
|
|
|
232
294
|
def _get_dashboard_from_operation(
|
|
233
|
-
self, operation: models.
|
|
295
|
+
self, operation: models.V1Operation
|
|
234
296
|
) -> Optional[d8s.Dashboard]:
|
|
235
297
|
"""Retrieves the dashboard from the operation, which created it.
|
|
236
298
|
|
|
@@ -251,9 +313,7 @@ class Model:
|
|
|
251
313
|
return None
|
|
252
314
|
|
|
253
315
|
@staticmethod
|
|
254
|
-
def _from_api_model(
|
|
255
|
-
api_model: models.V1alphaModel, client: api.ApiClient
|
|
256
|
-
) -> "Model":
|
|
316
|
+
def _from_api_model(api_model: models.V1Model, client: api.ApiClient) -> "Model":
|
|
257
317
|
"""Converts the API model to the client model."""
|
|
258
318
|
return Model(
|
|
259
319
|
key=api_model.name or "",
|
|
@@ -268,10 +328,10 @@ class Model:
|
|
|
268
328
|
)
|
|
269
329
|
|
|
270
330
|
@staticmethod
|
|
271
|
-
def _is_rag_model(api_model: models.
|
|
331
|
+
def _is_rag_model(api_model: models.V1Model) -> bool:
|
|
272
332
|
return api_model.type in [
|
|
273
|
-
models.
|
|
274
|
-
models.
|
|
333
|
+
models.V1ModelType.MODEL_TYPE_H2_OGPTE_RAG,
|
|
334
|
+
models.V1ModelType.MODEL_TYPE_OPENAI_RAG,
|
|
275
335
|
]
|
|
276
336
|
|
|
277
337
|
|
|
@@ -285,6 +345,12 @@ class _Models:
|
|
|
285
345
|
|
|
286
346
|
Args:
|
|
287
347
|
key: The model resource name to retrieve.
|
|
348
|
+
|
|
349
|
+
Returns:
|
|
350
|
+
Model: The model object.
|
|
351
|
+
|
|
352
|
+
Raises:
|
|
353
|
+
KeyError: If the model is not found.
|
|
288
354
|
"""
|
|
289
355
|
res = self._api.model_service_get_model(key)
|
|
290
356
|
if res and res.model:
|
|
@@ -292,6 +358,28 @@ class _Models:
|
|
|
292
358
|
|
|
293
359
|
raise KeyError("Model not found.")
|
|
294
360
|
|
|
361
|
+
def get_default_rag(self) -> Model:
|
|
362
|
+
"""Gets the default RAG model from Eval Studio.
|
|
363
|
+
|
|
364
|
+
Returns:
|
|
365
|
+
Model: The default RAG model object.
|
|
366
|
+
|
|
367
|
+
Raises:
|
|
368
|
+
KeyError: If no default RAG model is set.
|
|
369
|
+
"""
|
|
370
|
+
return self.get(DEFAULT_RAG_MODEL_KEY)
|
|
371
|
+
|
|
372
|
+
def get_default_llm(self) -> Model:
|
|
373
|
+
"""Gets the default LLM model from Eval Studio.
|
|
374
|
+
|
|
375
|
+
Returns:
|
|
376
|
+
Model: The default LLM model object.
|
|
377
|
+
|
|
378
|
+
Raises:
|
|
379
|
+
KeyError: If no default LLM model is set.
|
|
380
|
+
"""
|
|
381
|
+
return self.get(DEFAULT_LLM_MODEL_KEY)
|
|
382
|
+
|
|
295
383
|
def create_h2ogpte_model(
|
|
296
384
|
self, name: str, is_rag: bool, description: str, url: str, api_key: str
|
|
297
385
|
) -> Model:
|
|
@@ -308,11 +396,11 @@ class _Models:
|
|
|
308
396
|
api_key: API key for the model host system.
|
|
309
397
|
"""
|
|
310
398
|
model_type = (
|
|
311
|
-
models.
|
|
399
|
+
models.V1ModelType.MODEL_TYPE_H2_OGPTE_RAG
|
|
312
400
|
if is_rag
|
|
313
|
-
else models.
|
|
401
|
+
else models.V1ModelType.MODEL_TYPE_H2_OGPTE_LLM
|
|
314
402
|
)
|
|
315
|
-
req = models.
|
|
403
|
+
req = models.V1Model(
|
|
316
404
|
display_name=name,
|
|
317
405
|
description=description,
|
|
318
406
|
url=url,
|
|
@@ -336,12 +424,12 @@ class _Models:
|
|
|
336
424
|
url: URL of the model host system.
|
|
337
425
|
api_key: API key for the model host system.
|
|
338
426
|
"""
|
|
339
|
-
req = models.
|
|
427
|
+
req = models.V1Model(
|
|
340
428
|
display_name=name,
|
|
341
429
|
description=description,
|
|
342
430
|
url=url,
|
|
343
431
|
api_key=api_key,
|
|
344
|
-
type=models.
|
|
432
|
+
type=models.V1ModelType.MODEL_TYPE_H2_OGPT_LLM,
|
|
345
433
|
)
|
|
346
434
|
res = self._api.model_service_create_model(req)
|
|
347
435
|
if res and res.model:
|
|
@@ -360,12 +448,12 @@ class _Models:
|
|
|
360
448
|
url: URL of the model host system.
|
|
361
449
|
api_key: API key for the model host system.
|
|
362
450
|
"""
|
|
363
|
-
req = models.
|
|
451
|
+
req = models.V1Model(
|
|
364
452
|
display_name=name,
|
|
365
453
|
description=description,
|
|
366
454
|
url=url,
|
|
367
455
|
api_key=api_key,
|
|
368
|
-
type=models.
|
|
456
|
+
type=models.V1ModelType.MODEL_TYPE_H2_OLLMOPS,
|
|
369
457
|
)
|
|
370
458
|
res = self._api.model_service_create_model(req)
|
|
371
459
|
if res and res.model:
|
|
@@ -399,11 +487,11 @@ class _Models:
|
|
|
399
487
|
)
|
|
400
488
|
|
|
401
489
|
model_type = (
|
|
402
|
-
models.
|
|
490
|
+
models.V1ModelType.MODEL_TYPE_OPENAI_RAG
|
|
403
491
|
if is_rag
|
|
404
|
-
else models.
|
|
492
|
+
else models.V1ModelType.MODEL_TYPE_OPENAI_CHAT
|
|
405
493
|
)
|
|
406
|
-
req = models.
|
|
494
|
+
req = models.V1Model(
|
|
407
495
|
display_name=name,
|
|
408
496
|
description=description,
|
|
409
497
|
api_key=api_key,
|
|
@@ -429,12 +517,12 @@ class _Models:
|
|
|
429
517
|
environmentID: Azure environment ID.
|
|
430
518
|
"""
|
|
431
519
|
params = {_AZURE_ENV_ID_PARAM: environmentID}
|
|
432
|
-
req = models.
|
|
520
|
+
req = models.V1Model(
|
|
433
521
|
display_name=name,
|
|
434
522
|
description=description,
|
|
435
523
|
url=url,
|
|
436
524
|
api_key=api_key,
|
|
437
|
-
type=models.
|
|
525
|
+
type=models.V1ModelType.MODEL_TYPE_AZURE_OPENAI_CHAT,
|
|
438
526
|
parameters=json.dumps(params),
|
|
439
527
|
)
|
|
440
528
|
res = self._api.model_service_create_model(req)
|
|
@@ -454,12 +542,12 @@ class _Models:
|
|
|
454
542
|
url: URL of the model host system.
|
|
455
543
|
api_key: API key for the model host system.
|
|
456
544
|
"""
|
|
457
|
-
req = models.
|
|
545
|
+
req = models.V1Model(
|
|
458
546
|
display_name=name,
|
|
459
547
|
description=description,
|
|
460
548
|
url=url,
|
|
461
549
|
api_key=api_key,
|
|
462
|
-
type=models.
|
|
550
|
+
type=models.V1ModelType.MODEL_TYPE_OLLAMA,
|
|
463
551
|
)
|
|
464
552
|
res = self._api.model_service_create_model(req)
|
|
465
553
|
if res and res.model:
|
|
@@ -491,10 +579,10 @@ class _Models:
|
|
|
491
579
|
"aws_secret_access_key": aws_secret_access_key,
|
|
492
580
|
"aws_session_token": aws_session_token,
|
|
493
581
|
}
|
|
494
|
-
req = models.
|
|
582
|
+
req = models.V1Model(
|
|
495
583
|
display_name=name,
|
|
496
584
|
description=description,
|
|
497
|
-
type=models.
|
|
585
|
+
type=models.V1ModelType.MODEL_TYPE_AMAZON_BEDROCK,
|
|
498
586
|
api_key=json.dumps(credentials),
|
|
499
587
|
parameters=json.dumps({"region": aws_region}),
|
|
500
588
|
)
|
|
@@ -17,12 +17,12 @@ class PerturbatorIntensity(enum.Enum):
|
|
|
17
17
|
medium = "medium"
|
|
18
18
|
high = "high"
|
|
19
19
|
|
|
20
|
-
def to_api_proto(self) -> models.
|
|
20
|
+
def to_api_proto(self) -> models.V1PerturbatorIntensity:
|
|
21
21
|
"""Converts the client PerturbatorIntensity to an API PerturbatorIntensity."""
|
|
22
22
|
proto_values = {
|
|
23
|
-
PerturbatorIntensity.low: models.
|
|
24
|
-
PerturbatorIntensity.medium: models.
|
|
25
|
-
PerturbatorIntensity.high: models.
|
|
23
|
+
PerturbatorIntensity.low: models.V1PerturbatorIntensity.PERTURBATOR_INTENSITY_LOW,
|
|
24
|
+
PerturbatorIntensity.medium: models.V1PerturbatorIntensity.PERTURBATOR_INTENSITY_MEDIUM,
|
|
25
|
+
PerturbatorIntensity.high: models.V1PerturbatorIntensity.PERTURBATOR_INTENSITY_HIGH,
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
return proto_values[self]
|
|
@@ -52,9 +52,7 @@ class Perturbator:
|
|
|
52
52
|
self.intensity = self.intensity or PerturbatorIntensity.medium
|
|
53
53
|
|
|
54
54
|
@staticmethod
|
|
55
|
-
def _from_api_perturbator(
|
|
56
|
-
api_perturbator: models.V1alphaPerturbator,
|
|
57
|
-
) -> "Perturbator":
|
|
55
|
+
def _from_api_perturbator(api_perturbator: models.V1Perturbator) -> "Perturbator":
|
|
58
56
|
"""Converts an API Perturbator to a client Perturbator."""
|
|
59
57
|
return Perturbator(
|
|
60
58
|
key=api_perturbator.name or "",
|
eval_studio_client/problems.py
CHANGED
|
@@ -32,7 +32,7 @@ class Problem:
|
|
|
32
32
|
_evaluator_id: Optional[str] = None
|
|
33
33
|
|
|
34
34
|
@staticmethod
|
|
35
|
-
def _from_api_problem(api_problem: models.
|
|
35
|
+
def _from_api_problem(api_problem: models.V1ProblemAndAction) -> "Problem":
|
|
36
36
|
"""Converts an API Problem to a client Problem."""
|
|
37
37
|
try:
|
|
38
38
|
severity = ProblemSeverity(api_problem.severity)
|
eval_studio_client/test_labs.py
CHANGED
|
@@ -98,7 +98,7 @@ class TestLab:
|
|
|
98
98
|
Args:
|
|
99
99
|
evaluator: The evaluator to use for the evaluation.
|
|
100
100
|
"""
|
|
101
|
-
req = apiModels.
|
|
101
|
+
req = apiModels.V1ImportLeaderboardRequest(
|
|
102
102
|
testLabJson=self.json(),
|
|
103
103
|
evaluator=evaluator.key,
|
|
104
104
|
model=None,
|
|
@@ -132,7 +132,7 @@ class TestLab:
|
|
|
132
132
|
return json.dumps(lab, indent=4, sort_keys=True)
|
|
133
133
|
|
|
134
134
|
def _get_leaderboard_from_operation(
|
|
135
|
-
self, operation: apiModels.
|
|
135
|
+
self, operation: apiModels.V1Operation
|
|
136
136
|
) -> Optional[l10s.Leaderboard]:
|
|
137
137
|
"""Retrieves the leaderboard from the operation, which created it.
|
|
138
138
|
|