Skip to content

Index local documents and cite the file and passage - #9

Merged
GoDeskio merged 1 commit into
mainfrom
cursor/knowledge-base-3ce6
Oct 10, 2026
Merged

GoDeskio merged 1 commit into
mainfrom
cursor/knowledge-base-3ce6

Conversation

@GoDeskio

@GoDeskio GoDeskio commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Jonathan Ai can answer from the user's own documents without sending them off the machine.

PDF, DOCX, Markdown, plain text, and HTML are indexed in a per-user SQLite file. Search uses local fastembed/ONNX embeddings from Hugging Face after a checksum check, and falls back to BM25 when that model is not installed. Each answer cites the file and the passage. /kb add, /kb list, /kb remove, and /kb search are available from the CLI and the desktop, and the settings panel keeps cloud embeddings off unless the user selects OpenAI.

Document text stays on this machine unless that cloud embedding provider is explicitly chosen. The optional extra is pip install "clawd-codex[kb]". The behavior is adapted from Octop's knowledge base and credited in NOTICE.

Product tie: Jonathan Ai answers from the user's own documents on this machine, and each answer cites the file and passage.

Stack order, with GitHub base left on main: merge this PR first, then #10, then #11. This branch is the knowledge-base commit on top of main (870fbd8). #10 adds only the ACP commit on top of this branch. #11 adds only the channels and devices commits on top of #10.

Open in Web Open in Cursor 

@cursor
cursor Bot force-pushed the cursor/knowledge-base-3ce6 branch from 163e424 to 35d3cfc Compare October 10, 2026 04:08
@GoDeskio
GoDeskio marked this pull request as ready for review October 10, 2026 04:49
PDF, DOCX, Markdown, text, and HTML stay in a per-user SQLite index. Local ONNX embeddings come from Hugging Face with checksum checks, and search cites the file and passage.

Co-authored-by: Admin <GoDeskio@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/knowledge-base-3ce6 branch from 35d3cfc to cb7fe29 Compare October 10, 2026 04:54
@GoDeskio
GoDeskio merged commit 7a848db into main Oct 10, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants