All AI tools
Engineering kits
Local RAG Starter Kit
Point it at a folder of documents and ask questions. Everything runs on your machine.
A complete retrieval-augmented generation pipeline in one Python file: it extracts text from PDFs and Markdown, chunks and embeds it locally with sentence-transformers, stores the index as two plain files, and answers questions with citations. No hosted vector database and no vendor lock-in.
What you get
- One Python file, about 150 lines, no framework
- Local embeddings with sentence-transformers — no embedding API bill
- PDF, Markdown, text, code and CSV ingestion
- A numpy cosine index you can inspect and copy
- Grounded answering with numbered citations and a refusal path
- Works with OpenAI, Groq, Together, Ollama or vLLM
The file
- File name
- rag-starter-kit.py
- Format
- Python · v1.0
Downloaded as a plain file. Nothing in it calls this website, and it keeps working if the site ever goes away.
