Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local RAG API (Open Source Edition)

A strictly local, privacy-first RAG (Retrieval Augmented Generation) backend. It allows you to ingest PDF/TXT documents and chat with them using Ollama and ChromaDB.

Status: core-logic

Features

  • FastAPI: Async endpoints for /ingest and /chat.
  • ChromaDB: Local vector storage.
  • Ollama: Uses local LLMs (Llama 3, Mistral, etc).
  • Privacy: No data leaves your machine.

Prerequisites (Manual Setup)

Since this is the source version, you must manage the infrastructure yourself:

  1. Install Ollama: Download here and run ollama serve.
  2. Install ChromaDB: You must run a local Chroma instance or install the python client.
  3. Python 3.10+: Ensure your venv is active.

Quick Start (Source)

# 1. Install Dependencies
pip install -r requirements.txt

# 2. Pull the Embedding Model (Manual)
ollama pull llama3
ollama pull nomic-embed-text

# 3. Run the API
uvicorn src.main:app --reload

🚀 Want the "One-Click" Docker Version?

I maintain a Dockerised starter kit that includes:

✅ Full Docker Compose (Orchestrates API + Chroma + Ollama).

✅ Dockerfile (optimised, lightweight).

✅ Environment Configs (Pre-set for Llama 3).

✅ One-Command Run (docker-compose up).

👉 Get the Dockerized Starter Kit on Gumroad ($15)

About

A local-first RAG backend: ingest PDF/TXT documents and chat with them using Ollama and ChromaDB. Open-source core logic; the Dockerised one-click setup is a separate paid kit.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages