Scrape any website, chunk content with RecursiveCharacterTextSplitter, embed in ChromaDB, combine keyword and semantic search with hybrid retrieval, and improve accuracy with Cross-Encoder reranking.
Start learning at learnwithparam.com. Regional pricing available with discounts of up to 60%.
- Build RAG systems with ChromaDB as the vector store
- Intelligent text chunking with RecursiveCharacterTextSplitter
- Hybrid retrieval combining keyword and semantic search
- Cross-Encoder reranking for improved accuracy
- Effective RAG prompt engineering
- FastAPI - High-performance async Python web framework
- ChromaDB - Embedded vector database for similarity search
- Sentence Transformers - Local embedding generation
- Cross-Encoder - Neural reranking for better relevance
- BeautifulSoup - Web scraping and content extraction
- LLM Provider Pattern - Supports Fireworks, OpenRouter, Gemini, OpenAI
- Docker - Containerized development
- Python 3.11+
- uv (installed automatically by
make setup) - An API key from any supported LLM provider
# One command to set up and run
make dev
# Or step by step:
make setup # Create .env and install dependencies
# Edit .env with your API key
make run # Start the FastAPI servermake build # Build the Docker image
make up # Start the container
make logs # View logs
make down # Stop the containerOnce running, open http://localhost:8000/docs for the interactive Swagger UI.
Work through these incrementally to build the full application:
- The Scraper - Extract and clean content from any website
- The "Naive" Chatbot - Ask questions without RAG context
- Building the Index - Chunk, embed, and store content in ChromaDB
- The Full RAG Pipeline - Retrieve relevant chunks and generate answers
- The Trustworthy Chatbot - Ground answers strictly in retrieved context
- The Quality Chatbot - Add Cross-Encoder reranking for better accuracy
- The Multi-Source Chatbot - Index multiple URLs and query across sources
make help Show all available commands
make setup Initial setup (create .env, install deps)
make dev Setup and run (one command!)
make run Start FastAPI server
make build Build Docker image
make up Start container
make down Stop container
make clean Remove venv and cache
- Start the course: learnwithparam.com/courses/rag-reranking-chromadb
- AI Bootcamp for Software Engineers: learnwithparam.com/ai-bootcamp
- All courses: learnwithparam.com/courses