@@ -183,6 +183,11 @@ export type Crop = {
183183// `facetName` becomes mandatory when using `searchForFacetValues`
184184export type SearchForFacetValuesParams = Omit < SearchParams , "facetName" > & {
185185 facetName : string ;
186+ /**
187+ * If true, the facet search will return the exhaustive count of the facet
188+ * values.
189+ */
190+ exhaustiveFacetCount ?: boolean ;
186191} ;
187192
188193export type FacetHit = {
@@ -469,6 +474,7 @@ export type RawDocumentAdditionOptions = DocumentOptions & {
469474} ;
470475
471476export type DocumentsQuery < T = RecordAny > = ResourceQuery & {
477+ ids ?: string [ ] | number [ ] ;
472478 fields ?: Fields < T > ;
473479 filter ?: Filter ;
474480 limit ?: number ;
@@ -496,7 +502,17 @@ export type UpdateDocumentsByFunctionOptions = {
496502 ** Settings
497503 */
498504
499- export type FilterableAttributes = string [ ] | null ;
505+ type GranularFilterableAttribute = {
506+ attributePatterns : string [ ] ;
507+ features : {
508+ facetSearch : boolean ;
509+ filter : { equality : boolean ; comparison : boolean } ;
510+ } ;
511+ } ;
512+
513+ export type FilterableAttributes =
514+ | ( string | GranularFilterableAttribute ) [ ]
515+ | null ;
500516export type DistinctAttribute = string | null ;
501517export type SearchableAttributes = string [ ] | null ;
502518export type SortableAttributes = string [ ] | null ;
@@ -541,6 +557,7 @@ export type HuggingFaceEmbedder = {
541557 revision ?: string ;
542558 documentTemplate ?: string ;
543559 distribution ?: Distribution ;
560+ pooling ?: "useModel" | "forceMean" | "forceCls" ;
544561 documentTemplateMaxBytes ?: number ;
545562 binaryQuantized ?: boolean ;
546563} ;
@@ -578,12 +595,19 @@ export type OllamaEmbedder = {
578595 binaryQuantized ?: boolean ;
579596} ;
580597
598+ export type CompositeEmbedder = {
599+ source : "composite" ;
600+ searchEmbedder : Embedder ;
601+ indexingEmbedder : Embedder ;
602+ } ;
603+
581604export type Embedder =
582605 | OpenAiEmbedder
583606 | HuggingFaceEmbedder
584607 | UserProvidedEmbedder
585608 | RestEmbedder
586609 | OllamaEmbedder
610+ | CompositeEmbedder
587611 | null ;
588612
589613export type Embedders = Record < string , Embedder > | null ;
0 commit comments