torch
, a dependency for Hugging Face models. Therefore, we recommend using Python 3.9 to avoid any installation issues.
.env
file in your project directory with the following content, replacing your_upstash_url
and your_upstash_token
with your actual Upstash credentials:
Embeddings
object. Many embedding models, such as the Hugging Face models, support embedding multiple documents at once. This allows for efficient processing by batching documents and embedding them in parallel.
embedding_chunk_size
parameter controls the number of documents processed in parallel when creating embeddings.batch_size
parameter controls the number of vectors included in each HTTP request when sending to Upstash Vector.UpstashVectorStore
instance.