Const
The configuration object.
The configuration for the generative-openai
module.
Create a ModuleConfig<'generative-cohere', GenerativeCohereConfig>
object for use when performing AI generation using the generative-cohere
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: GenerativeCohereConfigCreateThe configuration for the generative-cohere
module.
Create a ModuleConfig<'generative-databricks', GenerativeDatabricksConfig>
object for use when performing AI generation using the generative-databricks
module.
See the documentation for detailed usage.
The configuration object.
The configuration for the generative-databricks
module.
Create a ModuleConfig<'generative-google', GenerativeGoogleConfig>
object for use when performing AI generation using the generative-google
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: GenerativeGoogleConfigThe configuration for the generative-palm
module.
Create a ModuleConfig<'generative-openai', GenerativeOpenAIConfig | undefined>
object for use when performing AI generation using the generative-openai
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: GenerativeOpenAIConfigCreateThe configuration for the generative-openai
module.
Create a ModuleConfig<'generative-palm', GenerativePaLMConfig>
object for use when performing AI generation using the generative-palm
module.
See the documentation for detailed usage.
The configuration object.
Use google
instead.
Optional
config: GenerativeGoogleConfigThe configuration for the generative-palm
module.
Create a ModuleConfig<'generative-anthropic', GenerativeAnthropicConfig | undefined>
object for use when performing AI generation using the generative-anthropic
module.
See the documentation for detailed usage.
Optional
config: GenerativeAnthropicConfigThe configuration for the generative-anthropic
module.
The configuration object.
Create a ModuleConfig<'generative-anyscale', GenerativeAnyscaleConfig | undefined>
object for use when performing AI generation using the generative-anyscale
module.
See the documentation for detailed usage.
Optional
config: GenerativeAnyscaleConfigThe configuration for the generative-aws
module.
The configuration object.
Create a ModuleConfig<'generative-aws', GenerativeAWSConfig>
object for use when performing AI generation using the generative-aws
module.
See the documentation for detailed usage.
The configuration for the generative-aws
module.
The configuration object.
Create a ModuleConfig<'generative-friendliai', GenerativeFriendliAIConfig | undefined>
object for use when performing AI generation using the generative-friendliai
module.
See the documentation for detailed usage.
Optional
config: GenerativeFriendliAIConfigCreate a ModuleConfig<'generative-mistral', GenerativeMistralConfig | undefined>
object for use when performing AI generation using the generative-mistral
module.
See the documentation for detailed usage.
Optional
config: GenerativeMistralConfigThe configuration for the generative-mistral
module.
The configuration object.
Create a ModuleConfig<'generative-ollama', GenerativeOllamaConfig | undefined>
object for use when performing AI generation using the generative-ollama
module.
See the documentation for detailed usage.
Optional
config: GenerativeOllamaConfigThe configuration for the generative-openai
module.
The configuration object.
Create an InvertedIndexConfigCreate
object to be used when defining the configuration of the keyword searching algorithm of your collection.
See the docs for details!
Optional
bm25b?: numberThe BM25 b parameter.
Optional
bm25k1?: numberThe BM25 k1 parameter.
Optional
cleanupThe interval in seconds at which the inverted index is cleaned up.
Optional
indexWhether to index the null state of properties.
Optional
indexWhether to index the length of properties.
Optional
indexWhether to index timestamps.
Optional
stopwordsAdditional stopwords to add.
Optional
stopwordsThe stopwords preset to use.
Optional
stopwordsStopwords to remove.
Optional
bm25?: { Optional
b?: numberOptional
k1?: numberOptional
cleanupOptional
indexOptional
indexOptional
indexOptional
stopwords?: { Optional
additions?: (undefined | string)[]Optional
preset?: stringOptional
removals?: (undefined | string)[]Create a MultiTenancyConfigCreate
object to be used when defining the multi-tenancy configuration of your collection.
Optional
options: { Optional
autoWhether auto-tenant activation is enabled. Default is false.
Optional
autoWhether auto-tenant creation is enabled. Default is false.
Optional
enabled?: booleanWhether multi-tenancy is enabled. Default is true.
Optional
autoOptional
autoOptional
enabled?: booleanCreate a ReplicationConfigCreate
object to be used when defining the replication configuration of your collection.
NOTE: You can only use one of Sharding or Replication, not both.
See the docs for more details.
Optional
asyncWhether asynchronous replication is enabled. Default is false.
Optional
deletionThe deletion strategy when replication conflicts are detected between deletes and reads.
Optional
factor?: numberThe replication factor. Default is 1.
Optional
asyncOptional
deletionOptional
factor?: numberCreate a ModuleConfig<'reranker-cohere', RerankerCohereConfig>
object for use when reranking using the reranker-cohere
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: RerankerCohereConfigThe configuration for the reranker-cohere
module.
Create a ModuleConfig<'reranker-jinaai', RerankerJinaAIConfig>
object for use when reranking using the reranker-jinaai
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: RerankerJinaAIConfigThe configuration for the reranker-jinaai
module.
Create a ModuleConfig<'reranker-transformers', Record<string, never>>
object for use when reranking using the reranker-transformers
module.
See the documentation for detailed usage.
The configuration object.
Create a ModuleConfig<'reranker-voyageai', RerankerVoyageAIConfig>
object for use when reranking using the reranker-voyageai
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: RerankerVoyageAIConfigThe configuration for the reranker-voyage-ai
module.
Create a ShardingConfigCreate
object to be used when defining the sharding configuration of your collection.
NOTE: You can only use one of Sharding or Replication, not both.
See the docs for more details.
Optional
desiredThe desired number of physical shards.
Optional
desiredThe desired number of virtual shards.
Optional
virtualThe number of virtual shards per physical shard.
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 the configure.vectorizer
method.
The configuration object.
Optional
opts: VectorIndexConfigDynamicCreateOptionsThe options available for configuring the dynamic vector index.
Create a ModuleConfig<'flat', VectorIndexConfigFlatCreate | undefined>
object when defining the configuration of the FLAT vector index.
Use this method when defining the options.vectorIndexConfig
argument of the configure.vectorizer
method.
The configuration object.
Optional
opts: VectorIndexConfigFlatCreateOptionsThe options available for configuring the flat vector index.
Create a ModuleConfig<'hnsw', VectorIndexConfigHNSWCreate | undefined>
object when defining the configuration of the HNSW vector index.
Use this method when defining the options.vectorIndexConfig
argument of the configure.vectorizer
method.
The configuration object.
Optional
opts: VectorIndexConfigHNSWCreateOptionsThe options available for configuring the HNSW vector index.
Define the quantizer configuration to use when creating a vector index.
Create an object of type BQConfigCreate
to be used when defining the quantizer configuration of a vector index.
The object of type BQConfigCreate
.
Optional
options: { Optional
cache?: booleanWhether to cache the quantizer. Default is false.
Optional
rescoreThe rescore limit. Default is 1000.
Create an object of type PQConfigCreate
to be used when defining the quantizer configuration of a vector index.
The object of type PQConfigCreate
.
Optional
options: { Optional
bitWhether to use bit compression.
Optional
centroids?: numberThe number of centroids[.
Optional
encoder?: { Optional
distribution?: PQEncoderDistributionOptional
type?: PQEncoderTypeOptional
segments?: numberThe number of segments.
Optional
trainingThe training limit.
Create an object of type SQConfigCreate
to be used when defining the quantizer configuration of a vector index.
The object of type SQConfigCreate
.
Optional
options: { Optional
rescoreThe rescore limit.
Optional
trainingThe training limit.
Create a VectorConfigCreate
object with the vectorizer set to 'img2vec-neural'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Img2VecNeuralConfig & { The configuration options for the img2vec-neural
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'multi2vec-bind'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Multi2VecBindConfigCreate & { The configuration options for the multi2vec-bind
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'multi2vec-clip'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Multi2VecClipConfigCreate & { The configuration options for the multi2vec-clip
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'multi2vec-cohere'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Multi2VecCohereConfigCreate & { The configuration options for the multi2vec-cohere
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'multi2vec-google'
.
See the documentation for detailed usage.
The configuration object.
The configuration options for the multi2vec-google
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'multi2vec-jinaai'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Multi2VecJinaAIConfigCreate & { The configuration options for the multi2vec-jinaai
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'multi2vec-palm'
.
See the documentation for detailed usage.
The configuration object.
Use multi2VecGoogle
instead.
The configuration options for the multi2vec-palm
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'multi2vec-clip'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Multi2VecVoyageAIConfigCreate & { The configuration options for the multi2vec-voyageai
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'none'
.
The configuration object.
Optional
opts: { The configuration options for the none
vectorizer.
Optional
name?: NOptional
vectorCreate a VectorConfigCreate
object with the vectorizer set to 'ref2vec-centroid'
.
See the documentation for detailed usage.
The configuration object.
The configuration options for the ref2vec-centroid
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-aws'
.
See the documentation for detailed usage.
The configuration object.
The configuration options for the text2vec-aws
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-azure-openai'
.
See the documentation for detailed usage.
The configuration object.
The configuration options for the text2vec-azure-openai
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-cohere'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecCohereConfig & { The configuration options for the text2vec-cohere
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-contextionary'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecContextionaryConfig & { The configuration for the text2vec-contextionary
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-databricks'
.
See the documentation for detailed usage.
The configuration object.
The configuration for the text2vec-databricks
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-gpt4all'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecGPT4AllConfig & { The configuration for the text2vec-contextionary
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-google'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecGoogleConfig & { The configuration for the text2vec-palm
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-huggingface'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecHuggingFaceConfig & { The configuration for the text2vec-contextionary
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-jinaai'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecJinaAIConfig & { The configuration for the text2vec-jinaai
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-mistral'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecMistralConfig & { The configuration for the text2vec-mistral
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-ollama'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecOllamaConfig & { The configuration for the text2vec-ollama
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-openai'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecOpenAIConfig & { The configuration for the text2vec-openai
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-palm'
.
See the documentation for detailed usage.
The configuration object.
Use text2VecGoogle
instead.
Optional
opts: Text2VecGoogleConfig & { The configuration for the text2vec-palm
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-transformers'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecTransformersConfig & { The configuration for the text2vec-transformers
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-voyageai'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecVoyageAIConfig & { The configuration for the text2vec-voyageai
vectorizer.
Create a VectorConfigCreate
object with the vectorizer set to 'text2vec-weaviate'
.
See the documentation for detailed usage.
The configuration object.
Optional
opts: Text2VecWeaviateConfig & { The configuration for the text2vec-weaviate
vectorizer.
Connect to a custom Weaviate deployment, e.g. your own self-hosted Kubernetes cluster.
Options for the connection.
A Promise that resolves to a client connected to your custom Weaviate deployment.
Connect to a locally-deployed Weaviate instance, e.g. as a Docker compose stack.
Optional
options: ConnectToLocalOptionsOptions for the connection.
A Promise that resolves to a client connected to your local Weaviate instance.
Connect to your own Weaviate Cloud (WCD) instance.
The URL of your WCD instance. E.g., https://example.weaviate.network
.
Optional
options: ConnectToWeaviateCloudOptionsAdditional options for the connection.
A Promise that resolves to a client connected to your WCD instance.
Use connectToWeaviateCloud
instead.
Connect to your own Weaviate Cloud Service (WCS) instance.
The URL of your WCD instance. E.g., https://example.weaviate.network
.
Optional
options: ConnectToWeaviateCloudOptionsAdditional options for the connection.
A Promise that resolves to a client connected to your WCS instance.
Use connectToWeaviateCloud
instead.
Connect to your own Weaviate Cloud (WCD) instance.
The URL of your WCD instance. E.g., https://example.weaviate.network
.
Optional
options: ConnectToWeaviateCloudOptionsAdditional options for the connection.
A Promise that resolves to a client connected to your WCD instance.
Optional
manage?: booleanOptional
read?: booleanOptional
create_Optional
delete_Optional
read_Optional
update_Optional
create?: booleanOptional
delete?: booleanOptional
read?: booleanOptional
update?: booleanOptional
read?: booleanOptional
verbosity?: "verbose" | "minimal"Optional
manage?: booleanOptional
read?: booleanCreate a ModuleConfig<'generative-openai', GenerativeAzureOpenAIConfig>
object for use when performing AI generation using the generative-openai
module.
See the documentation for detailed usage.
The configuration object.
The configuration for the generative-openai
module.
Create a ModuleConfig<'generative-cohere', GenerativeCohereConfig>
object for use when performing AI generation using the generative-cohere
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: GenerativeCohereConfigCreateThe configuration for the generative-cohere
module.
Create a ModuleConfig<'generative-databricks', GenerativeDatabricksConfig>
object for use when performing AI generation using the generative-databricks
module.
See the documentation for detailed usage.
The configuration object.
The configuration for the generative-databricks
module.
Create a ModuleConfig<'generative-google', GenerativeGoogleConfig>
object for use when performing AI generation using the generative-google
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: GenerativeGoogleConfigThe configuration for the generative-palm
module.
Create a ModuleConfig<'generative-openai', GenerativeOpenAIConfig | undefined>
object for use when performing AI generation using the generative-openai
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: GenerativeOpenAIConfigCreateThe configuration for the generative-openai
module.
Create a ModuleConfig<'generative-palm', GenerativePaLMConfig>
object for use when performing AI generation using the generative-palm
module.
See the documentation for detailed usage.
The configuration object.
Use google
instead.
Optional
config: GenerativeGoogleConfigThe configuration for the generative-palm
module.
Create a ModuleConfig<'generative-anthropic', GenerativeAnthropicConfig | undefined>
object for use when performing AI generation using the generative-anthropic
module.
See the documentation for detailed usage.
Optional
config: GenerativeAnthropicConfigThe configuration for the generative-anthropic
module.
The configuration object.
Create a ModuleConfig<'generative-anyscale', GenerativeAnyscaleConfig | undefined>
object for use when performing AI generation using the generative-anyscale
module.
See the documentation for detailed usage.
Optional
config: GenerativeAnyscaleConfigThe configuration for the generative-aws
module.
The configuration object.
Create a ModuleConfig<'generative-aws', GenerativeAWSConfig>
object for use when performing AI generation using the generative-aws
module.
See the documentation for detailed usage.
The configuration for the generative-aws
module.
The configuration object.
Create a ModuleConfig<'generative-friendliai', GenerativeFriendliAIConfig | undefined>
object for use when performing AI generation using the generative-friendliai
module.
See the documentation for detailed usage.
Optional
config: GenerativeFriendliAIConfigCreate a ModuleConfig<'generative-mistral', GenerativeMistralConfig | undefined>
object for use when performing AI generation using the generative-mistral
module.
See the documentation for detailed usage.
Optional
config: GenerativeMistralConfigThe configuration for the generative-mistral
module.
The configuration object.
Create a ModuleConfig<'generative-ollama', GenerativeOllamaConfig | undefined>
object for use when performing AI generation using the generative-ollama
module.
See the documentation for detailed usage.
Optional
config: GenerativeOllamaConfigThe configuration for the generative-openai
module.
The configuration object.
Create an InvertedIndexConfigUpdate
object to be used when updating the configuration of the keyword searching algorithm of your collection.
See the docs for details!
Optional
bm25b?: numberThe BM25 b parameter.
Optional
bm25k1?: numberThe BM25 k1 parameter.
Optional
cleanupThe interval in seconds at which the inverted index is cleaned up.
Optional
stopwordsAdditional stopwords to add.
Optional
stopwordsThe stopwords preset to use.
Optional
stopwordsStopwords to remove.
Create a MultiTenancyConfigUpdate
object to be used when updating the multi-tenancy configuration of Weaviate.
Note: You cannot update a single-tenant collection to become a multi-tenant collection. You must instead create a new multi-tenant collection and migrate the data over manually.
Optional
autoWhether to enable auto-tenant activation.
Optional
autoWhether to enable auto-tenant creation.
Create a ReplicationConfigUpdate
object to be used when updating the replication configuration of Weaviate.
See the docs for more details.
Optional
asyncWhether to enable asynchronous replication.
Optional
deletionThe deletion strategy to update when replication conflicts are detected between deletes and reads.
Optional
factor?: numberThe replication factor to update.
Create a ModuleConfig<'reranker-cohere', RerankerCohereConfig>
object for use when reranking using the reranker-cohere
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: RerankerCohereConfigThe configuration for the reranker-cohere
module.
Create a ModuleConfig<'reranker-jinaai', RerankerJinaAIConfig>
object for use when reranking using the reranker-jinaai
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: RerankerJinaAIConfigThe configuration for the reranker-jinaai
module.
Create a ModuleConfig<'reranker-transformers', Record<string, never>>
object for use when reranking using the reranker-transformers
module.
See the documentation for detailed usage.
The configuration object.
Create a ModuleConfig<'reranker-voyageai', RerankerVoyageAIConfig>
object for use when reranking using the reranker-voyageai
module.
See the documentation for detailed usage.
The configuration object.
Optional
config: RerankerVoyageAIConfigThe configuration for the reranker-voyage-ai
module.
Create a ModuleConfig<'flat', VectorIndexConfigFlatUpdate>
object to update the configuration of the FLAT vector index.
Use this method when defining the options.vectorIndexConfig
argument of the reconfigure.vectorizer
method.
The configuration object.
Optional
quantizer?: BQConfigUpdateThe quantizer configuration to use. Default is bq
.
Optional
vectorThe maximum number of objects to cache in the vector cache. Default is 1000000000000.
Create a ModuleConfig<'hnsw', VectorIndexConfigHNSWCreate>
object to update the configuration of the HNSW vector index.
Use this method when defining the options.vectorIndexConfig
argument of the reconfigure.vectorizer
method.
The configuration object.
Optional
dynamicThe dynamic ef factor. Default is 8.
Optional
dynamicThe dynamic ef max. Default is 500.
Optional
dynamicThe dynamic ef min. Default is 100.
Optional
ef?: numberThe ef parameter. Default is -1.
Optional
filterThe filter strategy. Default is 'sweeping'.
Optional
flatThe flat search cutoff. Default is 40000.
Optional
quantizer?: PQConfigUpdate | BQConfigUpdate | SQConfigUpdateThe quantizer configuration to use. Use vectorIndex.quantizer.bq
or vectorIndex.quantizer.pq
to make one.
Optional
vectorThe maximum number of objects to cache in the vector cache. Default is 1000000000000.
Define the quantizer configuration to use when creating a vector index.
Create an object of type BQConfigUpdate
to be used when updating the quantizer configuration of a vector index.
NOTE: If the vector index already has a quantizer configured, you cannot change its quantizer type; only its values. So if you want to change the quantizer type, you must recreate the collection.
The configuration object.
Optional
options: { Optional
cache?: booleanWhether to cache the quantizer.
Optional
rescoreThe new rescore limit.
Create an object of type PQConfigUpdate
to be used when updating the quantizer configuration of a vector index.
NOTE: If the vector index already has a quantizer configured, you cannot change its quantizer type; only its values. So if you want to change the quantizer type, you must recreate the collection.
The configuration object.
Optional
options: { Optional
centroids?: numberThe new number of centroids.
Optional
pqThe new encoder distribution.
Optional
pqThe new encoder type.
Optional
segments?: numberThe new number of segments.
Optional
trainingThe new training limit.
Create an object of type SQConfigUpdate
to be used when updating the quantizer configuration of a vector index.
NOTE: If the vector index already has a quantizer configured, you cannot change its quantizer type; only its values. So if you want to change the quantizer type, you must recreate the collection.
The configuration object.
Optional
options: { Optional
rescoreThe rescore limit.
Optional
trainingThe training limit.
Create a VectorConfigUpdate
object to be used when updating the named vector configuration of Weaviate.
The options for the named vector.
Create a
ModuleConfig<'generative-openai', GenerativeAzureOpenAIConfig>
object for use when performing AI generation using thegenerative-openai
module.See the documentation for detailed usage.