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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.4.0"
".": "0.5.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 49
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-82c2c1c322149cd73b2e8e45f475919b941752a89e74464ccecd1aee9352e9be.yml
openapi_spec_hash: f6661e9fafda26e7e9f3fc06739a33ad
config_hash: 0619498f633d6a0d92ae15b21fd06d89
openapi_spec_hash: 07482ed86f5ccf7b480c514d6d5ebb15
config_hash: 167171738605c297aa5e8bc73abc66e3
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.5.0 (2025-05-26)

Full Changelog: [v0.4.0...v0.5.0](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.4.0...v0.5.0)

### Features

* **api:** update via SDK Studio ([5bfd6a5](https://github.com/mixedbread-ai/mixedbread-python/commit/5bfd6a5ca4c7e1f8e71a0e675272f7a5e23f9123))
* **api:** update via SDK Studio ([e0b1fc1](https://github.com/mixedbread-ai/mixedbread-python/commit/e0b1fc12231187039ca03302b3a7b3f320fac4aa))
* **api:** update via SDK Studio ([1977f12](https://github.com/mixedbread-ai/mixedbread-python/commit/1977f125d46011248652cc976f94e9c9585e9dfe))

## 0.4.0 (2025-05-26)

Full Changelog: [v0.3.1...v0.4.0](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.3.1...v0.4.0)
Expand Down
7 changes: 4 additions & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ Types:
```python
from mixedbread.types import (
ExpiresAfter,
FileCounts,
ScoredVectorStoreChunk,
ScoredAudioURLInputChunk,
ScoredImageURLInputChunk,
ScoredTextInputChunk,
ScoredVideoURLInputChunk,
VectorStore,
VectorStoreChunkSearchOptions,
VectorStoreFileSearchOptions,
VectorStoreDeleteResponse,
VectorStoreQuestionAnsweringResponse,
VectorStoreSearchResponse,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mixedbread"
version = "0.4.0"
version = "0.5.0"
description = "The official Python library for the Mixedbread API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/mixedbread/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "mixedbread"
__version__ = "0.4.0" # x-release-please-version
__version__ = "0.5.0" # x-release-please-version
5 changes: 2 additions & 3 deletions src/mixedbread/resources/vector_stores/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from ...types.vector_stores.vector_store_file import VectorStoreFile
from ...types.vector_stores.file_delete_response import FileDeleteResponse
from ...types.vector_stores.file_search_response import FileSearchResponse
from ...types.vector_store_file_search_options_param import VectorStoreFileSearchOptionsParam

__all__ = ["FilesResource", "AsyncFilesResource"]

Expand Down Expand Up @@ -259,7 +258,7 @@ def search(
vector_store_ids: List[str],
top_k: int | NotGiven = NOT_GIVEN,
filters: Optional[file_search_params.Filters] | NotGiven = NOT_GIVEN,
search_options: VectorStoreFileSearchOptionsParam | NotGiven = NOT_GIVEN,
search_options: file_search_params.SearchOptions | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -659,7 +658,7 @@ async def search(
vector_store_ids: List[str],
top_k: int | NotGiven = NOT_GIVEN,
filters: Optional[file_search_params.Filters] | NotGiven = NOT_GIVEN,
search_options: VectorStoreFileSearchOptionsParam | NotGiven = NOT_GIVEN,
search_options: file_search_params.SearchOptions | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down
9 changes: 4 additions & 5 deletions src/mixedbread/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from .api_key import APIKey as APIKey
from .embedding import Embedding as Embedding
from .data_source import DataSource as DataSource
from .file_counts import FileCounts as FileCounts
from .file_object import FileObject as FileObject
from .object_type import ObjectType as ObjectType
from .vector_store import VectorStore as VectorStore
Expand All @@ -29,23 +28,23 @@
from .api_key_delete_response import APIKeyDeleteResponse as APIKeyDeleteResponse
from .data_source_list_params import DataSourceListParams as DataSourceListParams
from .embedding_create_params import EmbeddingCreateParams as EmbeddingCreateParams
from .scored_text_input_chunk import ScoredTextInputChunk as ScoredTextInputChunk
from .multi_encoding_embedding import MultiEncodingEmbedding as MultiEncodingEmbedding
from .vector_store_list_params import VectorStoreListParams as VectorStoreListParams
from .data_source_create_params import DataSourceCreateParams as DataSourceCreateParams
from .data_source_oauth2_params import DataSourceOauth2Params as DataSourceOauth2Params
from .data_source_update_params import DataSourceUpdateParams as DataSourceUpdateParams
from .embedding_create_response import EmbeddingCreateResponse as EmbeddingCreateResponse
from .scored_vector_store_chunk import ScoredVectorStoreChunk as ScoredVectorStoreChunk
from .vector_store_create_params import VectorStoreCreateParams as VectorStoreCreateParams
from .vector_store_search_params import VectorStoreSearchParams as VectorStoreSearchParams
from .vector_store_update_params import VectorStoreUpdateParams as VectorStoreUpdateParams
from .data_source_delete_response import DataSourceDeleteResponse as DataSourceDeleteResponse
from .scored_audio_url_input_chunk import ScoredAudioURLInputChunk as ScoredAudioURLInputChunk
from .scored_image_url_input_chunk import ScoredImageURLInputChunk as ScoredImageURLInputChunk
from .scored_video_url_input_chunk import ScoredVideoURLInputChunk as ScoredVideoURLInputChunk
from .vector_store_delete_response import VectorStoreDeleteResponse as VectorStoreDeleteResponse
from .vector_store_search_response import VectorStoreSearchResponse as VectorStoreSearchResponse
from .data_source_oauth2_params_param import DataSourceOauth2ParamsParam as DataSourceOauth2ParamsParam
from .vector_store_file_search_options_param import (
VectorStoreFileSearchOptionsParam as VectorStoreFileSearchOptionsParam,
)
from .vector_store_question_answering_params import (
VectorStoreQuestionAnsweringParams as VectorStoreQuestionAnsweringParams,
)
Expand Down
2 changes: 0 additions & 2 deletions src/mixedbread/types/extractions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

from __future__ import annotations

from .text_input import TextInput as TextInput
from .extraction_job import ExtractionJob as ExtractionJob
from .image_url_input import ImageURLInput as ImageURLInput
from .text_input_param import TextInputParam as TextInputParam
from .extraction_result import ExtractionResult as ExtractionResult
from .job_create_params import JobCreateParams as JobCreateParams
Expand Down
21 changes: 0 additions & 21 deletions src/mixedbread/types/extractions/image_url_input.py

This file was deleted.

16 changes: 0 additions & 16 deletions src/mixedbread/types/extractions/text_input.py

This file was deleted.

24 changes: 0 additions & 24 deletions src/mixedbread/types/file_counts.py

This file was deleted.

3 changes: 1 addition & 2 deletions src/mixedbread/types/rerank_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from typing_extensions import Literal

from .._models import BaseModel
from .object_type import ObjectType
from .shared.usage import Usage

__all__ = ["RerankResponse", "Data"]
Expand Down Expand Up @@ -34,7 +33,7 @@ class RerankResponse(BaseModel):
data: List[Data]
"""The ranked documents."""

object: Optional[ObjectType] = None
object: Optional[Literal["list"]] = None
"""The object type of the response"""

top_k: int
Expand Down
51 changes: 51 additions & 0 deletions src/mixedbread/types/scored_audio_url_input_chunk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from typing_extensions import Literal

from .._models import BaseModel

__all__ = ["ScoredAudioURLInputChunk", "AudioURL"]


class AudioURL(BaseModel):
url: str
"""The audio URL. Can be either a URL or a Data URI."""


class ScoredAudioURLInputChunk(BaseModel):
chunk_index: int
"""position of the chunk in a file"""

mime_type: Optional[str] = None
"""mime type of the chunk"""

model: Optional[str] = None
"""model used for this chunk"""

score: float
"""score of the chunk"""

file_id: str
"""file id"""

filename: str
"""filename"""

vector_store_id: str
"""vector store id"""

metadata: Optional[object] = None
"""file metadata"""

type: Optional[Literal["audio_url"]] = None
"""Input type identifier"""

audio_url: AudioURL
"""The audio input specification."""

transcription: Optional[str] = None
"""speech recognition (sr) text of the audio"""

summary: Optional[str] = None
"""summary of the audio"""
51 changes: 51 additions & 0 deletions src/mixedbread/types/scored_image_url_input_chunk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from typing_extensions import Literal

from .._models import BaseModel

__all__ = ["ScoredImageURLInputChunk", "ImageURL"]


class ImageURL(BaseModel):
url: str
"""The image URL. Can be either a URL or a Data URI."""


class ScoredImageURLInputChunk(BaseModel):
chunk_index: int
"""position of the chunk in a file"""

mime_type: Optional[str] = None
"""mime type of the chunk"""

model: Optional[str] = None
"""model used for this chunk"""

score: float
"""score of the chunk"""

file_id: str
"""file id"""

filename: str
"""filename"""

vector_store_id: str
"""vector store id"""

metadata: Optional[object] = None
"""file metadata"""

type: Optional[Literal["image_url"]] = None
"""Input type identifier"""

image_url: ImageURL
"""The image input specification."""

ocr_text: Optional[str] = None
"""ocr text of the image"""

summary: Optional[str] = None
"""summary of the image"""
40 changes: 40 additions & 0 deletions src/mixedbread/types/scored_text_input_chunk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from typing_extensions import Literal

from .._models import BaseModel

__all__ = ["ScoredTextInputChunk"]


class ScoredTextInputChunk(BaseModel):
chunk_index: int
"""position of the chunk in a file"""

mime_type: Optional[str] = None
"""mime type of the chunk"""

model: Optional[str] = None
"""model used for this chunk"""

score: float
"""score of the chunk"""

file_id: str
"""file id"""

filename: str
"""filename"""

vector_store_id: str
"""vector store id"""

metadata: Optional[object] = None
"""file metadata"""

type: Optional[Literal["text"]] = None
"""Input type identifier"""

text: str
"""Text content to process"""
38 changes: 0 additions & 38 deletions src/mixedbread/types/scored_vector_store_chunk.py

This file was deleted.

Loading
Loading