Private, on-device document chat: ask questions of your files with local models
open sourceMITself-hostablefree
LocalGPT is a self-hosted document intelligence app for asking questions of, summarising and searching your own files with language models that run on your machine, so no data leaves it. It indexes PDF, Word, HTML, Markdown and text files (parsed by Docling, with OCR for scanned PDFs) into LanceDB, and answers with hybrid vector and full-text search, a cross-encoder reranker and a router that picks between retrieval and a direct model answer, citing the chunks each answer used. Generation models run through Ollama, and a web UI and REST APIs sit on top. Created by Muhammad Farooq, MIT licensed.
Problems it solves
- chat with my own PDFs and documents without uploading them to OpenAI or any cloud service
- ask questions about confidential company files on a machine that never sends data out
- search a folder of reports and get answers with the passages they came from
- run a private document question-answering system on my laptop with local models
- summarise a pile of Word documents and PDFs with an LLM that runs offline
- get answers from scanned PDFs that have no text layer
- build my own app on top of a local retrieval pipeline through a REST API
Features
- runs fully on your own machine: no data leaves it
- PDF, DOCX, HTML, Markdown and TXT ingestion via Docling
- OCR fallback for PDFs without a text layer
- hybrid dense vector and full-text search in LanceDB with reciprocal rank fusion
- cross-encoder reranking
- router that chooses between RAG and a direct LLM answer
- query decomposition into sub-questions
- answers cite the chunks they were grounded in
- any Ollama generation model; Hugging Face or Ollama embedding models
- web UI with sessions and index management
View 2 more
- REST APIs with server-sent events for each pipeline stage
- Docker deployment; CUDA, Apple MPS or CPU
Capabilities
| Has an API | plan not known |
|---|
Alternatives
The same job
These do what LocalGPT does.
- AnythingLLM The all-in-one AI app you were looking for
- Open WebUI One interface for every AI model. Private, extensible, and built for teams.
- kotaemon An open-source clean & customizable RAG UI for chatting with your documents
- Khoj Your AI second brain
- Cherry Studio The all-in-one AI workstation: chat with multiple models, agents, knowledge bases and image creation
- EZNess A Windows desktop AI workbench beyond chat, with your data kept on your machine
