LocalGPT

Private document question answering that runs on your own machine with Ollama models and hybrid search.

Open SourceSelf HostedOffline Capable
0.0 (0)

About

Built for people who want answers from their own files without shipping them to a cloud API, LocalGPT indexes PDFs, Word files, HTML, Markdown, and plain text on your machine and answers questions with models served through Ollama. Docling parses each document, switching to OCR for scans, and the text is chunked, given short context notes by a small model, and stored in LanceDB. Queries run vector search and keyword search side by side, merge the two lists with reciprocal rank fusion, and rerank the candidates with a cross-encoder; a router first decides whether a question needs retrieval at all, and complex questions are broken into sub-queries. Replies cite the chunks behind them. You get a Next.js web interface, a REST gateway, and live progress events, runnable through Docker or directly with Python 3.10 or later and Node.js 20, with 16 GB of RAM recommended. Embedding and reranking use CUDA or Apple MPS when available and fall back to CPU. The current code base is plain Python with no LangChain dependency, an IBM watsonx backend is optional, and the project is MIT licensed for commercial use.

Should you use LocalGPT?

Pick it when

Choose LocalGPT when documents must never leave the machine, such as legal or medical files on a single workstation, and you want hybrid semantic plus keyword search over them using open-source models with no cloud fallback.

Look elsewhere when

Skip it if you want optional cloud models or a multi-user server, where AnythingLLM's Docker build fits better, or an OpenAI-compatible API for other apps to build on, which is what PrivateGPT is designed around.

Alternatives to LocalGPT

  • PrivateGPT

    Also fully offline, but built around an OpenAI-compatible API, a better base when other apps need to call your private document QA.

  • AnythingLLM

    Desktop installer, multi-user workspaces on Docker, and optional cloud models, easier to roll out, but users can route data to cloud providers if allowed.

  • Kotaemon

    Web UI with hybrid and multimodal retrieval that works with several LLM providers, more flexible, but privacy depends on which model backend you configure.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Easy (2/5)
License
MIT
Added
Apr 3, 2026

Tags