Variable vectorIndexConst
vectorIndex: { dynamic: ((opts?) => ModuleConfig<"dynamic", undefined | { distance?: VectorDistance; flat?: { distance?: VectorDistance; quantizer?: { bitCompression?: boolean; centroids?: number; encoder?: { distribution?: ...
; type?: ...
; }; segments?: number; trainingLimit?: number; type?: "pq"; } | { cache?: boolean; rescoreLimit?: number; type?: "bq"; } | { rescoreLimit?: number; trainingLimit?: number; type?: "sq"; } | { bits?: number; rescoreLimit?: number; type?: "rq"; }; type?: "flat"; vectorCacheMaxObjects?: number; }; hnsw?: { cleanupIntervalSeconds?: number; distance?: VectorDistance; dynamicEfFactor?: number; dynamicEfMax?: number; dynamicEfMin?: number; ef?: number; efConstruction?: number; filterStrategy?: VectorIndexFilterStrategy; flatSearchCutoff?: number; maxConnections?: number; multiVector?: { aggregation?: string; encoding?: { dprojections?: ...
; ksim?: ...
; repetitions?: ...
; type?: ...
; } | {}; }; quantizer?: { bitCompression?: boolean; centroids?: number; encoder?: { distribution?: ...
; type?: ...
; }; segments?: number; trainingLimit?: number; type?: "pq"; } | { cache?: boolean; rescoreLimit?: number; type?: "bq"; } | { rescoreLimit?: number; trainingLimit?: number; type?: "sq"; } | { bits?: number; rescoreLimit?: number; type?: "rq"; }; skip?: boolean; type?: "hnsw"; vectorCacheMaxObjects?: number; }; threshold?: number; type?: "dynamic"; }>); flat: ((opts?) => ModuleConfig<"flat", undefined | { distance?: VectorDistance; quantizer?: { bitCompression?: boolean; centroids?: number; encoder?: { distribution?: PQEncoderDistribution; type?: PQEncoderType; }; segments?: number; trainingLimit?: number; type?: "pq"; } | { cache?: boolean; rescoreLimit?: number; type?: "bq"; } | { rescoreLimit?: number; trainingLimit?: number; type?: "sq"; } | { bits?: number; rescoreLimit?: number; type?: "rq"; }; type?: "flat"; vectorCacheMaxObjects?: number; }>); hnsw: ((opts?) => ModuleConfig<"hnsw", undefined | { cleanupIntervalSeconds?: number; distance?: VectorDistance; dynamicEfFactor?: number; dynamicEfMax?: number; dynamicEfMin?: number; ef?: number; efConstruction?: number; filterStrategy?: VectorIndexFilterStrategy; flatSearchCutoff?: number; maxConnections?: number; multiVector?: { aggregation?: string; encoding?: { dprojections?: number; ksim?: number; repetitions?: number; type?: "muvera"; } | {}; }; quantizer?: { bitCompression?: boolean; centroids?: number; encoder?: { distribution?: PQEncoderDistribution; type?: PQEncoderType; }; segments?: number; trainingLimit?: number; type?: "pq"; } | { cache?: boolean; rescoreLimit?: number; type?: "bq"; } | { rescoreLimit?: number; trainingLimit?: number; type?: "sq"; } | { bits?: number; rescoreLimit?: number; type?: "rq"; }; skip?: boolean; type?: "hnsw"; vectorCacheMaxObjects?: number; }>); multiVector: { encoding: { muvera: ((options?) => { dprojections?: number; ksim?: number; repetitions?: number; type?: "muvera"; }); }; multiVector: ((options?) => MultiVectorConfigCreate); }; quantizer: { bq: ((options?) => QuantizerRecursivePartial<BQConfig>); pq: ((options?) => QuantizerRecursivePartial<PQConfig>); rq: ((options?) => QuantizerRecursivePartial<RQConfig>); sq: ((options?) => QuantizerRecursivePartial<SQConfig>); }; } = ... Type declaration
dynamic: ((opts?) => ModuleConfig<"dynamic", undefined | {
distance?: VectorDistance;
flat?: {
distance?: VectorDistance;
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: ...;
type?: ...;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
type?: "flat";
vectorCacheMaxObjects?: number;
};
hnsw?: {
cleanupIntervalSeconds?: number;
distance?: VectorDistance;
dynamicEfFactor?: number;
dynamicEfMax?: number;
dynamicEfMin?: number;
ef?: number;
efConstruction?: number;
filterStrategy?: VectorIndexFilterStrategy;
flatSearchCutoff?: number;
maxConnections?: number;
multiVector?: {
aggregation?: string;
encoding?: {
dprojections?: ...;
ksim?: ...;
repetitions?: ...;
type?: ...;
} | {};
};
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: ...;
type?: ...;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
skip?: boolean;
type?: "hnsw";
vectorCacheMaxObjects?: number;
};
threshold?: number;
type?: "dynamic";
}>)
- (opts?): ModuleConfig<"dynamic", undefined | {
distance?: VectorDistance;
flat?: {
distance?: VectorDistance;
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: ...;
type?: ...;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
type?: "flat";
vectorCacheMaxObjects?: number;
};
hnsw?: {
cleanupIntervalSeconds?: number;
distance?: VectorDistance;
dynamicEfFactor?: number;
dynamicEfMax?: number;
dynamicEfMin?: number;
ef?: number;
efConstruction?: number;
filterStrategy?: VectorIndexFilterStrategy;
flatSearchCutoff?: number;
maxConnections?: number;
multiVector?: {
aggregation?: string;
encoding?: {
dprojections?: ...;
ksim?: ...;
repetitions?: ...;
type?: ...;
} | {};
};
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: ...;
type?: ...;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
skip?: boolean;
type?: "hnsw";
vectorCacheMaxObjects?: number;
};
threshold?: number;
type?: "dynamic";
}> Returns ModuleConfig<"dynamic", undefined | {
distance?: VectorDistance;
flat?: {
distance?: VectorDistance;
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: ...;
type?: ...;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
type?: "flat";
vectorCacheMaxObjects?: number;
};
hnsw?: {
cleanupIntervalSeconds?: number;
distance?: VectorDistance;
dynamicEfFactor?: number;
dynamicEfMax?: number;
dynamicEfMin?: number;
ef?: number;
efConstruction?: number;
filterStrategy?: VectorIndexFilterStrategy;
flatSearchCutoff?: number;
maxConnections?: number;
multiVector?: {
aggregation?: string;
encoding?: {
dprojections?: ...;
ksim?: ...;
repetitions?: ...;
type?: ...;
} | {};
};
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: ...;
type?: ...;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
skip?: boolean;
type?: "hnsw";
vectorCacheMaxObjects?: number;
};
threshold?: number;
type?: "dynamic";
}>
flat: ((opts?) => ModuleConfig<"flat", undefined | {
distance?: VectorDistance;
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: PQEncoderDistribution;
type?: PQEncoderType;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
type?: "flat";
vectorCacheMaxObjects?: number;
}>)
- (opts?): ModuleConfig<"flat", undefined | {
distance?: VectorDistance;
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: PQEncoderDistribution;
type?: PQEncoderType;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
type?: "flat";
vectorCacheMaxObjects?: number;
}> Returns ModuleConfig<"flat", undefined | {
distance?: VectorDistance;
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: PQEncoderDistribution;
type?: PQEncoderType;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
type?: "flat";
vectorCacheMaxObjects?: number;
}>
hnsw: ((opts?) => ModuleConfig<"hnsw", undefined | {
cleanupIntervalSeconds?: number;
distance?: VectorDistance;
dynamicEfFactor?: number;
dynamicEfMax?: number;
dynamicEfMin?: number;
ef?: number;
efConstruction?: number;
filterStrategy?: VectorIndexFilterStrategy;
flatSearchCutoff?: number;
maxConnections?: number;
multiVector?: {
aggregation?: string;
encoding?: {
dprojections?: number;
ksim?: number;
repetitions?: number;
type?: "muvera";
} | {};
};
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: PQEncoderDistribution;
type?: PQEncoderType;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
skip?: boolean;
type?: "hnsw";
vectorCacheMaxObjects?: number;
}>)
- (opts?): ModuleConfig<"hnsw", undefined | {
cleanupIntervalSeconds?: number;
distance?: VectorDistance;
dynamicEfFactor?: number;
dynamicEfMax?: number;
dynamicEfMin?: number;
ef?: number;
efConstruction?: number;
filterStrategy?: VectorIndexFilterStrategy;
flatSearchCutoff?: number;
maxConnections?: number;
multiVector?: {
aggregation?: string;
encoding?: {
dprojections?: number;
ksim?: number;
repetitions?: number;
type?: "muvera";
} | {};
};
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: PQEncoderDistribution;
type?: PQEncoderType;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
skip?: boolean;
type?: "hnsw";
vectorCacheMaxObjects?: number;
}> Returns ModuleConfig<"hnsw", undefined | {
cleanupIntervalSeconds?: number;
distance?: VectorDistance;
dynamicEfFactor?: number;
dynamicEfMax?: number;
dynamicEfMin?: number;
ef?: number;
efConstruction?: number;
filterStrategy?: VectorIndexFilterStrategy;
flatSearchCutoff?: number;
maxConnections?: number;
multiVector?: {
aggregation?: string;
encoding?: {
dprojections?: number;
ksim?: number;
repetitions?: number;
type?: "muvera";
} | {};
};
quantizer?: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: PQEncoderDistribution;
type?: PQEncoderType;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
} | {
bits?: number;
rescoreLimit?: number;
type?: "rq";
};
skip?: boolean;
type?: "hnsw";
vectorCacheMaxObjects?: number;
}>
multiVector: {
encoding: {
muvera: ((options?) => {
dprojections?: number;
ksim?: number;
repetitions?: number;
type?: "muvera";
});
};
multiVector: ((options?) => MultiVectorConfigCreate);
}
encoding: {
muvera: ((options?) => {
dprojections?: number;
ksim?: number;
repetitions?: number;
type?: "muvera";
});
}
muvera: ((options?) => {
dprojections?: number;
ksim?: number;
repetitions?: number;
type?: "muvera";
})
- (options?): {
dprojections?: number;
ksim?: number;
repetitions?: number;
type?: "muvera";
} Parameters
Optional
options: {
dprojections?: number;
ksim?: number;
repetitions?: number;
}Optional
dprojections?: number
Optional
ksim?: number
Optional
repetitions?: number
Returns {
dprojections?: number;
ksim?: number;
repetitions?: number;
type?: "muvera";
}
Optional
dprojections?: number
Optional
ksim?: number
Optional
repetitions?: number
Optional
type?: "muvera"
- (options?): MultiVectorConfigCreate
Parameters
Optional
options: {
aggregation?: string;
encoding?: {
dprojections?: number;
ksim?: number;
repetitions?: number;
type?: "muvera";
};
}Optional
aggregation?: string
Optional
encoding?: {
dprojections?: number;
ksim?: number;
repetitions?: number;
type?: "muvera";
}
Optional
dprojections?: number
Optional
ksim?: number
Optional
repetitions?: number
Optional
type?: "muvera"
- (options?): QuantizerRecursivePartial<BQConfig>
Parameters
Optional
options: {
cache?: boolean;
rescoreLimit?: number;
}Optional
cache?: boolean
Optional
rescoreLimit?: number
- (options?): QuantizerRecursivePartial<PQConfig>
Parameters
Optional
options: {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: PQEncoderDistribution;
type?: PQEncoderType;
};
segments?: number;
trainingLimit?: number;
}Optional
bitCompression?: boolean
Optional
centroids?: number
Optional
segments?: number
Optional
trainingLimit?: number
- (options?): QuantizerRecursivePartial<RQConfig>
Parameters
Optional
options: {
bits?: number;
rescoreLimit?: number;
}Optional
bits?: number
Optional
rescoreLimit?: number
- (options?): QuantizerRecursivePartial<SQConfig>
Parameters
Optional
options: {
rescoreLimit?: number;
trainingLimit?: number;
}Optional
rescoreLimit?: number
Optional
trainingLimit?: number
Create a
ModuleConfig<'dynamic', VectorIndexConfigDynamicCreate | undefined>
object when defining the configuration of the dynamic vector index.Use this method when defining the
options.vectorIndexConfig
argument of theconfigure.vectors
method.