Skip to main content

Build a local RAG in minutes

RAGLight keeps retrieval-augmented generation explicit: choose an LLM, an embedding model, and a vector store, then index a folder and ask a question.

Quickstart

With Ollama running locally, install RAGLight and pull the two models:
Put your .txt, .md, .html, source-code, or PDF files in ./documents, then save this as local_rag.py:
Run it:
Qdrant runs locally in ./raglight-db; no Qdrant server or API key is needed. The ollama extra includes both the LLM and embedding adapters. The documents extra provides the built-in file processors.

Explore the framework

Classic RAG

Retrieve, optionally rerank, and generate a structured answer.

Agentic RAG

Run a bounded tool loop through a separate public API.

Directory ingestion

Recursively process folders with extension-based document processors.

Bring your own components

Implement structural protocols without inheriting from framework classes.

Get started

Install local models, ingest a directory, and ask your first question.

Copy-paste examples

Browse runnable Ollama, OpenAI, custom endpoint, Agentic RAG, MCP, and extension examples.