Build Your First RAG Q&A System in 5 Minutes 🦛
This quickstart gets you from zero to asking questions over your documents with AI-powered answers and source citations.Requirements: Python 3.9+ • 5 minutes of your time
Step 1: Installation (30 seconds)
Step 2: Get API Key (30 seconds)
1
Get your API key
Visit cerevox.ai and sign up for your free API key
2
Copy the key
Save your API key - you’ll need it in the next step
Step 3: Authentication Setup (30 seconds)
- Environment Variable (Recommended)
- Direct in Code
- .env File
Step 4: Build RAG Q&A System (3 minutes)
Copy and run this code to create your first AI Q&A system:You’re Ready! 🎉 You’ve built your first RAG Q&A system with 80% cost savings!
What Just Happened?
1. Created Knowledge Base
1. Created Knowledge Base
Folders organize your documents into searchable collections. Each folder becomes an isolated knowledge base for your AI agent.
2. Uploaded Documents
2. Uploaded Documents
Hippo automatically processes and indexes your documents for semantic search. Supports PDFs, DOCX, PPTX, and more.
3. Created Chat Session
3. Created Chat Session
Chat sessions maintain conversation context. Each chat remembers previous questions for follow-up queries.
4. AI-Powered Answers
4. AI-Powered Answers
submit_ask() retrieves relevant chunks (70% smaller context) and generates answers with source citations. 80% cost reduction vs. full document retrieval!Understanding the Cost Savings
Traditional RAG
- Sends entire documents
- Large context windows
- High token costs
- Slower responses
Hippo RAG
- Only relevant chunks (70% smaller)
- Precision retrieval
- 80% cost reduction
- 99.5% accuracy match
Next Steps
- Learn Hippo
- Parse Documents (Lexa)
- Account Management
Common Operations
List Your Folders
List Your Folders
List Files in Folder
List Files in Folder
List Chat Sessions
List Chat Sessions
Get Previous Answers
Get Previous Answers
Clean Up Resources
Clean Up Resources
Having Issues?
Authentication Problems
Authentication Problems
Error:
Authentication failed or Invalid API keyQuick fixes:- Double-check your API key from cerevox.ai
- Verify
CEREVOX_API_KEYenvironment variable is set correctly - Remove any extra spaces or quotes around the key
- Try passing the key directly:
Hippo(api_key="your-key")
Upload Issues
Upload Issues
Error: File upload fails or times outQuick fixes:
- Check file exists:
os.path.exists("your-file.pdf") - Verify file permissions (must be readable)
- For large files, increase timeout:
hippo.upload_file(folder_id, file, timeout=300) - Supported formats: PDF, DOCX, PPTX, XLSX, TXT, HTML, CSV
Processing Time
Processing Time
Question: How long does document processing take?Answer:
- Small files (< 10 pages): 10-30 seconds
- Medium files (10-100 pages): 30-120 seconds
- Large files (> 100 pages): 2-5 minutes
- Use async API for better performance with multiple files
- Files are queued and processed automatically
Answer Quality
Answer Quality
Question: How can I improve answer quality?Tips:
- Upload relevant documents only
- Use descriptive folder and chat names
- Ask specific, clear questions
- Review source citations to verify answers
- See Q&A Best Practices for more tips
Ready to scale? Check out our RAG optimization guide or join the Discord community for help.

