Automation
ContextDock.
Private document search with traceable excerpts.
Built with
- Python
- FastAPI
- SQLite
- sqlite-vec
Project overview
ContextDock indexes documents in collections owned by each tenant. Search results point to exact excerpts with document IDs and character offsets.
A separate memory store supports updates with version checks and deletion.
The workflow
- Index a document
- Retrieve an excerpt
- Trace the source
Technical implementation
Why a result carries an offset
Each excerpt points to a document and a character range. A reader can check the wording in context. The default search combines vector similarity with word overlap and returns the passages it found.
What happens when a source disappears
The vector index and source records are scoped to each tenant. Deleting a document removes its text, chunks and vectors in one transaction. In the demo with two accounts, a second user starts with a separate collection.