@@ -77,6 +77,7 @@ def create(
7777 is_public : bool | Omit = omit ,
7878 expires_after : Optional [ExpiresAfterParam ] | Omit = omit ,
7979 metadata : object | Omit = omit ,
80+ config : Optional [store_create_params .Config ] | Omit = omit ,
8081 file_ids : Optional [SequenceNotStr [str ]] | Omit = omit ,
8182 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
8283 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -104,6 +105,8 @@ def create(
104105
105106 metadata: Optional metadata key-value pairs
106107
108+ config: Configuration for a store.
109+
107110 file_ids: Optional list of file IDs
108111
109112 extra_headers: Send extra headers
@@ -123,6 +126,7 @@ def create(
123126 "is_public" : is_public ,
124127 "expires_after" : expires_after ,
125128 "metadata" : metadata ,
129+ "config" : config ,
126130 "file_ids" : file_ids ,
127131 },
128132 store_create_params .StoreCreateParams ,
@@ -345,9 +349,13 @@ def delete(
345349
346350 def metadata_facets (
347351 self ,
348- store_identifier : str ,
349352 * ,
353+ query : Optional [str ] | Omit = omit ,
354+ store_identifiers : SequenceNotStr [str ],
355+ top_k : int | Omit = omit ,
350356 filters : Optional [store_metadata_facets_params .Filters ] | Omit = omit ,
357+ file_ids : Union [Iterable [object ], SequenceNotStr [str ], None ] | Omit = omit ,
358+ search_options : StoreChunkSearchOptionsParam | Omit = omit ,
351359 facets : Optional [SequenceNotStr [str ]] | Omit = omit ,
352360 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
353361 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -360,10 +368,18 @@ def metadata_facets(
360368 Get metadata facets
361369
362370 Args:
363- store_identifier: The ID or name of the store
371+ query: Search query text
372+
373+ store_identifiers: IDs or names of stores to search
374+
375+ top_k: Number of results to return
364376
365377 filters: Optional filter conditions
366378
379+ file_ids: Optional list of file IDs to filter chunks by (inclusion filter)
380+
381+ search_options: Search configuration options
382+
367383 facets: Optional list of facets to return. Use dot for nested fields.
368384
369385 extra_headers: Send extra headers
@@ -374,13 +390,16 @@ def metadata_facets(
374390
375391 timeout: Override the client-level default timeout for this request, in seconds
376392 """
377- if not store_identifier :
378- raise ValueError (f"Expected a non-empty value for `store_identifier` but received { store_identifier !r} " )
379393 return self ._post (
380- f "/v1/stores/ { store_identifier } /metadata-facets" ,
394+ "/v1/stores/metadata-facets" ,
381395 body = maybe_transform (
382396 {
397+ "query" : query ,
398+ "store_identifiers" : store_identifiers ,
399+ "top_k" : top_k ,
383400 "filters" : filters ,
401+ "file_ids" : file_ids ,
402+ "search_options" : search_options ,
384403 "facets" : facets ,
385404 },
386405 store_metadata_facets_params .StoreMetadataFacetsParams ,
@@ -568,6 +587,7 @@ async def create(
568587 is_public : bool | Omit = omit ,
569588 expires_after : Optional [ExpiresAfterParam ] | Omit = omit ,
570589 metadata : object | Omit = omit ,
590+ config : Optional [store_create_params .Config ] | Omit = omit ,
571591 file_ids : Optional [SequenceNotStr [str ]] | Omit = omit ,
572592 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
573593 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -595,6 +615,8 @@ async def create(
595615
596616 metadata: Optional metadata key-value pairs
597617
618+ config: Configuration for a store.
619+
598620 file_ids: Optional list of file IDs
599621
600622 extra_headers: Send extra headers
@@ -614,6 +636,7 @@ async def create(
614636 "is_public" : is_public ,
615637 "expires_after" : expires_after ,
616638 "metadata" : metadata ,
639+ "config" : config ,
617640 "file_ids" : file_ids ,
618641 },
619642 store_create_params .StoreCreateParams ,
@@ -836,9 +859,13 @@ async def delete(
836859
837860 async def metadata_facets (
838861 self ,
839- store_identifier : str ,
840862 * ,
863+ query : Optional [str ] | Omit = omit ,
864+ store_identifiers : SequenceNotStr [str ],
865+ top_k : int | Omit = omit ,
841866 filters : Optional [store_metadata_facets_params .Filters ] | Omit = omit ,
867+ file_ids : Union [Iterable [object ], SequenceNotStr [str ], None ] | Omit = omit ,
868+ search_options : StoreChunkSearchOptionsParam | Omit = omit ,
842869 facets : Optional [SequenceNotStr [str ]] | Omit = omit ,
843870 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
844871 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -851,10 +878,18 @@ async def metadata_facets(
851878 Get metadata facets
852879
853880 Args:
854- store_identifier: The ID or name of the store
881+ query: Search query text
882+
883+ store_identifiers: IDs or names of stores to search
884+
885+ top_k: Number of results to return
855886
856887 filters: Optional filter conditions
857888
889+ file_ids: Optional list of file IDs to filter chunks by (inclusion filter)
890+
891+ search_options: Search configuration options
892+
858893 facets: Optional list of facets to return. Use dot for nested fields.
859894
860895 extra_headers: Send extra headers
@@ -865,13 +900,16 @@ async def metadata_facets(
865900
866901 timeout: Override the client-level default timeout for this request, in seconds
867902 """
868- if not store_identifier :
869- raise ValueError (f"Expected a non-empty value for `store_identifier` but received { store_identifier !r} " )
870903 return await self ._post (
871- f "/v1/stores/ { store_identifier } /metadata-facets" ,
904+ "/v1/stores/metadata-facets" ,
872905 body = await async_maybe_transform (
873906 {
907+ "query" : query ,
908+ "store_identifiers" : store_identifiers ,
909+ "top_k" : top_k ,
874910 "filters" : filters ,
911+ "file_ids" : file_ids ,
912+ "search_options" : search_options ,
875913 "facets" : facets ,
876914 },
877915 store_metadata_facets_params .StoreMetadataFacetsParams ,
0 commit comments