Skip to content

Commit 4f9cfac

Browse files
feat(api): api update
1 parent 5163687 commit 4f9cfac

5 files changed

Lines changed: 14 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 49
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-e8f008047e9aa7f8824bbf5c8b3f338ce1f79b4c81f2637a5e4be1530ff45c9f.yml
3-
openapi_spec_hash: 27f45c14fedc15710f730e037f0694cf
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-1d55ef57d17d780e3863936f62874ea7f378ed78a30edc0eb4119d9cb3009dc6.yml
3+
openapi_spec_hash: 1c5f41ebd04ef8a89bc257e11d7cb122
44
config_hash: 810d9712d3d0d6a1f50d71a25511d8a7

src/mixedbread/types/vector_store_chunk_search_options_param.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ class VectorStoreChunkSearchOptionsParam(TypedDict, total=False):
2424

2525
return_metadata: bool
2626
"""Whether to return file metadata"""
27+
28+
apply_search_rules: bool
29+
"""Whether to apply search rules"""

src/mixedbread/types/vector_stores/file_search_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,8 @@ class SearchOptions(TypedDict, total=False):
5959
chunks_per_file: int
6060
"""Number of chunks to return for each file"""
6161

62+
apply_search_rules: bool
63+
"""Whether to apply search rules"""
64+
6265

6366
from ..shared_params.search_filter import SearchFilter

tests/api_resources/test_vector_stores.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def test_method_question_answering_with_all_params(self, client: Mixedbread) ->
290290
"rewrite_query": True,
291291
"rerank": True,
292292
"return_metadata": True,
293+
"apply_search_rules": True,
293294
},
294295
stream=True,
295296
qa_options={
@@ -377,6 +378,7 @@ def test_method_search_with_all_params(self, client: Mixedbread) -> None:
377378
"rewrite_query": True,
378379
"rerank": True,
379380
"return_metadata": True,
381+
"apply_search_rules": True,
380382
},
381383
)
382384
assert_matches_type(VectorStoreSearchResponse, vector_store, path=["response"])
@@ -678,6 +680,7 @@ async def test_method_question_answering_with_all_params(self, async_client: Asy
678680
"rewrite_query": True,
679681
"rerank": True,
680682
"return_metadata": True,
683+
"apply_search_rules": True,
681684
},
682685
stream=True,
683686
qa_options={
@@ -765,6 +768,7 @@ async def test_method_search_with_all_params(self, async_client: AsyncMixedbread
765768
"rewrite_query": True,
766769
"rerank": True,
767770
"return_metadata": True,
771+
"apply_search_rules": True,
768772
},
769773
)
770774
assert_matches_type(VectorStoreSearchResponse, vector_store, path=["response"])

tests/api_resources/vector_stores/test_files.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ def test_method_search_with_all_params(self, client: Mixedbread) -> None:
300300
"return_metadata": True,
301301
"return_chunks": True,
302302
"chunks_per_file": 0,
303+
"apply_search_rules": True,
303304
},
304305
)
305306
assert_matches_type(FileSearchResponse, file, path=["response"])
@@ -612,6 +613,7 @@ async def test_method_search_with_all_params(self, async_client: AsyncMixedbread
612613
"return_metadata": True,
613614
"return_chunks": True,
614615
"chunks_per_file": 0,
616+
"apply_search_rules": True,
615617
},
616618
)
617619
assert_matches_type(FileSearchResponse, file, path=["response"])

0 commit comments

Comments
 (0)