#3333rd of 94 in RAG, knowledge and search

sag

Self-hosted knowledge base with event-entity retrieval and cited agent answers

Releases and problems feed (RSS)

Stars
3k
License
MIT
Last commit
Nov 2026
Last release
Sep 2026
Language
Python
Stars, last 30 weeks+1,888
27 Apr 2026: 1,131 stars4 May 2026: 1,133 stars11 May 2026: 1,134 stars18 May 2026: 1,134 stars25 May 2026: 1,136 stars1 Jun 2026: 1,138 stars8 Jun 2026: 1,140 stars15 Jun 2026: 1,143 stars22 Jun 2026: 1,413 stars29 Jun 2026: 1,769 stars6 Jul 2026: 1,905 stars13 Jul 2026: 1,995 stars20 Jul 2026: 2,151 stars27 Jul 2026: 2,230 stars3 Aug 2026: 2,270 stars10 Aug 2026: 2,297 stars17 Aug 2026: 2,346 stars24 Aug 2026: 2,403 stars31 Aug 2026: 2,434 stars7 Sept 2026: 2,459 stars14 Sept 2026: 2,477 stars21 Sept 2026: 2,492 stars28 Sept 2026: 2,506 stars5 Oct 2026: 2,513 stars12 Oct 2026: 2,577 stars19 Oct 2026: 2,600 stars26 Oct 2026: 2,634 stars2 Nov 2026: 2,646 stars9 Nov 2026: 2,875 stars16 Nov 2026: 2,993 stars23 Nov 2026: 3,019 stars

1,131 on 27 Apr 20263,019 on 23 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

SAG ingests documents (Markdown, text, PDF, Office, web), chunks and embeds them, and extracts one event and several entities per chunk into SQLite and LanceDB. Retrieval expands from seed events through SQL joins on shared entities, then returns the original chunks for search, graph views and cited chat. It exposes REST/OpenAPI, an OpenAI-compatible endpoint, MCP and a Python package.

Who it is for: Individuals and agent builders wanting a private, cited document knowledge base

Strengths

  • Starts on SQLite and LanceDB; no external database needed
  • Every result and citation opens the original source chunk
  • Exposes REST/OpenAPI, OpenAI-compatible chat, MCP, and a CLI for Codex and Claude Code
  • Desktop installers for macOS (Apple Silicon) and Windows bundle backend and UI

Weaknesses

  • Single-user by design; no multi-user support
  • Indexing needs an embedding model and an LLM endpoint for event extraction
  • Benchmark claims come from the authors' own paper and repo
  • Changing the embedding model requires deleting and re-importing documents

What it needs

  • no GPU
  • Compose
  • Needs LLM and embedding API (302.AI, DeepSeek, Zhipu, Alibaba Bailian, or OpenAI-compatible), MinerU (optional, for PDF parsing)
  • Models: OpenAI-compatible, OpenAI Responses API, Azure, Bedrock, DeepSeek
  • port 3000

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Known problems

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in RAG, knowledge and search

See all 94
Also in RAG, knowledge and search
RankProjectScore
#31opendeepwikiGenerates wiki-style docs and chat for Git repos, with per-repo MCP endpoints3.7k starsMIT71 out of 100
#32paperless-gptLLM-based OCR, titles, tags and document linking for paperless-ngx2.9k starsMIT70 out of 100
#34audiomuse-aiSelf-hosted sonic analysis and playlist generation for Navidrome, Jellyfin and Plex3k starsAGPL-3.069 out of 100
#35llm-wiki-compilerCLI that compiles source documents into a cited, interlinked markdown wiki2.3k stars+69 (+3.1%) in 30 daysMIT69 out of 100
#36naoChat agent that answers warehouse questions from a data-team-maintained context layer2k stars+95 (+4.9%) in 30 dayscustom license69 out of 100