numind 0.2.2__tar.gz → 0.3.0__tar.gz
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.
- {numind-0.2.2 → numind-0.3.0}/.github/workflows/sdk-auto-update.yml +1 -1
- {numind-0.2.2 → numind-0.3.0}/PKG-INFO +7 -5
- {numind-0.2.2 → numind-0.3.0}/README.md +4 -4
- {numind-0.2.2 → numind-0.3.0}/docs/ContentExtractionApi.md +17 -9
- {numind-0.2.2 → numind-0.3.0}/docs/ContentExtractionProjectManagementApi.md +76 -1
- {numind-0.2.2 → numind-0.3.0}/docs/ContentProjectSettingsResponse.md +2 -1
- {numind-0.2.2 → numind-0.3.0}/docs/DocumentResponse.md +0 -1
- {numind-0.2.2 → numind-0.3.0}/docs/DocumentsApi.md +1 -1
- {numind-0.2.2 → numind-0.3.0}/docs/FileResponse.md +0 -1
- {numind-0.2.2 → numind-0.3.0}/docs/FilesApi.md +1 -1
- {numind-0.2.2 → numind-0.3.0}/docs/InferenceApi.md +14 -7
- {numind-0.2.2 → numind-0.3.0}/docs/JobsApi.md +3 -3
- numind-0.3.0/docs/PaginatedResponseT.md +32 -0
- {numind-0.2.2 → numind-0.3.0}/docs/StructuredDataExtractionApi.md +5 -3
- {numind-0.2.2 → numind-0.3.0}/docs/StructuredExtractionExamplesApi.md +3 -3
- {numind-0.2.2 → numind-0.3.0}/docs/StructuredExtractionProjectManagementApi.md +86 -1
- {numind-0.2.2 → numind-0.3.0}/docs/StructuredExtractionResponse.md +1 -0
- {numind-0.2.2 → numind-0.3.0}/docs/StructuredProjectSettingsResponse.md +1 -0
- {numind-0.2.2 → numind-0.3.0}/docs/UpdateContentProjectSettingsRequest.md +1 -0
- {numind-0.2.2 → numind-0.3.0}/docs/UpdateStructuredProjectSettingsRequest.md +1 -0
- {numind-0.2.2 → numind-0.3.0}/pyproject.toml +2 -2
- {numind-0.2.2 → numind-0.3.0}/sdk_generation/gen_sdk.sh +35 -16
- {numind-0.2.2 → numind-0.3.0}/sdk_generation/pyproject_base.toml +7 -3
- {numind-0.2.2 → numind-0.3.0}/sdk_generation/remove_unused_models_from_openapi_spec_file.py +1 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/__init__.py +1 -5
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/content_project_settings_response.py +7 -2
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/document_response.py +0 -5
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/file_response.py +0 -5
- numind-0.2.2/src/numind/models/paginated_response_structured_example_response.py → numind-0.3.0/src/numind/models/paginated_response_t.py +4 -4
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/structured_extraction_response.py +7 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/structured_project_settings_response.py +6 -1
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/update_content_project_settings_request.py +8 -1
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/update_structured_project_settings_request.py +8 -1
- numind-0.3.0/src/numind/nuextract_utils/__init__.py +11 -0
- numind-0.3.0/src/numind/nuextract_utils/json_schema/__init__.py +17 -0
- numind-0.3.0/src/numind/nuextract_utils/json_schema/constants.py +71 -0
- numind-0.3.0/src/numind/nuextract_utils/json_schema/conversion.py +1003 -0
- numind-0.3.0/src/numind/nuextract_utils/json_schema/validation.py +139 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/__init__.py +2 -10
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/content_extraction_api.py +84 -21
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/content_extraction_project_management_api.py +281 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/inference_api.py +66 -4
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/jobs_api.py +6 -6
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/structured_data_extraction_api.py +32 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/structured_extraction_examples_api.py +6 -8
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/structured_extraction_project_management_api.py +287 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api_client.py +13 -18
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/configuration.py +1 -1
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/__init__.py +2 -10
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/content_extraction_api.py +84 -21
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/content_extraction_project_management_api.py +281 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/inference_api.py +66 -4
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/jobs_api.py +6 -6
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/structured_data_extraction_api.py +32 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/structured_extraction_examples_api.py +6 -8
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/structured_extraction_project_management_api.py +287 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api_client.py +13 -18
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/configuration.py +2 -1
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/rest.py +2 -0
- numind-0.3.0/tests/json_schema_test_cases/1.json +190 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_content_extraction_project_management_api.py +3 -0
- {numind-0.2.2/tests/openapi_client_async → numind-0.3.0/tests/openapi_client}/test_content_project_response.py +4 -2
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_content_project_settings_response.py +3 -1
- {numind-0.2.2/tests/openapi_client_async → numind-0.3.0/tests/openapi_client}/test_document_response.py +0 -2
- {numind-0.2.2/tests/openapi_client_async → numind-0.3.0/tests/openapi_client}/test_file_response.py +0 -2
- numind-0.2.2/tests/openapi_client/test_paginated_response_structured_example_response.py → numind-0.3.0/tests/openapi_client/test_paginated_response_t.py +11 -15
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_structured_extraction_project_management_api.py +3 -0
- {numind-0.2.2/tests/openapi_client_async → numind-0.3.0/tests/openapi_client}/test_structured_extraction_response.py +1 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_structured_project_response.py +4 -2
- {numind-0.2.2/tests/openapi_client_async → numind-0.3.0/tests/openapi_client}/test_structured_project_settings_response.py +3 -1
- {numind-0.2.2/tests/openapi_client_async → numind-0.3.0/tests/openapi_client}/test_update_content_project_settings_request.py +2 -1
- {numind-0.2.2/tests/openapi_client_async → numind-0.3.0/tests/openapi_client}/test_update_structured_project_settings_request.py +2 -1
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_content_extraction_project_management_api.py +3 -0
- {numind-0.2.2/tests/openapi_client → numind-0.3.0/tests/openapi_client_async}/test_content_project_response.py +4 -2
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_content_project_settings_response.py +3 -1
- {numind-0.2.2/tests/openapi_client → numind-0.3.0/tests/openapi_client_async}/test_document_response.py +0 -2
- {numind-0.2.2/tests/openapi_client → numind-0.3.0/tests/openapi_client_async}/test_file_response.py +0 -2
- numind-0.2.2/tests/openapi_client_async/test_paginated_response_structured_example_response.py → numind-0.3.0/tests/openapi_client_async/test_paginated_response_t.py +11 -15
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_structured_extraction_project_management_api.py +5 -0
- {numind-0.2.2/tests/openapi_client → numind-0.3.0/tests/openapi_client_async}/test_structured_extraction_response.py +1 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_structured_project_response.py +4 -2
- {numind-0.2.2/tests/openapi_client → numind-0.3.0/tests/openapi_client_async}/test_structured_project_settings_response.py +3 -1
- {numind-0.2.2/tests/openapi_client → numind-0.3.0/tests/openapi_client_async}/test_update_content_project_settings_request.py +2 -1
- {numind-0.2.2/tests/openapi_client → numind-0.3.0/tests/openapi_client_async}/test_update_structured_project_settings_request.py +2 -1
- numind-0.3.0/tests/test_json_schema.py +944 -0
- numind-0.3.0/tests/test_json_schema_descriptions.py +98 -0
- numind-0.2.2/docs/JobResponse.md +0 -41
- numind-0.2.2/docs/PaginatedResponseJobResponse.md +0 -32
- numind-0.2.2/docs/PaginatedResponseStructuredExampleResponse.md +0 -32
- numind-0.2.2/src/numind/models/job_response.py +0 -140
- numind-0.2.2/src/numind/models/paginated_response_job_response.py +0 -109
- numind-0.2.2/tests/openapi_client/test_job_response.py +0 -72
- numind-0.2.2/tests/openapi_client/test_paginated_response_job_response.py +0 -73
- numind-0.2.2/tests/openapi_client_async/test_job_response.py +0 -72
- numind-0.2.2/tests/openapi_client_async/test_paginated_response_job_response.py +0 -73
- {numind-0.2.2 → numind-0.3.0}/.github/codecov.yml +0 -0
- {numind-0.2.2 → numind-0.3.0}/.github/dependabot.yml +0 -0
- {numind-0.2.2 → numind-0.3.0}/.github/workflows/lint.yml +0 -0
- {numind-0.2.2 → numind-0.3.0}/.github/workflows/publish-pypi.yml +0 -0
- {numind-0.2.2 → numind-0.3.0}/.github/workflows/tests.yml +0 -0
- {numind-0.2.2 → numind-0.3.0}/.github/workflows/update-api-build-version-repo-var.yml +0 -0
- {numind-0.2.2 → numind-0.3.0}/.gitignore +0 -0
- {numind-0.2.2 → numind-0.3.0}/LICENSE +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/ContentExtractionResponse.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/ContentProjectResponse.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/ConvertRequest.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/CreateContentProjectRequest.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/CreateOrUpdateStructuredExampleRequest.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/CreateStructuredProjectRequest.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/DefaultApi.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/DocumentInfo.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/Error.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/HealthResponse.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/ImageInfo.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/InferenceStatus.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/InferenceValidationError.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/InformationResponse.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/InvalidInformation.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/JobIdResponse.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/JobStatusResponse.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/ServiceStatus.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/StructuredExampleResponse.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/StructuredInferenceExample.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/StructuredProjectResponse.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/TemplateGenerationApi.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/TemplateRequest.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/TemplateResponse.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/TextInfo.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/TextRequest.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/UpdateContentProjectRequest.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/UpdateStructuredProjectRequest.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/ValidInformation.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/docs/VersionResponse.md +0 -0
- {numind-0.2.2 → numind-0.3.0}/sdk_generation/.openapi-generator-ignore +0 -0
- {numind-0.2.2 → numind-0.3.0}/sdk_generation/adapt_openapi_client_init.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/sdk_generation/adapt_pyproject.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/sdk_generation/collate_documentation_readme.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/sdk_generation/config.json +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/__init__.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/api_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/constants.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/exceptions.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/content_extraction_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/content_project_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/convert_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/create_content_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/create_or_update_structured_example_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/create_structured_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/document_info.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/error.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/health_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/image_info.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/inference_status.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/inference_validation_error.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/information_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/invalid_information.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/job_id_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/job_status_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/service_status.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/structured_example_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/structured_inference_example.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/structured_project_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/template_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/template_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/text_info.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/text_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/update_content_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/update_structured_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/valid_information.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/models/version_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/numind.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/__init__.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/default_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/documents_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/files_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/api/template_generation_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/py.typed +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client/rest.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/__init__.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/default_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/documents_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/files_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/api/template_generation_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/src/numind/openapi_client_async/py.typed +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/__init__.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/conftest.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/__init__.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_content_extraction_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_content_extraction_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_convert_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_create_content_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_create_or_update_structured_example_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_create_structured_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_default_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_document_info.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_documents_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_error.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_files_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_health_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_image_info.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_inference_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_inference_status.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_inference_validation_error.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_information_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_invalid_information.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_job_id_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_job_status_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_jobs_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_service_status.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_structured_data_extraction_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_structured_example_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_structured_extraction_examples_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_structured_inference_example.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_template_generation_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_template_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_template_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_text_info.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_text_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_update_content_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_update_structured_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_valid_information.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client/test_version_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/__init__.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_content_extraction_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_content_extraction_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_convert_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_create_content_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_create_or_update_structured_example_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_create_structured_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_default_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_document_info.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_documents_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_error.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_files_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_health_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_image_info.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_inference_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_inference_status.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_inference_validation_error.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_information_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_invalid_information.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_job_id_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_job_status_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_jobs_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_service_status.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_structured_data_extraction_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_structured_example_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_structured_extraction_examples_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_structured_inference_example.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_template_generation_api.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_template_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_template_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_text_info.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_text_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_update_content_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_update_structured_project_request.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_valid_information.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/openapi_client_async/test_version_response.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/test_cases/vacation/examples.csv +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/test_cases/vacation/files/tahiti.docx +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/test_cases/vacation/files_examples/kyoto.docx +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/test_cases/vacation/schema.json +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/test_cases/vacation/texts.csv +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/test_numarkdown.py +0 -0
- {numind-0.2.2 → numind-0.3.0}/tests/test_project.py +0 -0
|
@@ -83,7 +83,7 @@ jobs:
|
|
|
83
83
|
run: |
|
|
84
84
|
set -e # Exit immediately if a command exits with a non-zero status.
|
|
85
85
|
echo "Generating new SDK for version ${{ steps.fetch_version.outputs.version }}..."
|
|
86
|
-
|
|
86
|
+
bash sdk_generation/gen_sdk.sh
|
|
87
87
|
|
|
88
88
|
# Step 8: Create a Pull Request if there are any changes
|
|
89
89
|
- name: Create Pull Request
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: numind
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: SDK to interact with the NuMind models API.
|
|
5
5
|
Project-URL: Homepage, https://github.com/numindai/nuextract-platform-sdk
|
|
6
6
|
Project-URL: Repository, https://github.com/numindai/nuextract-platform-sdk.git
|
|
@@ -45,6 +45,8 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
|
45
45
|
Requires-Python: >=3.9
|
|
46
46
|
Requires-Dist: aiohttp-retry>=2.8.3
|
|
47
47
|
Requires-Dist: aiohttp>=3.8.4
|
|
48
|
+
Requires-Dist: jsonschema
|
|
49
|
+
Requires-Dist: orjson
|
|
48
50
|
Requires-Dist: pydantic>=2.11
|
|
49
51
|
Requires-Dist: python-dateutil>=2.8.2
|
|
50
52
|
Requires-Dist: typing-extensions>=4.7.1
|
|
@@ -334,7 +336,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
|
|
|
334
336
|
|
|
335
337
|
- API version:
|
|
336
338
|
- Package version: 1.0.0
|
|
337
|
-
- Generator version: 7.
|
|
339
|
+
- Generator version: 7.22.0
|
|
338
340
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
339
341
|
|
|
340
342
|
### Documentation for API Endpoints
|
|
@@ -345,6 +347,7 @@ Class | Method | HTTP request | Description
|
|
|
345
347
|
------------ | ------------- | ------------- | -------------
|
|
346
348
|
*ContentExtractionApi* | [**get_api_content_extraction_jobs_contentextractionjobid**](docs/ContentExtractionApi.md#get_api_content_extraction_jobs_contentextractionjobid) | **GET** /api/content-extraction/jobs/{contentExtractionJobId} |
|
|
347
349
|
*ContentExtractionApi* | [**post_api_content_extraction_jobs**](docs/ContentExtractionApi.md#post_api_content_extraction_jobs) | **POST** /api/content-extraction/jobs |
|
|
350
|
+
*ContentExtractionProjectManagementApi* | [**delete_api_content_extraction_contentprojectid**](docs/ContentExtractionProjectManagementApi.md#delete_api_content_extraction_contentprojectid) | **DELETE** /api/content-extraction/{contentProjectId} |
|
|
348
351
|
*ContentExtractionProjectManagementApi* | [**get_api_content_extraction**](docs/ContentExtractionProjectManagementApi.md#get_api_content_extraction) | **GET** /api/content-extraction |
|
|
349
352
|
*ContentExtractionProjectManagementApi* | [**patch_api_content_extraction_contentprojectid**](docs/ContentExtractionProjectManagementApi.md#patch_api_content_extraction_contentprojectid) | **PATCH** /api/content-extraction/{contentProjectId} |
|
|
350
353
|
*ContentExtractionProjectManagementApi* | [**patch_api_content_extraction_contentprojectid_settings**](docs/ContentExtractionProjectManagementApi.md#patch_api_content_extraction_contentprojectid_settings) | **PATCH** /api/content-extraction/{contentProjectId}/settings |
|
|
@@ -381,6 +384,7 @@ Class | Method | HTTP request | Description
|
|
|
381
384
|
*StructuredExtractionProjectManagementApi* | [**delete_api_structured_extraction_structuredprojectid**](docs/StructuredExtractionProjectManagementApi.md#delete_api_structured_extraction_structuredprojectid) | **DELETE** /api/structured-extraction/{structuredProjectId} |
|
|
382
385
|
*StructuredExtractionProjectManagementApi* | [**get_api_structured_extraction**](docs/StructuredExtractionProjectManagementApi.md#get_api_structured_extraction) | **GET** /api/structured-extraction |
|
|
383
386
|
*StructuredExtractionProjectManagementApi* | [**get_api_structured_extraction_structuredprojectid**](docs/StructuredExtractionProjectManagementApi.md#get_api_structured_extraction_structuredprojectid) | **GET** /api/structured-extraction/{structuredProjectId} |
|
|
387
|
+
*StructuredExtractionProjectManagementApi* | [**get_api_structured_extraction_structuredprojectid_thumbnail**](docs/StructuredExtractionProjectManagementApi.md#get_api_structured_extraction_structuredprojectid_thumbnail) | **GET** /api/structured-extraction/{structuredProjectId}/thumbnail |
|
|
384
388
|
*StructuredExtractionProjectManagementApi* | [**patch_api_structured_extraction_structuredprojectid**](docs/StructuredExtractionProjectManagementApi.md#patch_api_structured_extraction_structuredprojectid) | **PATCH** /api/structured-extraction/{structuredProjectId} |
|
|
385
389
|
*StructuredExtractionProjectManagementApi* | [**patch_api_structured_extraction_structuredprojectid_settings**](docs/StructuredExtractionProjectManagementApi.md#patch_api_structured_extraction_structuredprojectid_settings) | **PATCH** /api/structured-extraction/{structuredProjectId}/settings |
|
|
386
390
|
*StructuredExtractionProjectManagementApi* | [**post_api_structured_extraction**](docs/StructuredExtractionProjectManagementApi.md#post_api_structured_extraction) | **POST** /api/structured-extraction |
|
|
@@ -414,10 +418,8 @@ Class | Method | HTTP request | Description
|
|
|
414
418
|
- [InformationResponse](docs/InformationResponse.md)
|
|
415
419
|
- [InvalidInformation](docs/InvalidInformation.md)
|
|
416
420
|
- [JobIdResponse](docs/JobIdResponse.md)
|
|
417
|
-
- [JobResponse](docs/JobResponse.md)
|
|
418
421
|
- [JobStatusResponse](docs/JobStatusResponse.md)
|
|
419
|
-
- [
|
|
420
|
-
- [PaginatedResponseStructuredExampleResponse](docs/PaginatedResponseStructuredExampleResponse.md)
|
|
422
|
+
- [PaginatedResponseT](docs/PaginatedResponseT.md)
|
|
421
423
|
- [ServiceStatus](docs/ServiceStatus.md)
|
|
422
424
|
- [StructuredExampleResponse](docs/StructuredExampleResponse.md)
|
|
423
425
|
- [StructuredExtractionResponse](docs/StructuredExtractionResponse.md)
|
|
@@ -271,7 +271,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
|
|
|
271
271
|
|
|
272
272
|
- API version:
|
|
273
273
|
- Package version: 1.0.0
|
|
274
|
-
- Generator version: 7.
|
|
274
|
+
- Generator version: 7.22.0
|
|
275
275
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
276
276
|
|
|
277
277
|
### Documentation for API Endpoints
|
|
@@ -282,6 +282,7 @@ Class | Method | HTTP request | Description
|
|
|
282
282
|
------------ | ------------- | ------------- | -------------
|
|
283
283
|
*ContentExtractionApi* | [**get_api_content_extraction_jobs_contentextractionjobid**](docs/ContentExtractionApi.md#get_api_content_extraction_jobs_contentextractionjobid) | **GET** /api/content-extraction/jobs/{contentExtractionJobId} |
|
|
284
284
|
*ContentExtractionApi* | [**post_api_content_extraction_jobs**](docs/ContentExtractionApi.md#post_api_content_extraction_jobs) | **POST** /api/content-extraction/jobs |
|
|
285
|
+
*ContentExtractionProjectManagementApi* | [**delete_api_content_extraction_contentprojectid**](docs/ContentExtractionProjectManagementApi.md#delete_api_content_extraction_contentprojectid) | **DELETE** /api/content-extraction/{contentProjectId} |
|
|
285
286
|
*ContentExtractionProjectManagementApi* | [**get_api_content_extraction**](docs/ContentExtractionProjectManagementApi.md#get_api_content_extraction) | **GET** /api/content-extraction |
|
|
286
287
|
*ContentExtractionProjectManagementApi* | [**patch_api_content_extraction_contentprojectid**](docs/ContentExtractionProjectManagementApi.md#patch_api_content_extraction_contentprojectid) | **PATCH** /api/content-extraction/{contentProjectId} |
|
|
287
288
|
*ContentExtractionProjectManagementApi* | [**patch_api_content_extraction_contentprojectid_settings**](docs/ContentExtractionProjectManagementApi.md#patch_api_content_extraction_contentprojectid_settings) | **PATCH** /api/content-extraction/{contentProjectId}/settings |
|
|
@@ -318,6 +319,7 @@ Class | Method | HTTP request | Description
|
|
|
318
319
|
*StructuredExtractionProjectManagementApi* | [**delete_api_structured_extraction_structuredprojectid**](docs/StructuredExtractionProjectManagementApi.md#delete_api_structured_extraction_structuredprojectid) | **DELETE** /api/structured-extraction/{structuredProjectId} |
|
|
319
320
|
*StructuredExtractionProjectManagementApi* | [**get_api_structured_extraction**](docs/StructuredExtractionProjectManagementApi.md#get_api_structured_extraction) | **GET** /api/structured-extraction |
|
|
320
321
|
*StructuredExtractionProjectManagementApi* | [**get_api_structured_extraction_structuredprojectid**](docs/StructuredExtractionProjectManagementApi.md#get_api_structured_extraction_structuredprojectid) | **GET** /api/structured-extraction/{structuredProjectId} |
|
|
322
|
+
*StructuredExtractionProjectManagementApi* | [**get_api_structured_extraction_structuredprojectid_thumbnail**](docs/StructuredExtractionProjectManagementApi.md#get_api_structured_extraction_structuredprojectid_thumbnail) | **GET** /api/structured-extraction/{structuredProjectId}/thumbnail |
|
|
321
323
|
*StructuredExtractionProjectManagementApi* | [**patch_api_structured_extraction_structuredprojectid**](docs/StructuredExtractionProjectManagementApi.md#patch_api_structured_extraction_structuredprojectid) | **PATCH** /api/structured-extraction/{structuredProjectId} |
|
|
322
324
|
*StructuredExtractionProjectManagementApi* | [**patch_api_structured_extraction_structuredprojectid_settings**](docs/StructuredExtractionProjectManagementApi.md#patch_api_structured_extraction_structuredprojectid_settings) | **PATCH** /api/structured-extraction/{structuredProjectId}/settings |
|
|
323
325
|
*StructuredExtractionProjectManagementApi* | [**post_api_structured_extraction**](docs/StructuredExtractionProjectManagementApi.md#post_api_structured_extraction) | **POST** /api/structured-extraction |
|
|
@@ -351,10 +353,8 @@ Class | Method | HTTP request | Description
|
|
|
351
353
|
- [InformationResponse](docs/InformationResponse.md)
|
|
352
354
|
- [InvalidInformation](docs/InvalidInformation.md)
|
|
353
355
|
- [JobIdResponse](docs/JobIdResponse.md)
|
|
354
|
-
- [JobResponse](docs/JobResponse.md)
|
|
355
356
|
- [JobStatusResponse](docs/JobStatusResponse.md)
|
|
356
|
-
- [
|
|
357
|
-
- [PaginatedResponseStructuredExampleResponse](docs/PaginatedResponseStructuredExampleResponse.md)
|
|
357
|
+
- [PaginatedResponseT](docs/PaginatedResponseT.md)
|
|
358
358
|
- [ServiceStatus](docs/ServiceStatus.md)
|
|
359
359
|
- [StructuredExampleResponse](docs/StructuredExampleResponse.md)
|
|
360
360
|
- [StructuredExtractionResponse](docs/StructuredExtractionResponse.md)
|
|
@@ -94,13 +94,17 @@ Name | Type | Description | Notes
|
|
|
94
94
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
95
95
|
|
|
96
96
|
# **post_api_content_extraction_jobs**
|
|
97
|
-
> JobIdResponse post_api_content_extraction_jobs(file, x_organization_id=x_organization_id, temperature=temperature, rasterization_dpi=rasterization_dpi, max_output_tokens=max_output_tokens, timeout=timeout)
|
|
97
|
+
> JobIdResponse post_api_content_extraction_jobs(file, x_organization_id=x_organization_id, project_id=project_id, temperature=temperature, rasterization_dpi=rasterization_dpi, max_output_tokens=max_output_tokens, enable_thinking=enable_thinking, timeout=timeout)
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
Extract content from the provided file in markdown format as an async job.
|
|
101
101
|
The response contains extracted markdown together with the reasoning trace.
|
|
102
102
|
The model only accepts images. Therefore, some files are converted to images -
|
|
103
103
|
the **rasterizationDPI** parameter controls their resolution.
|
|
104
|
+
Parameter resolution order:
|
|
105
|
+
- `temperature`: request value -> project setting (when `projectId` is provided) -> platform default
|
|
106
|
+
- `rasterizationDPI`: request value -> project setting (when `projectId` is provided) -> platform default
|
|
107
|
+
- `maxOutputTokens`: request value -> project setting (when `projectId` is provided) -> platform default
|
|
104
108
|
|
|
105
109
|
|
|
106
110
|
#### Response:
|
|
@@ -141,13 +145,15 @@ with numind.openapi_client.ApiClient(configuration) as api_client:
|
|
|
141
145
|
api_instance = numind.openapi_client.ContentExtractionApi(api_client)
|
|
142
146
|
file = None # bytes |
|
|
143
147
|
x_organization_id = 'x_organization_id_example' # str | Optional organization to use for this request. No header means that the user personal account will be used. This token is *only* used by the _frontend_ application and *will be ignored if used with the API*. When using the api, the organization used will be the one of the api key. (optional)
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
project_id = 'project_id_example' # str | Optional content project identifier. When provided, project settings are used as fallback for inference parameters; this identifier is also attached to usage and billing events. (optional)
|
|
149
|
+
temperature = 3.4 # float | Model temperature (optional). Controls output diversity. Ranges between 0 and 1. Resolution order: request `temperature` -> project setting (when `projectId` is provided) -> default 0.0. (optional)
|
|
150
|
+
rasterization_dpi = 56 # int | Resolution used to convert formatted documents (PDFs, etc.) to images, in dot per inch (optional). Ranges between 1 and 300. Resolution order: request `rasterizationDPI` -> project setting (when `projectId` is provided) -> default 170 dpi. (optional)
|
|
151
|
+
max_output_tokens = 56 # int | Maximum number of output tokens (optional). Must be positive. Resolution order: request `maxOutputTokens` -> project setting (when `projectId` is provided) -> default 0. Set to 0 for no limit. (optional)
|
|
152
|
+
enable_thinking = True # bool | Enable thinking/reasoning (optional). Resolution order: request `enableThinking` -> project setting (when `projectId` is provided) -> default true. (optional)
|
|
147
153
|
timeout = 'timeout_example' # str | Max time to wait for the processing completion. Format examples: 1000ms, 10s, 1m, 1h (optional)
|
|
148
154
|
|
|
149
155
|
try:
|
|
150
|
-
api_response = api_instance.post_api_content_extraction_jobs(file, x_organization_id=x_organization_id, temperature=temperature, rasterization_dpi=rasterization_dpi, max_output_tokens=max_output_tokens, timeout=timeout)
|
|
156
|
+
api_response = api_instance.post_api_content_extraction_jobs(file, x_organization_id=x_organization_id, project_id=project_id, temperature=temperature, rasterization_dpi=rasterization_dpi, max_output_tokens=max_output_tokens, enable_thinking=enable_thinking, timeout=timeout)
|
|
151
157
|
print("The response of ContentExtractionApi->post_api_content_extraction_jobs:\n")
|
|
152
158
|
pprint(api_response)
|
|
153
159
|
except Exception as e:
|
|
@@ -163,9 +169,11 @@ Name | Type | Description | Notes
|
|
|
163
169
|
------------- | ------------- | ------------- | -------------
|
|
164
170
|
**file** | **bytes**| |
|
|
165
171
|
**x_organization_id** | **str**| Optional organization to use for this request. No header means that the user personal account will be used. This token is *only* used by the _frontend_ application and *will be ignored if used with the API*. When using the api, the organization used will be the one of the api key. | [optional]
|
|
166
|
-
**
|
|
167
|
-
**
|
|
168
|
-
**
|
|
172
|
+
**project_id** | **str**| Optional content project identifier. When provided, project settings are used as fallback for inference parameters; this identifier is also attached to usage and billing events. | [optional]
|
|
173
|
+
**temperature** | **float**| Model temperature (optional). Controls output diversity. Ranges between 0 and 1. Resolution order: request `temperature` -> project setting (when `projectId` is provided) -> default 0.0. | [optional]
|
|
174
|
+
**rasterization_dpi** | **int**| Resolution used to convert formatted documents (PDFs, etc.) to images, in dot per inch (optional). Ranges between 1 and 300. Resolution order: request `rasterizationDPI` -> project setting (when `projectId` is provided) -> default 170 dpi. | [optional]
|
|
175
|
+
**max_output_tokens** | **int**| Maximum number of output tokens (optional). Must be positive. Resolution order: request `maxOutputTokens` -> project setting (when `projectId` is provided) -> default 0. Set to 0 for no limit. | [optional]
|
|
176
|
+
**enable_thinking** | **bool**| Enable thinking/reasoning (optional). Resolution order: request `enableThinking` -> project setting (when `projectId` is provided) -> default true. | [optional]
|
|
169
177
|
**timeout** | **str**| Max time to wait for the processing completion. Format examples: 1000ms, 10s, 1m, 1h | [optional]
|
|
170
178
|
|
|
171
179
|
### Return type
|
|
@@ -186,7 +194,7 @@ Name | Type | Description | Notes
|
|
|
186
194
|
| Status code | Description | Response headers |
|
|
187
195
|
|-------------|-------------|------------------|
|
|
188
196
|
**200** | | - |
|
|
189
|
-
**400** | Invalid value for: query parameter temperature, Invalid value for: query parameter rasterizationDPI, Invalid value for: query parameter maxOutputTokens, Invalid value for: body | - |
|
|
197
|
+
**400** | Invalid value for: query parameter temperature, Invalid value for: query parameter rasterizationDPI, Invalid value for: query parameter maxOutputTokens, Invalid value for: query parameter enableThinking, Invalid value for: body | - |
|
|
190
198
|
**0** | | - |
|
|
191
199
|
|
|
192
200
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -4,6 +4,7 @@ All URIs are relative to *https://nuextract.ai*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
+
[**delete_api_content_extraction_contentprojectid**](ContentExtractionProjectManagementApi.md#delete_api_content_extraction_contentprojectid) | **DELETE** /api/content-extraction/{contentProjectId} |
|
|
7
8
|
[**get_api_content_extraction**](ContentExtractionProjectManagementApi.md#get_api_content_extraction) | **GET** /api/content-extraction |
|
|
8
9
|
[**patch_api_content_extraction_contentprojectid**](ContentExtractionProjectManagementApi.md#patch_api_content_extraction_contentprojectid) | **PATCH** /api/content-extraction/{contentProjectId} |
|
|
9
10
|
[**patch_api_content_extraction_contentprojectid_settings**](ContentExtractionProjectManagementApi.md#patch_api_content_extraction_contentprojectid_settings) | **PATCH** /api/content-extraction/{contentProjectId}/settings |
|
|
@@ -11,6 +12,80 @@ Method | HTTP request | Description
|
|
|
11
12
|
[**post_api_content_extraction_contentprojectid_reset_settings**](ContentExtractionProjectManagementApi.md#post_api_content_extraction_contentprojectid_reset_settings) | **POST** /api/content-extraction/{contentProjectId}/reset-settings |
|
|
12
13
|
|
|
13
14
|
|
|
15
|
+
# **delete_api_content_extraction_contentprojectid**
|
|
16
|
+
> delete_api_content_extraction_contentprojectid(content_project_id, x_organization_id=x_organization_id)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Delete a **Content Extraction Project**. This action cannot be undone.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
* OAuth Authentication (oauth2Auth):
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
import numind.openapi_client
|
|
28
|
+
from numind.openapi_client.rest import ApiException
|
|
29
|
+
from pprint import pprint
|
|
30
|
+
|
|
31
|
+
# Defining the host is optional and defaults to https://nuextract.ai
|
|
32
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
33
|
+
configuration = numind.openapi_client.Configuration(
|
|
34
|
+
host = "https://nuextract.ai"
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
# The client must configure the authentication and authorization parameters
|
|
38
|
+
# in accordance with the API server security policy.
|
|
39
|
+
# Examples for each auth method are provided below, use the example that
|
|
40
|
+
# satisfies your auth use case.
|
|
41
|
+
|
|
42
|
+
configuration.access_token = os.environ["ACCESS_TOKEN"]
|
|
43
|
+
|
|
44
|
+
# Enter a context with an instance of the API client
|
|
45
|
+
with numind.openapi_client.ApiClient(configuration) as api_client:
|
|
46
|
+
# Create an instance of the API class
|
|
47
|
+
api_instance = numind.openapi_client.ContentExtractionProjectManagementApi(api_client)
|
|
48
|
+
content_project_id = 'content_project_id_example' # str | Unique content extraction project identifier.
|
|
49
|
+
x_organization_id = 'x_organization_id_example' # str | Optional organization to use for this request. No header means that the user personal account will be used. This token is *only* used by the _frontend_ application and *will be ignored if used with the API*. When using the api, the organization used will be the one of the api key. (optional)
|
|
50
|
+
|
|
51
|
+
try:
|
|
52
|
+
api_instance.delete_api_content_extraction_contentprojectid(content_project_id, x_organization_id=x_organization_id)
|
|
53
|
+
except Exception as e:
|
|
54
|
+
print("Exception when calling ContentExtractionProjectManagementApi->delete_api_content_extraction_contentprojectid: %s\n" % e)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Parameters
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
Name | Type | Description | Notes
|
|
63
|
+
------------- | ------------- | ------------- | -------------
|
|
64
|
+
**content_project_id** | **str**| Unique content extraction project identifier. |
|
|
65
|
+
**x_organization_id** | **str**| Optional organization to use for this request. No header means that the user personal account will be used. This token is *only* used by the _frontend_ application and *will be ignored if used with the API*. When using the api, the organization used will be the one of the api key. | [optional]
|
|
66
|
+
|
|
67
|
+
### Return type
|
|
68
|
+
|
|
69
|
+
void (empty response body)
|
|
70
|
+
|
|
71
|
+
### Authorization
|
|
72
|
+
|
|
73
|
+
[oauth2Auth](../README.md#oauth2Auth)
|
|
74
|
+
|
|
75
|
+
### HTTP request headers
|
|
76
|
+
|
|
77
|
+
- **Content-Type**: Not defined
|
|
78
|
+
- **Accept**: application/json
|
|
79
|
+
|
|
80
|
+
### HTTP response details
|
|
81
|
+
|
|
82
|
+
| Status code | Description | Response headers |
|
|
83
|
+
|-------------|-------------|------------------|
|
|
84
|
+
**200** | | - |
|
|
85
|
+
**0** | | - |
|
|
86
|
+
|
|
87
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
88
|
+
|
|
14
89
|
# **get_api_content_extraction**
|
|
15
90
|
> List[ContentProjectResponse] get_api_content_extraction(x_organization_id=x_organization_id)
|
|
16
91
|
|
|
@@ -212,7 +287,7 @@ with numind.openapi_client.ApiClient(configuration) as api_client:
|
|
|
212
287
|
# Create an instance of the API class
|
|
213
288
|
api_instance = numind.openapi_client.ContentExtractionProjectManagementApi(api_client)
|
|
214
289
|
content_project_id = 'content_project_id_example' # str | Unique content extraction project identifier.
|
|
215
|
-
update_content_project_settings_request = {"temperature":0,"rasterizationDPI":170,"maxOutputTokens":0} # UpdateContentProjectSettingsRequest |
|
|
290
|
+
update_content_project_settings_request = {"temperature":0,"rasterizationDPI":170,"maxOutputTokens":0,"enableThinking":true} # UpdateContentProjectSettingsRequest |
|
|
216
291
|
x_organization_id = 'x_organization_id_example' # str | Optional organization to use for this request. No header means that the user personal account will be used. This token is *only* used by the _frontend_ application and *will be ignored if used with the API*. When using the api, the organization used will be the one of the api key. (optional)
|
|
217
292
|
|
|
218
293
|
try:
|
|
@@ -8,7 +8,8 @@ Name | Type | Description | Notes
|
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**temperature** | **float** | Model temperature. |
|
|
10
10
|
**rasterization_dpi** | **int** | Resolution used to convert formatted documents to images. |
|
|
11
|
-
**max_output_tokens** | **int** | Maximum number of output tokens
|
|
11
|
+
**max_output_tokens** | **int** | Maximum number of output tokens. Must be positive. Set to 0 for no limit. |
|
|
12
|
+
**enable_thinking** | **bool** | Enable thinking/reasoning. |
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**doc_info** | [**DocumentInfo**](DocumentInfo.md) | Basic document information. |
|
|
9
9
|
**owner_user** | **str** | Document owner. |
|
|
10
10
|
**owner_organization** | **str** | Document owning organization (if any). | [optional]
|
|
11
|
-
**content_type** | **str** | Mime type of the document. |
|
|
12
11
|
**created_at** | **str** | Document creation date. |
|
|
13
12
|
|
|
14
13
|
## Example
|
|
@@ -170,7 +170,7 @@ Name | Type | Description | Notes
|
|
|
170
170
|
|
|
171
171
|
| Status code | Description | Response headers |
|
|
172
172
|
|-------------|-------------|------------------|
|
|
173
|
-
**200** | | * Content-Type - MIME type of
|
|
173
|
+
**200** | | * Content-Type - MIME type of the thumbnail image <br> * Cache-Control - <br> |
|
|
174
174
|
**0** | | - |
|
|
175
175
|
|
|
176
176
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**file_name** | **str** | Filename of the initial file. | [optional]
|
|
10
10
|
**owner_user** | **str** | File owner. |
|
|
11
11
|
**owner_organization** | **str** | File owning organization (if any). | [optional]
|
|
12
|
-
**content_type** | **str** | Mime type of the file. |
|
|
13
12
|
**created_at** | **str** | File creation date. |
|
|
14
13
|
|
|
15
14
|
## Example
|
|
@@ -168,7 +168,7 @@ Name | Type | Description | Notes
|
|
|
168
168
|
|
|
169
169
|
| Status code | Description | Response headers |
|
|
170
170
|
|-------------|-------------|------------------|
|
|
171
|
-
**200** | | * Content-Type - MIME type of
|
|
171
|
+
**200** | | * Content-Type - MIME type of the thumbnail image <br> |
|
|
172
172
|
**0** | | - |
|
|
173
173
|
|
|
174
174
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -16,7 +16,10 @@ Method | HTTP request | Description
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
Extract content from the provided document in markdown format as an async job.
|
|
19
|
-
Inference
|
|
19
|
+
Inference parameters are resolved from the project settings first, then platform defaults when absent:
|
|
20
|
+
- `temperature`: project setting -> platform default
|
|
21
|
+
- `maxOutputTokens`: project setting -> platform default
|
|
22
|
+
- `rasterizationDPI`: project setting -> platform default (used only when document conversion is needed upstream)
|
|
20
23
|
|
|
21
24
|
#### Response:
|
|
22
25
|
Returns a JSON containing the job ID that can be used to retrieve the job status and results.
|
|
@@ -108,7 +111,7 @@ Name | Type | Description | Notes
|
|
|
108
111
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
109
112
|
|
|
110
113
|
# **post_api_structured_extraction_structuredprojectid_jobs_document_documentid**
|
|
111
|
-
> JobIdResponse post_api_structured_extraction_structuredprojectid_jobs_document_documentid(structured_project_id, document_id, x_organization_id=x_organization_id, temperature=temperature, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, timeout=timeout)
|
|
114
|
+
> JobIdResponse post_api_structured_extraction_structuredprojectid_jobs_document_documentid(structured_project_id, document_id, x_organization_id=x_organization_id, temperature=temperature, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, enable_thinking=enable_thinking, timeout=timeout)
|
|
112
115
|
|
|
113
116
|
|
|
114
117
|
Performs structured information extraction inference on the provided document as an async job.
|
|
@@ -166,10 +169,11 @@ with numind.openapi_client.ApiClient(configuration) as api_client:
|
|
|
166
169
|
max_example_token_number = 56 # int | Controls the maximum number of tokens that can be allocated to the examples. Must be positive. Ranges in the context window of the model. (optional)
|
|
167
170
|
max_example_number = 56 # int | Controls the maximum number of examples to use. Must be positive. Set to 0 for no limit. (optional)
|
|
168
171
|
min_example_similarity = 3.4 # float | Controls the minimum similarity between the document and the examples. Must be between 0 and 1. Set to 0 for any similarity and 1 for exact match. (optional)
|
|
172
|
+
enable_thinking = True # bool | Enable thinking/reasoning (optional). Resolution order: request `enableThinking` -> project setting (when `projectId` is provided) -> default false. (optional)
|
|
169
173
|
timeout = 'timeout_example' # str | Max time to wait for the processing completion. Format examples: 1000ms, 10s, 1m, 1h (optional)
|
|
170
174
|
|
|
171
175
|
try:
|
|
172
|
-
api_response = api_instance.post_api_structured_extraction_structuredprojectid_jobs_document_documentid(structured_project_id, document_id, x_organization_id=x_organization_id, temperature=temperature, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, timeout=timeout)
|
|
176
|
+
api_response = api_instance.post_api_structured_extraction_structuredprojectid_jobs_document_documentid(structured_project_id, document_id, x_organization_id=x_organization_id, temperature=temperature, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, enable_thinking=enable_thinking, timeout=timeout)
|
|
173
177
|
print("The response of InferenceApi->post_api_structured_extraction_structuredprojectid_jobs_document_documentid:\n")
|
|
174
178
|
pprint(api_response)
|
|
175
179
|
except Exception as e:
|
|
@@ -191,6 +195,7 @@ Name | Type | Description | Notes
|
|
|
191
195
|
**max_example_token_number** | **int**| Controls the maximum number of tokens that can be allocated to the examples. Must be positive. Ranges in the context window of the model. | [optional]
|
|
192
196
|
**max_example_number** | **int**| Controls the maximum number of examples to use. Must be positive. Set to 0 for no limit. | [optional]
|
|
193
197
|
**min_example_similarity** | **float**| Controls the minimum similarity between the document and the examples. Must be between 0 and 1. Set to 0 for any similarity and 1 for exact match. | [optional]
|
|
198
|
+
**enable_thinking** | **bool**| Enable thinking/reasoning (optional). Resolution order: request `enableThinking` -> project setting (when `projectId` is provided) -> default false. | [optional]
|
|
194
199
|
**timeout** | **str**| Max time to wait for the processing completion. Format examples: 1000ms, 10s, 1m, 1h | [optional]
|
|
195
200
|
|
|
196
201
|
### Return type
|
|
@@ -211,13 +216,13 @@ Name | Type | Description | Notes
|
|
|
211
216
|
| Status code | Description | Response headers |
|
|
212
217
|
|-------------|-------------|------------------|
|
|
213
218
|
**200** | | - |
|
|
214
|
-
**400** | Invalid value for: query parameter temperature, Invalid value for: query parameter maxOutputTokens, Invalid value for: query parameter maxExampleTokenNumber, Invalid value for: query parameter maxExampleNumber, Invalid value for: query parameter minExampleSimilarity | - |
|
|
219
|
+
**400** | Invalid value for: query parameter temperature, Invalid value for: query parameter maxOutputTokens, Invalid value for: query parameter maxExampleTokenNumber, Invalid value for: query parameter maxExampleNumber, Invalid value for: query parameter minExampleSimilarity, Invalid value for: query parameter enableThinking | - |
|
|
215
220
|
**0** | | - |
|
|
216
221
|
|
|
217
222
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
218
223
|
|
|
219
224
|
# **post_api_structured_extraction_structuredprojectid_jobs_text**
|
|
220
|
-
> JobIdResponse post_api_structured_extraction_structuredprojectid_jobs_text(structured_project_id, text_request, x_organization_id=x_organization_id, temperature=temperature, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, timeout=timeout)
|
|
225
|
+
> JobIdResponse post_api_structured_extraction_structuredprojectid_jobs_text(structured_project_id, text_request, x_organization_id=x_organization_id, temperature=temperature, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, enable_thinking=enable_thinking, timeout=timeout)
|
|
221
226
|
|
|
222
227
|
|
|
223
228
|
Performs structured information extraction inference on the provided text as an async job.
|
|
@@ -277,10 +282,11 @@ with numind.openapi_client.ApiClient(configuration) as api_client:
|
|
|
277
282
|
max_example_token_number = 56 # int | Controls the maximum number of tokens that can be allocated to the examples. Must be positive. Ranges in the context window of the model. (optional)
|
|
278
283
|
max_example_number = 56 # int | Controls the maximum number of examples to use. Must be positive. Set to 0 for no limit. (optional)
|
|
279
284
|
min_example_similarity = 3.4 # float | Controls the minimum similarity between the document and the examples. Must be between 0 and 1. Set to 0 for any similarity and 1 for exact match. (optional)
|
|
285
|
+
enable_thinking = True # bool | Enable thinking/reasoning (optional). Resolution order: request `enableThinking` -> project setting (when `projectId` is provided) -> default false. (optional)
|
|
280
286
|
timeout = 'timeout_example' # str | Max time to wait for the processing completion. Format examples: 1000ms, 10s, 1m, 1h (optional)
|
|
281
287
|
|
|
282
288
|
try:
|
|
283
|
-
api_response = api_instance.post_api_structured_extraction_structuredprojectid_jobs_text(structured_project_id, text_request, x_organization_id=x_organization_id, temperature=temperature, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, timeout=timeout)
|
|
289
|
+
api_response = api_instance.post_api_structured_extraction_structuredprojectid_jobs_text(structured_project_id, text_request, x_organization_id=x_organization_id, temperature=temperature, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, enable_thinking=enable_thinking, timeout=timeout)
|
|
284
290
|
print("The response of InferenceApi->post_api_structured_extraction_structuredprojectid_jobs_text:\n")
|
|
285
291
|
pprint(api_response)
|
|
286
292
|
except Exception as e:
|
|
@@ -302,6 +308,7 @@ Name | Type | Description | Notes
|
|
|
302
308
|
**max_example_token_number** | **int**| Controls the maximum number of tokens that can be allocated to the examples. Must be positive. Ranges in the context window of the model. | [optional]
|
|
303
309
|
**max_example_number** | **int**| Controls the maximum number of examples to use. Must be positive. Set to 0 for no limit. | [optional]
|
|
304
310
|
**min_example_similarity** | **float**| Controls the minimum similarity between the document and the examples. Must be between 0 and 1. Set to 0 for any similarity and 1 for exact match. | [optional]
|
|
311
|
+
**enable_thinking** | **bool**| Enable thinking/reasoning (optional). Resolution order: request `enableThinking` -> project setting (when `projectId` is provided) -> default false. | [optional]
|
|
305
312
|
**timeout** | **str**| Max time to wait for the processing completion. Format examples: 1000ms, 10s, 1m, 1h | [optional]
|
|
306
313
|
|
|
307
314
|
### Return type
|
|
@@ -322,7 +329,7 @@ Name | Type | Description | Notes
|
|
|
322
329
|
| Status code | Description | Response headers |
|
|
323
330
|
|-------------|-------------|------------------|
|
|
324
331
|
**200** | | - |
|
|
325
|
-
**400** | Invalid value for: query parameter temperature, Invalid value for: query parameter maxOutputTokens, Invalid value for: query parameter maxExampleTokenNumber, Invalid value for: query parameter maxExampleNumber, Invalid value for: query parameter minExampleSimilarity, Invalid value for: body | - |
|
|
332
|
+
**400** | Invalid value for: query parameter temperature, Invalid value for: query parameter maxOutputTokens, Invalid value for: query parameter maxExampleTokenNumber, Invalid value for: query parameter maxExampleNumber, Invalid value for: query parameter minExampleSimilarity, Invalid value for: query parameter enableThinking, Invalid value for: body | - |
|
|
326
333
|
**0** | | - |
|
|
327
334
|
|
|
328
335
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -10,7 +10,7 @@ Method | HTTP request | Description
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
# **get_api_jobs**
|
|
13
|
-
>
|
|
13
|
+
> PaginatedResponseT get_api_jobs(x_organization_id=x_organization_id, organization=organization, skip=skip, per_page=per_page)
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
List all jobs for the authenticated user with pagination support.
|
|
@@ -25,7 +25,7 @@ Method | HTTP request | Description
|
|
|
25
25
|
|
|
26
26
|
```python
|
|
27
27
|
import numind.openapi_client
|
|
28
|
-
from numind.models.
|
|
28
|
+
from numind.models.paginated_response_t import PaginatedResponseT
|
|
29
29
|
from numind.openapi_client.rest import ApiException
|
|
30
30
|
from pprint import pprint
|
|
31
31
|
|
|
@@ -73,7 +73,7 @@ Name | Type | Description | Notes
|
|
|
73
73
|
|
|
74
74
|
### Return type
|
|
75
75
|
|
|
76
|
-
[**
|
|
76
|
+
[**PaginatedResponseT**](PaginatedResponseT.md)
|
|
77
77
|
|
|
78
78
|
### Authorization
|
|
79
79
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# PaginatedResponseT
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**total_count** | **int** | Total number of items available. |
|
|
9
|
+
**skip** | **int** | Number of items skipped. |
|
|
10
|
+
**per_page** | **int** | Number of items per page. |
|
|
11
|
+
**items** | [**List[StructuredExampleResponse]**](StructuredExampleResponse.md) | List of items. | [optional]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from numind.models.paginated_response_t import PaginatedResponseT
|
|
17
|
+
|
|
18
|
+
# TODO update the JSON string below
|
|
19
|
+
json = "{}"
|
|
20
|
+
# create an instance of PaginatedResponseT from a JSON string
|
|
21
|
+
paginated_response_t_instance = PaginatedResponseT.from_json(json)
|
|
22
|
+
# print the JSON string representation of the object
|
|
23
|
+
print(PaginatedResponseT.to_json())
|
|
24
|
+
|
|
25
|
+
# convert the object into a dict
|
|
26
|
+
paginated_response_t_dict = paginated_response_t_instance.to_dict()
|
|
27
|
+
# create an instance of PaginatedResponseT from a dict
|
|
28
|
+
paginated_response_t_from_dict = PaginatedResponseT.from_dict(paginated_response_t_dict)
|
|
29
|
+
```
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -95,7 +95,7 @@ Name | Type | Description | Notes
|
|
|
95
95
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
96
96
|
|
|
97
97
|
# **post_api_structured_extraction_structuredprojectid_jobs**
|
|
98
|
-
> JobIdResponse post_api_structured_extraction_structuredprojectid_jobs(structured_project_id, body, x_organization_id=x_organization_id, temperature=temperature, dpi=dpi, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, timeout=timeout)
|
|
98
|
+
> JobIdResponse post_api_structured_extraction_structuredprojectid_jobs(structured_project_id, body, x_organization_id=x_organization_id, temperature=temperature, dpi=dpi, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, enable_thinking=enable_thinking, timeout=timeout)
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
Extract structured information from the provided text or file as an async job. Some files are converted to images -
|
|
@@ -154,10 +154,11 @@ with numind.openapi_client.ApiClient(configuration) as api_client:
|
|
|
154
154
|
max_example_token_number = 56 # int | Controls the maximum number of tokens that can be allocated to the examples. Must be positive. Ranges in the context window of the model. (optional)
|
|
155
155
|
max_example_number = 56 # int | Controls the maximum number of examples to use. Must be positive. Set to 0 for no limit. (optional)
|
|
156
156
|
min_example_similarity = 3.4 # float | Controls the minimum similarity between the document and the examples. Must be between 0 and 1. Set to 0 for any similarity and 1 for exact match. (optional)
|
|
157
|
+
enable_thinking = True # bool | Enable thinking/reasoning (optional). Resolution order: request `enableThinking` -> project setting (when `projectId` is provided) -> default false. (optional)
|
|
157
158
|
timeout = 'timeout_example' # str | Max time to wait for the processing completion. Format examples: 1000ms, 10s, 1m, 1h (optional)
|
|
158
159
|
|
|
159
160
|
try:
|
|
160
|
-
api_response = api_instance.post_api_structured_extraction_structuredprojectid_jobs(structured_project_id, body, x_organization_id=x_organization_id, temperature=temperature, dpi=dpi, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, timeout=timeout)
|
|
161
|
+
api_response = api_instance.post_api_structured_extraction_structuredprojectid_jobs(structured_project_id, body, x_organization_id=x_organization_id, temperature=temperature, dpi=dpi, max_output_tokens=max_output_tokens, max_example_token_number=max_example_token_number, max_example_number=max_example_number, min_example_similarity=min_example_similarity, enable_thinking=enable_thinking, timeout=timeout)
|
|
161
162
|
print("The response of StructuredDataExtractionApi->post_api_structured_extraction_structuredprojectid_jobs:\n")
|
|
162
163
|
pprint(api_response)
|
|
163
164
|
except Exception as e:
|
|
@@ -180,6 +181,7 @@ Name | Type | Description | Notes
|
|
|
180
181
|
**max_example_token_number** | **int**| Controls the maximum number of tokens that can be allocated to the examples. Must be positive. Ranges in the context window of the model. | [optional]
|
|
181
182
|
**max_example_number** | **int**| Controls the maximum number of examples to use. Must be positive. Set to 0 for no limit. | [optional]
|
|
182
183
|
**min_example_similarity** | **float**| Controls the minimum similarity between the document and the examples. Must be between 0 and 1. Set to 0 for any similarity and 1 for exact match. | [optional]
|
|
184
|
+
**enable_thinking** | **bool**| Enable thinking/reasoning (optional). Resolution order: request `enableThinking` -> project setting (when `projectId` is provided) -> default false. | [optional]
|
|
183
185
|
**timeout** | **str**| Max time to wait for the processing completion. Format examples: 1000ms, 10s, 1m, 1h | [optional]
|
|
184
186
|
|
|
185
187
|
### Return type
|
|
@@ -200,7 +202,7 @@ Name | Type | Description | Notes
|
|
|
200
202
|
| Status code | Description | Response headers |
|
|
201
203
|
|-------------|-------------|------------------|
|
|
202
204
|
**200** | | - |
|
|
203
|
-
**400** | Invalid value for: query parameter temperature, Invalid value for: query parameter dpi, Invalid value for: query parameter maxOutputTokens, Invalid value for: query parameter maxExampleTokenNumber, Invalid value for: query parameter maxExampleNumber, Invalid value for: query parameter minExampleSimilarity, Invalid value for: body | - |
|
|
205
|
+
**400** | Invalid value for: query parameter temperature, Invalid value for: query parameter dpi, Invalid value for: query parameter maxOutputTokens, Invalid value for: query parameter maxExampleTokenNumber, Invalid value for: query parameter maxExampleNumber, Invalid value for: query parameter minExampleSimilarity, Invalid value for: query parameter enableThinking, Invalid value for: body | - |
|
|
204
206
|
**0** | | - |
|
|
205
207
|
|
|
206
208
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
@@ -95,7 +95,7 @@ void (empty response body)
|
|
|
95
95
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
96
96
|
|
|
97
97
|
# **get_api_structured_extraction_structuredprojectid_examples**
|
|
98
|
-
>
|
|
98
|
+
> PaginatedResponseT get_api_structured_extraction_structuredprojectid_examples(structured_project_id, x_organization_id=x_organization_id, skip=skip, per_page=per_page)
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
Return a list of **Examples** associated to the specified **Structured Extraction Project** with pagination support.
|
|
@@ -112,7 +112,7 @@ Return a list of **Examples** associated to the specified **Structured Extractio
|
|
|
112
112
|
|
|
113
113
|
```python
|
|
114
114
|
import numind.openapi_client
|
|
115
|
-
from numind.models.
|
|
115
|
+
from numind.models.paginated_response_t import PaginatedResponseT
|
|
116
116
|
from numind.openapi_client.rest import ApiException
|
|
117
117
|
from pprint import pprint
|
|
118
118
|
|
|
@@ -160,7 +160,7 @@ Name | Type | Description | Notes
|
|
|
160
160
|
|
|
161
161
|
### Return type
|
|
162
162
|
|
|
163
|
-
[**
|
|
163
|
+
[**PaginatedResponseT**](PaginatedResponseT.md)
|
|
164
164
|
|
|
165
165
|
### Authorization
|
|
166
166
|
|