Skip to main content

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)

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?

Folders organize your documents into searchable collections. Each folder becomes an isolated knowledge base for your AI agent.
Hippo automatically processes and indexes your documents for semantic search. Supports PDFs, DOCX, PPTX, and more.
Chat sessions maintain conversation context. Each chat remembers previous questions for follow-up queries.
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

Hippo Overview

Complete guide to RAG capabilities

Folder Management

Organize documents effectively

Q&A Best Practices

Optimize answer quality

RAG Examples

Real-world implementation patterns

Common Operations

Having Issues?

Error: Authentication failed or Invalid API keyQuick fixes:
  • Double-check your API key from cerevox.ai
  • Verify CEREVOX_API_KEY environment variable is set correctly
  • Remove any extra spaces or quotes around the key
  • Try passing the key directly: Hippo(api_key="your-key")
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
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
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.