Installation¶
Prerequisites¶
- Python 3.10 or higher
- pip or uv package manager
Basic Installation¶
Install RAGents using pip:
Or using uv (recommended):
Development Installation¶
For development, clone the repository and install in editable mode:
Optional Dependencies¶
RAGents supports various optional features through extra dependencies:
Vector Store Backends¶
# Weaviate support
pip install "ragents[weaviate]"
# PostgreSQL with pgvector
pip install "ragents[pgvector]"
# Elasticsearch
pip install "ragents[elasticsearch]"
# All vector stores
pip install "ragents[all-vector-stores]"
AI/ML Extensions¶
# Vision capabilities (image processing)
pip install "ragents[vision]"
# Evaluation tools
pip install "ragents[evaluation]"
Deployment & Observability¶
# Production deployment tools
pip install "ragents[deployment]"
# Observability and monitoring
pip install "ragents[observability]"
Complete Installation¶
Install everything:
Environment Variables¶
Set up your environment variables:
# Required: At least one LLM provider
export OPENAI_API_KEY="your-openai-key"
# OR
export ANTHROPIC_API_KEY="your-anthropic-key"
# Optional configuration
export RAGENTS_LLM_PROVIDER="openai" # or "anthropic"
export RAGENTS_CHUNK_SIZE="1000"
export RAGENTS_TOP_K="5"
export RAGENTS_ENABLE_VISION="false"
export RAGENTS_WORKING_DIR="./output"
Verification¶
Verify your installation:
Run the demo:
Docker Installation¶
Use the official Docker image: