Usage with Upstash embeddings
You can enable the built-in embedding models by settingenable_embeddings
to True
. This allows you to use Upstash’s embedding models for vectorization.
Setting
enable_embeddings
to True
will bypass any external embedding provider you have configured.Usage with external embedding providers
Config
Here are the parameters available for configuring Upstash Vector:Parameter | Description | Default Value |
---|---|---|
url | URL for the Upstash Vector index | None |
token | Token for the Upstash Vector index | None |
client | An upstash_vector.Index instance | None |
collection_name | The default namespace used | "" |
enable_embeddings | Whether to use Upstash embeddings | False |
When
url
and token
are not provided, the UPSTASH_VECTOR_REST_URL
and
UPSTASH_VECTOR_REST_TOKEN
environment variables are used.