Offline Markdown Search with Verifiable Source Evidence (SQLite FTS5 + SHA-256)
A keyword search hit is much more useful when you can verify the exact passage and file hash it came from. In this reproducible walkthrough, we use Capicove (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…
This walkthrough demonstrates how to perform an offline keyword search using Capicove, a MIT-licensed, local-first knowledge and multimodal CLI. The process involves importing three local Markdown notes into an SQLite FTS5 (Full-Text Search extension) database, which allows for efficient text searching without requiring a hosted API or any model downloads.
To begin, clone the Capicove repository from GitHub using the command "git clone https://github.com/happyBayes/capicove.git". Then, change into the cloned repository directory using "cd capicove" and switch to a specific version with "git checkout 3f1be3314fa15dec8b8063166d77cc896cc5f68f". Next, update all dependencies and ensure the correct Python version (3.11+) is being used with "uv sync --locked --no-dev --python 3.11".
After setting up the local workspace, import your Markdown files using the "$BIN" command, followed by building the FTS5 index with the "index build" command. To verify the search results, run the "search FTS5" command, which will return the exact character range (start_char – end_char) of the matched text, along with SHA-256 hash evidence.
This verification process ensures that the returned metadata accurately represents the original file content, including the source SHA-256 hash and lineage information, without any reliance on external APIs or model downloads.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to