Variable vectorIndexConst
vectorIndex: { dynamic: ((opts?) => ModuleConfig<"dynamic", undefined | { distance?: VectorDistance; flat?: { distance?: VectorDistance; quantizer?: { cache?: boolean; rescoreLimit?: number; type?: "bq"; }; 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; quantizer?: { cache?: boolean; rescoreLimit?: number; type?: "bq"; } | { bitCompression?: boolean; centroids?: number; encoder?: { distribution?: ...
; type?: ...
; }; segments?: number; trainingLimit?: number; type?: "pq"; } | { rescoreLimit?: number; trainingLimit?: number; type?: "sq"; }; skip?: boolean; type?: "hnsw"; vectorCacheMaxObjects?: number; }; threshold?: number; type?: "dynamic"; }>); flat: ((opts?) => ModuleConfig<"flat", undefined | { distance?: VectorDistance; quantizer?: { cache?: boolean; rescoreLimit?: number; type?: "bq"; }; 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; quantizer?: { cache?: boolean; rescoreLimit?: number; type?: "bq"; } | { bitCompression?: boolean; centroids?: number; encoder?: { distribution?: PQEncoderDistribution; type?: PQEncoderType; }; segments?: number; trainingLimit?: number; type?: "pq"; } | { rescoreLimit?: number; trainingLimit?: number; type?: "sq"; }; skip?: boolean; type?: "hnsw"; vectorCacheMaxObjects?: number; }>); quantizer: { bq: ((options?) => QuantizerRecursivePartial<BQConfig>); pq: ((options?) => QuantizerRecursivePartial<PQConfig>); sq: ((options?) => QuantizerRecursivePartial<SQConfig>); }; } = ... Type declaration
dynamic: ((opts?) => ModuleConfig<"dynamic", undefined | {
distance?: VectorDistance;
flat?: {
distance?: VectorDistance;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
};
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;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: ...;
type?: ...;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
};
skip?: boolean;
type?: "hnsw";
vectorCacheMaxObjects?: number;
};
threshold?: number;
type?: "dynamic";
}>)
- (opts?): ModuleConfig<"dynamic", undefined | {
distance?: VectorDistance;
flat?: {
distance?: VectorDistance;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
};
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;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: ...;
type?: ...;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
};
skip?: boolean;
type?: "hnsw";
vectorCacheMaxObjects?: number;
};
threshold?: number;
type?: "dynamic";
}> Returns ModuleConfig<"dynamic", undefined | {
distance?: VectorDistance;
flat?: {
distance?: VectorDistance;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
};
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;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: ...;
type?: ...;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
};
skip?: boolean;
type?: "hnsw";
vectorCacheMaxObjects?: number;
};
threshold?: number;
type?: "dynamic";
}>
flat: ((opts?) => ModuleConfig<"flat", undefined | {
distance?: VectorDistance;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
};
type?: "flat";
vectorCacheMaxObjects?: number;
}>)
- (opts?): ModuleConfig<"flat", undefined | {
distance?: VectorDistance;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
};
type?: "flat";
vectorCacheMaxObjects?: number;
}> Returns ModuleConfig<"flat", undefined | {
distance?: VectorDistance;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
};
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;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: PQEncoderDistribution;
type?: PQEncoderType;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
};
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;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: PQEncoderDistribution;
type?: PQEncoderType;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
};
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;
quantizer?: {
cache?: boolean;
rescoreLimit?: number;
type?: "bq";
} | {
bitCompression?: boolean;
centroids?: number;
encoder?: {
distribution?: PQEncoderDistribution;
type?: PQEncoderType;
};
segments?: number;
trainingLimit?: number;
type?: "pq";
} | {
rescoreLimit?: number;
trainingLimit?: number;
type?: "sq";
};
skip?: boolean;
type?: "hnsw";
vectorCacheMaxObjects?: number;
}>
- (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<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.vectorizer
method.