Installation¶
Prerequisites¶
- Python 3.9 or higher
- Supabase account (free tier works fine)
- Basic understanding of async/await in Python
Installation Options¶
Basic Installation¶
Install the core package:
This includes: - Core tracking functionality - Supabase storage backend - Basic file type support
With Document Parsers¶
Install with support for various document formats:
Adds support for: - PDF files (pypdf) - DOCX files (python-docx) - PPTX files (python-pptx) - Excel files (openpyxl) - Enhanced Markdown parsing
With LangChain Integration¶
Install with LangChain compatibility:
Includes: - LangChain compatibility helpers - Document loader integration - Vector store sync utilities
With LlamaIndex Integration¶
Install with LlamaIndex compatibility:
Includes: - LlamaIndex compatibility helpers - Node parser integration - Index sync utilities
Complete Installation (Recommended)¶
Install everything including development tools:
Includes: - All parsers - All integrations - Development tools (pytest, black, ruff, mypy)
Verify Installation¶
Check that RAGVersion is installed correctly:
You should see:
Supabase Setup¶
RAGVersion uses Supabase (PostgreSQL) as its primary storage backend.
Step 1: Create a Supabase Project¶
- Go to supabase.com
- Create a free account
- Create a new project
- Note your project URL and service key
Step 2: Initialize RAGVersion¶
Initialize RAGVersion in your project:
This creates a ragversion.yaml configuration file.
Step 3: Configure Credentials¶
Edit ragversion.yaml with your Supabase credentials:
Or use environment variables:
export SUPABASE_URL="https://your-project.supabase.co"
export SUPABASE_SERVICE_KEY="your-service-key"
Step 4: Run Database Migration¶
Get the migration SQL:
Copy the SQL output and run it in your Supabase SQL Editor: 1. Go to SQL Editor in Supabase dashboard 2. Paste the migration SQL 3. Run the query
Step 5: Verify Setup¶
Check that everything is configured correctly:
You should see:
Environment Variables¶
For production deployments, use environment variables instead of YAML:
export SUPABASE_URL="https://your-project.supabase.co"
export SUPABASE_SERVICE_KEY="your-service-key"
Add to your .env file:
Docker Installation¶
If you're using Docker, add RAGVersion to your requirements.txt:
And set environment variables in your docker-compose.yml:
Troubleshooting¶
"No module named 'ragversion'"¶
Make sure you've installed the package:
"Supabase connection failed"¶
Check your credentials:
Verify your Supabase project is active and the credentials are correct.
"Table 'documents' does not exist"¶
You need to run the database migration. See Step 4 above.
Next Steps¶
- Quick Start Guide - Track your first document
- Configuration - Learn about configuration options
- Core Concepts - Understand how RAGVersion works