Skip to main content
Upstash Vector is a serverless vector database with built-in embedding models.

Usage with Upstash embeddings

You can enable the built-in embedding models by setting enable_embeddings to True. This allows you to use Upstash’s embedding models for vectorization.
Server-side Upstash embeddings (enable_embeddings) are available in the Python SDK only. The TypeScript SDK always embeds text with your configured embedder before writing to Upstash, so use the external embedding provider setup below.
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:
When url and token are not provided, the UPSTASH_VECTOR_REST_URL and UPSTASH_VECTOR_REST_TOKEN environment variables are used.
The TypeScript SDK uses camelCase config keys (collectionName, url, token), where collectionName is required. Pass url and token (or a preconfigured client) explicitly, since the TypeScript SDK does not read them from environment variables. enable_embeddings is not supported in TypeScript.