Git Repository Guide

PrivateGPT

PrivateGPT

AI/ML Self-hostable Apache-2.0

When to use this

Use this when you need to query private or confidential documents (legal, financial, medical) with an LLM, and you cannot send any data to a cloud API. Runs entirely offline. Simple setup, minimal dependencies.

YouTube Tutorials

Click any card to watch on YouTube

What is PrivateGPT?

PrivateGPT is a production-ready AI project that lets you ask questions about your documents using an LLM, with a guarantee that no data ever leaves your execution environment. Offline. Private. Secure.

How It Works

  1. Ingest your documents (PDF, DOCX, TXT, etc.)
  2. Documents are split into chunks and embedded locally
  3. Embeddings are stored in a local vector database
  4. When you ask a question, relevant chunks are retrieved and sent to a local LLM
  5. The LLM generates an answer based only on the retrieved context

All of this happens on your machine. No internet. No API calls.

Use Cases

  • Legal teams reviewing confidential contracts
  • Finance teams analyzing internal reports
  • Healthcare organizations processing patient documents
  • Researchers working with embargoed data
  • Enterprises with strict data governance requirements

Quick Start

pip install private-gpt
privategpt run

PrivateGPT integrates with Ollama for the LLM layer and LlamaIndex for the RAG layer. It exposes both a chat UI and an OpenAI-compatible API.

vs. AnythingLLM

Both are document chat tools. PrivateGPT is lighter and more focused. AnythingLLM has more integrations and a slicker UI. If "zero data leaves the machine" is a hard requirement, both are equally valid — PrivateGPT is simpler to audit.