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.share=True
in launch()
. This will generate a public URL for your Gradio app. This share link expires in 72 hours. For free permanent hosting and GPU upgrades, run gradio deploy
from Terminal to deploy to Hugging Face Spacesbatch_size
and embedding_chunk_size
parameters allow you to control the efficiency of document processing and storage in Upstash Vector.UpstashVectorStore
instance.