#1515th of 23 in RAG and knowledge

localgpt

Private document Q&A with hybrid search and reranking over Ollama models

Stars
22.2k
License
MIT
Last commit
Aug 2026
Language
Python

Missed the latest GitHub check; these facts may be older.

Overview

LocalGPT indexes PDF, DOCX, HTML, Markdown and TXT files with Docling and answers questions over them using LanceDB hybrid search (dense vectors plus full-text, fused with RRF) and a Qwen3 cross-encoder reranker. A router chooses between RAG and a direct LLM answer, and generation runs through Ollama. It ships a Next.js UI, a REST backend on port 8000 and a RAG API on port 8001.

Who it is for: Self-hosters who want private Q&A over their own documents

Strengths

  • Hybrid retrieval: LanceDB vector plus full-text, RRF fusion, reranking on by default
  • Defaults chosen from documented ablations in eval/decisions; late chunking and verification are optional
  • Every UI action is an HTTP call; CLI and scripts can also build indexes
  • Embedding and reranking pick CUDA, then Apple MPS, then CPU automatically

Weaknesses

  • Needs Python, Node.js 20+ and Ollama, running four separate services
  • Reranker is about 7.5 GB and downloads on the first reranked query
  • Changing the embedding model invalidates existing indexes; they must be rebuilt
  • Vision and multimodal models are not integrated; scanned PDFs rely on OCR engines

What it needs

  • RAM ≥ 8 GB
  • GPU optional
  • Docker + Compose
  • Needs Ollama, Python 3.10+, Node.js 20+, LanceDB, Docling, SQLite
  • Models: Ollama models (qwen3.5:9b default), HuggingFace embedding models, Qwen3-Reranker, watsonx
  • port 3000

Also in RAG and knowledge

See all 23
Also in RAG and knowledge
RankProjectScore
1deeptutorSelf-hosted AI tutor with knowledge bases, guided learning, books and quizzes41.4k starsApache-2.079 out of 100
2Open NotebookSelf-hosted NotebookLM alternative with podcasts and 20+ model providers40.2k starsMIT75 out of 100
3LightRAGGraph-based RAG framework with a REST API server and web UI40.1k starsMIT75 out of 100
#4RAGFlowRAG engine with deep document parsing, template chunking and agentic retrieval Live demo ↗ (opens in a new tab)92.2k starsApache-2.074 out of 100
#5MaxKBEnterprise knowledge-base agent platform with RAG, workflows and MCP tools23k starsGPL-3.069 out of 100