Embedding
Configuring Embeddings
R2R uses embeddings as the foundation for semantic search and similarity matching capabilities. The embedding system is responsible for converting text into high-dimensional vectors that capture semantic meaning, enabling powerful search and retrieval operations.
Embedding Configuration
The embedding settings are configurable through the embedding
section in your TOML configuration file. Learn more about working with R2R config files.
Environment Variables
Provider dependent environment variables must be set. These may include:
LiteLLM
LiteLLM offers a Python SDK to call 100+ LLM APIs in OpenAI format
OpenAI
The OpenAI embedding provider makes direct use of the OpenAI Python SDK.
Ollama
The Ollama embedding provider makes direct use of the Ollama Python SDK.