Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 24
configured_endpoints: 30
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-8d823477cb6d9c193492b79d7a52280e76535d9171df279807e4c145c29737e6.yml
41 changes: 41 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,44 @@ Methods:
- <code title="get /v1/vector_stores/{vector_store_id}/files">client.vector_stores.files.<a href="./src/mixedbread/resources/vector_stores/files.py">list</a>(vector_store_id, \*\*<a href="src/mixedbread/types/vector_stores/file_list_params.py">params</a>) -> <a href="./src/mixedbread/types/vector_stores/vector_store_file.py">SyncLimitOffset[VectorStoreFile]</a></code>
- <code title="delete /v1/vector_stores/{vector_store_id}/files/{file_id}">client.vector_stores.files.<a href="./src/mixedbread/resources/vector_stores/files.py">delete</a>(file_id, \*, vector_store_id) -> <a href="./src/mixedbread/types/vector_stores/file_delete_response.py">FileDeleteResponse</a></code>
- <code title="post /v1/vector_stores/files/search">client.vector_stores.files.<a href="./src/mixedbread/resources/vector_stores/files.py">search</a>(\*\*<a href="src/mixedbread/types/vector_stores/file_search_params.py">params</a>) -> <a href="./src/mixedbread/types/vector_stores/file_search_response.py">FileSearchResponse</a></code>

# Extractions

## Jobs

Types:

```python
from mixedbread.types.extractions import ExtractionJob
```

Methods:

- <code title="post /v1/extractions/jobs">client.extractions.jobs.<a href="./src/mixedbread/resources/extractions/jobs.py">create</a>(\*\*<a href="src/mixedbread/types/extractions/job_create_params.py">params</a>) -> <a href="./src/mixedbread/types/extractions/extraction_job.py">ExtractionJob</a></code>
- <code title="get /v1/extractions/jobs/{job_id}">client.extractions.jobs.<a href="./src/mixedbread/resources/extractions/jobs.py">retrieve</a>(job_id) -> <a href="./src/mixedbread/types/extractions/extraction_job.py">ExtractionJob</a></code>

## Schema

Types:

```python
from mixedbread.types.extractions import CreatedJsonSchema, EnhancedJsonSchema, ValidatedJsonSchema
```

Methods:

- <code title="post /v1/extractions/schema">client.extractions.schema.<a href="./src/mixedbread/resources/extractions/schema.py">create</a>(\*\*<a href="src/mixedbread/types/extractions/schema_create_params.py">params</a>) -> <a href="./src/mixedbread/types/extractions/created_json_schema.py">CreatedJsonSchema</a></code>
- <code title="post /v1/extractions/schema/enhance">client.extractions.schema.<a href="./src/mixedbread/resources/extractions/schema.py">enhance</a>(\*\*<a href="src/mixedbread/types/extractions/schema_enhance_params.py">params</a>) -> <a href="./src/mixedbread/types/extractions/enhanced_json_schema.py">EnhancedJsonSchema</a></code>
- <code title="post /v1/extractions/schema/validate">client.extractions.schema.<a href="./src/mixedbread/resources/extractions/schema.py">validate</a>(\*\*<a href="src/mixedbread/types/extractions/schema_validate_params.py">params</a>) -> <a href="./src/mixedbread/types/extractions/validated_json_schema.py">ValidatedJsonSchema</a></code>

## Content

Types:

```python
from mixedbread.types.extractions import ExtractionResult
```

Methods:

- <code title="post /v1/extractions/content">client.extractions.content.<a href="./src/mixedbread/resources/extractions/content.py">create</a>(\*\*<a href="src/mixedbread/types/extractions/content_create_params.py">params</a>) -> <a href="./src/mixedbread/types/extractions/extraction_result.py">ExtractionResult</a></code>
9 changes: 9 additions & 0 deletions src/mixedbread/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
)
from .resources.parsing import parsing
from .types.info_response import InfoResponse
from .resources.extractions import extractions
from .resources.vector_stores import vector_stores

__all__ = [
Expand All @@ -68,6 +69,7 @@ class Mixedbread(SyncAPIClient):
parsing: parsing.ParsingResource
files: files.FilesResource
vector_stores: vector_stores.VectorStoresResource
extractions: extractions.ExtractionsResource
with_raw_response: MixedbreadWithRawResponse
with_streaming_response: MixedbreadWithStreamedResponse

Expand Down Expand Up @@ -152,6 +154,7 @@ def __init__(
self.parsing = parsing.ParsingResource(self)
self.files = files.FilesResource(self)
self.vector_stores = vector_stores.VectorStoresResource(self)
self.extractions = extractions.ExtractionsResource(self)
self.with_raw_response = MixedbreadWithRawResponse(self)
self.with_streaming_response = MixedbreadWithStreamedResponse(self)

Expand Down Expand Up @@ -289,6 +292,7 @@ class AsyncMixedbread(AsyncAPIClient):
parsing: parsing.AsyncParsingResource
files: files.AsyncFilesResource
vector_stores: vector_stores.AsyncVectorStoresResource
extractions: extractions.AsyncExtractionsResource
with_raw_response: AsyncMixedbreadWithRawResponse
with_streaming_response: AsyncMixedbreadWithStreamedResponse

Expand Down Expand Up @@ -373,6 +377,7 @@ def __init__(
self.parsing = parsing.AsyncParsingResource(self)
self.files = files.AsyncFilesResource(self)
self.vector_stores = vector_stores.AsyncVectorStoresResource(self)
self.extractions = extractions.AsyncExtractionsResource(self)
self.with_raw_response = AsyncMixedbreadWithRawResponse(self)
self.with_streaming_response = AsyncMixedbreadWithStreamedResponse(self)

Expand Down Expand Up @@ -511,6 +516,7 @@ def __init__(self, client: Mixedbread) -> None:
self.parsing = parsing.ParsingResourceWithRawResponse(client.parsing)
self.files = files.FilesResourceWithRawResponse(client.files)
self.vector_stores = vector_stores.VectorStoresResourceWithRawResponse(client.vector_stores)
self.extractions = extractions.ExtractionsResourceWithRawResponse(client.extractions)

self.info = to_raw_response_wrapper(
client.info,
Expand All @@ -522,6 +528,7 @@ def __init__(self, client: AsyncMixedbread) -> None:
self.parsing = parsing.AsyncParsingResourceWithRawResponse(client.parsing)
self.files = files.AsyncFilesResourceWithRawResponse(client.files)
self.vector_stores = vector_stores.AsyncVectorStoresResourceWithRawResponse(client.vector_stores)
self.extractions = extractions.AsyncExtractionsResourceWithRawResponse(client.extractions)

self.info = async_to_raw_response_wrapper(
client.info,
Expand All @@ -533,6 +540,7 @@ def __init__(self, client: Mixedbread) -> None:
self.parsing = parsing.ParsingResourceWithStreamingResponse(client.parsing)
self.files = files.FilesResourceWithStreamingResponse(client.files)
self.vector_stores = vector_stores.VectorStoresResourceWithStreamingResponse(client.vector_stores)
self.extractions = extractions.ExtractionsResourceWithStreamingResponse(client.extractions)

self.info = to_streamed_response_wrapper(
client.info,
Expand All @@ -544,6 +552,7 @@ def __init__(self, client: AsyncMixedbread) -> None:
self.parsing = parsing.AsyncParsingResourceWithStreamingResponse(client.parsing)
self.files = files.AsyncFilesResourceWithStreamingResponse(client.files)
self.vector_stores = vector_stores.AsyncVectorStoresResourceWithStreamingResponse(client.vector_stores)
self.extractions = extractions.AsyncExtractionsResourceWithStreamingResponse(client.extractions)

self.info = async_to_streamed_response_wrapper(
client.info,
Expand Down
14 changes: 14 additions & 0 deletions src/mixedbread/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
ParsingResourceWithStreamingResponse,
AsyncParsingResourceWithStreamingResponse,
)
from .extractions import (
ExtractionsResource,
AsyncExtractionsResource,
ExtractionsResourceWithRawResponse,
AsyncExtractionsResourceWithRawResponse,
ExtractionsResourceWithStreamingResponse,
AsyncExtractionsResourceWithStreamingResponse,
)
from .vector_stores import (
VectorStoresResource,
AsyncVectorStoresResource,
Expand Down Expand Up @@ -44,4 +52,10 @@
"AsyncVectorStoresResourceWithRawResponse",
"VectorStoresResourceWithStreamingResponse",
"AsyncVectorStoresResourceWithStreamingResponse",
"ExtractionsResource",
"AsyncExtractionsResource",
"ExtractionsResourceWithRawResponse",
"AsyncExtractionsResourceWithRawResponse",
"ExtractionsResourceWithStreamingResponse",
"AsyncExtractionsResourceWithStreamingResponse",
]
61 changes: 61 additions & 0 deletions src/mixedbread/resources/extractions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .jobs import (
JobsResource,
AsyncJobsResource,
JobsResourceWithRawResponse,
AsyncJobsResourceWithRawResponse,
JobsResourceWithStreamingResponse,
AsyncJobsResourceWithStreamingResponse,
)
from .schema import (
SchemaResource,
AsyncSchemaResource,
SchemaResourceWithRawResponse,
AsyncSchemaResourceWithRawResponse,
SchemaResourceWithStreamingResponse,
AsyncSchemaResourceWithStreamingResponse,
)
from .content import (
ContentResource,
AsyncContentResource,
ContentResourceWithRawResponse,
AsyncContentResourceWithRawResponse,
ContentResourceWithStreamingResponse,
AsyncContentResourceWithStreamingResponse,
)
from .extractions import (
ExtractionsResource,
AsyncExtractionsResource,
ExtractionsResourceWithRawResponse,
AsyncExtractionsResourceWithRawResponse,
ExtractionsResourceWithStreamingResponse,
AsyncExtractionsResourceWithStreamingResponse,
)

__all__ = [
"JobsResource",
"AsyncJobsResource",
"JobsResourceWithRawResponse",
"AsyncJobsResourceWithRawResponse",
"JobsResourceWithStreamingResponse",
"AsyncJobsResourceWithStreamingResponse",
"SchemaResource",
"AsyncSchemaResource",
"SchemaResourceWithRawResponse",
"AsyncSchemaResourceWithRawResponse",
"SchemaResourceWithStreamingResponse",
"AsyncSchemaResourceWithStreamingResponse",
"ContentResource",
"AsyncContentResource",
"ContentResourceWithRawResponse",
"AsyncContentResourceWithRawResponse",
"ContentResourceWithStreamingResponse",
"AsyncContentResourceWithStreamingResponse",
"ExtractionsResource",
"AsyncExtractionsResource",
"ExtractionsResourceWithRawResponse",
"AsyncExtractionsResourceWithRawResponse",
"ExtractionsResourceWithStreamingResponse",
"AsyncExtractionsResourceWithStreamingResponse",
]
Loading