$ app.py ← active Streamlit session
$ read query + limits from config
RAG starter kit, explained
By Claudia Ng · Live demo · Implementation guide · GitHub
Built with
Python · Streamlit · Supabase · OpenAI
This path runs in real time on every user question: embed, search, filter, answer. Walk through the steps below.
Progress
Step 1 / 6
$ app.py ← active Streamlit session
$ read query + limits from config
Click a line under src/ or a tile to see what that section of the codebase is for.
Repository layout
Modules (click a tile or a line under src/)
Batch RAG ingestion pipeline: I run mine on a schedule (e.g. weekly) so new posts are ingested into the database. Tap a stage for details.
I read data from markdown files and chunk them.
Transform chunked content into embeddings.
Write text and vectors into the database.
Once you have data, the app is ready to retrieve and answer questions. No separate training or fine-tuning needed.
Below are configurations you can adjust to match your content, models, and budget. Tap a key for what each setting does.
Choose your embedding model.
Configure model choice, randomness, max length: cost, latency, truncation.
How close context must match query.
How many relevant sources to include as context for LLM system prompt.
Size of each chunk when ingested into vector database.
Optional summaries for source previews.
Plug-and-play stack
Follow the guide and deploy an AI assistant grounded in your content in ~60 minutes with these steps:
From clone to deploy
Get the Implementation Guide on Substack (paid tier)
I've documented the exact steps that you can use to deploy an assistant on your own content.
Deploy your own grounded assistant in ~60 minutes when you follow the guide.
Follow the implementation guide