Repository navigation
v0.6.1 — the knowledge-graph release
v0.6.1 — the knowledge-graph release
Four features landed in parallel branches and merged into one release.
Highlights
- Knowledge graph —
loci graph buildextracts entity-relation triples from your memories and wiki pages into a single human-readablegraph.json(no graph database, hand-editable). Every edge cites its source file. Query withloci graph show ENTITYor the newbrain_graphMCP tool (omit the entity to list hub entities). Wiki generation injects related graph relations as extra context. - OCR (
[ocr]extra, rapidocr) — image files are recognized and indexed; scanned PDFs (near-empty text layer) automatically fall back to per-page OCR.loci doctorreports availability. - HTML loader (stdlib, zero deps) — headings, lists,
<meta charset>with a gb18030 fallback for legacy Chinese exports. - org-mode loader (stdlib, zero deps) —
#+TITLEbecomes the h1,#+FILETAGSbecome frontmatter tags, org links become markdown links.
MCP tool count: 9 (brain_graph joins). 173 offline tests, CI on 3.11–3.13.
Install
pip install "loci-rag[pdf,docx,ocr]"Full changelog: CHANGELOG.md