{"slug": "offline-markdown-search-with-verifiable-source-evidence-sqlite-fts5-sha-256", "title": "Offline Markdown Search with Verifiable Source Evidence (SQLite FTS5 + SHA-256)", "summary": "A developer published a reproducible walkthrough showing how to use Capicove, an MIT-licensed local-first knowledge CLI, to import local Markdown notes, build an offline SQLite FTS5 keyword index, and retrieve search hits with exact character-span evidence and SHA-256 lineage—no hosted API, API key, or model download required during retrieval. The guide includes a pinned commit, captured outputs, and a replay bundle, and notes that index builds reject stale sources without replacing the active generation.", "body_md": "A keyword search hit is much more useful when you can verify the exact passage and file hash it came from.\n\nIn this reproducible walkthrough, we use [Capicove](https://capicove.ai/) (MIT-licensed, local-first knowledge and multimodal CLI) to import three local Markdown notes, build an offline SQLite FTS5 keyword index, search for `FTS5`, and inspect exact character-span evidence (` start_char`–` end_char`) plus SHA-256 lineage—without a hosted API, API key, or model download during retrieval.\n\n**Full HTML guide, captured outputs, and replay bundle (ZIP + SHA-256):**\n\n[https://capicove.ai/guides/offline-markdown-search/](https://capicove.ai/guides/offline-markdown-search/)\n\nRequires Python 3.11+ and `uv`:\n\n```\ngit clone https://github.com/happyBayes/capicove.git\ncd capicove\ngit checkout 3f1be3314fa15dec8b8063166d77cc896cc5f68f\nuv sync --locked --no-dev --python 3.11\n```\n\nThen initialize a local workspace, import your Markdown files, build the index, and inspect the returned `evidence_id`:\n\n```\n\"$BIN\" setup init \"$CASE/workspace\" --source-root \"notes=$CASE/notes\"\nCFG=\"$CASE/workspace/host.json\"\n\"$BIN\" source import --runtime-config \"$CFG\" --root notes --relative-path offline-search.md\n\"$BIN\" index build --runtime-config \"$CFG\"\n\"$BIN\" search FTS5 --runtime-config \"$CFG\"\n\"$BIN\" get-evidence YOUR_EVIDENCE_ID --runtime-config \"$CFG\" --section metadata --section lineage\n```\n\n`metadata.text` and the UTF-8 source slice `[0:403]`\n`metadata.source_sha256`, `lineage.source_sha256`, and the raw file` index build` to reject the stale source without replacing the active generation", "url": "https://wpnews.pro/news/offline-markdown-search-with-verifiable-source-evidence-sqlite-fts5-sha-256", "canonical_source": "https://dev.to/capicove_ai/offline-markdown-search-with-verifiable-source-evidence-sqlite-fts5-sha-256-5d4g", "published_at": "2026-11-28 03:07:09+00:00", "updated_at": "2026-11-28 03:13:28.424628+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools"], "entities": ["Capicove", "SQLite", "GitHub", "happyBayes"], "also_reported_by": [], "takeaway": "Pairing an offline SQLite FTS5 index with character-span evidence and SHA-256 source hashes lets you verify each search hit against the exact passage and file version it came from, and reject stale sources at index-build time.", "recommendation": {"advice": "When building local keyword retrieval, store character spans and source SHA-256 hashes per hit so results can be verified and stale sources rejected at index build.", "playbook": "rag-retrieval", "playbook_url": "https://wpnews.pro/playbooks/rag-retrieval"}, "alternates": {"html": "https://wpnews.pro/news/offline-markdown-search-with-verifiable-source-evidence-sqlite-fts5-sha-256", "markdown": "https://wpnews.pro/news/offline-markdown-search-with-verifiable-source-evidence-sqlite-fts5-sha-256.md", "text": "https://wpnews.pro/news/offline-markdown-search-with-verifiable-source-evidence-sqlite-fts5-sha-256.txt", "jsonld": "https://wpnews.pro/news/offline-markdown-search-with-verifiable-source-evidence-sqlite-fts5-sha-256.jsonld"}}