feat!: replace ChromaDB with sqlite-vec, extend CLI#10
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Uses the built-in markdown recipe which splits by heading levels, then paragraphs, then lines, then sentences. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Removes chromadb and its heavy transitive dependencies (fastapi, grpc, opentelemetry, posthog telemetry). Defines markdown chunking rules inline to avoid huggingface_hub dependency that was previously pulled in by chromadb. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The similar and context commands were failing because they embedded the file path string as a vector query then filtered by file_path. With sqlite-vec's post-filter KNN, the target file was rarely in the top-k results. Added get_by_file() for direct SQL lookup on the indexed file_path column - no vector search needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
chunk_by_heading()with Chonkie RecursiveChunker using markdown-aware splitting rules (headings > paragraphs > lines > sentences)similar,context,--path-filteronindexobsidian-ragshort alias alongsideobsidian-notes-ragsimilar/contextnote lookup with direct SQL query (get_by_file) instead of broken KNN+filter patternDetails
sqlite-vec migration
chunks(metadata) +chunks_vec(vec0 virtual table for KNN)Chonkie chunker
CLI extensions
obsidian-rag search "query"— semantic searchobsidian-rag similar "Path/To/Note.md"— find related notesobsidian-rag context "Path/To/Note.md"— show note + related contextobsidian-rag index --path-filter "Daily Notes/"— selective re-indexingTest plan
test_store.py,test_indexer.py,test_cli.py)uv tool install --force, re-indexed 1203 files / 2162 chunkssearch,similar,context,stats,index --path-filtercommandsget_similarandget_note_contexttools updated🤖 Generated with Claude Code