GPU-accelerated semantic search for your docs and source code: hybrid dense + sparse RAG on a local Qdrant backend, served to Claude Code and other MCP clients.
Project description
vaultspec-rag
The semantic retrieval layer for finding decisions and code by meaning.
Get started · Product · Documentation · Family · Support
A vaultspec-core project accumulates a durable record of decisions, plans, research, and the code they produced. vaultspec-rag searches that record and your source code by meaning, not by keyword.
Search "file lock concurrent write per-root" and vaultspec-rag surfaces the decision that governs it, even when the document never uses those exact words. It is the retrieval layer of the project: it finds and ranks the grounding, and a client such as a coding agent reads it.
Every terminal render on this page is real output against this repository's own vault and code. The architecture overview explains how it works; the glossary defines the terms used across the docs.
Requirements
Before you install, confirm your machine meets these minimum requirements:
- Python 3.13 or newer
- uv as the package manager
- An NVIDIA GPU with CUDA support
- About 3 GB of free GPU memory
- Linux or Windows
macOS, AMD GPUs, and Apple Silicon are not supported. The architecture overview explains why the hardware floor sits where it does.
Quickstart
Install
Add vaultspec-rag to your project and set it up:
uv add vaultspec-rag
uv run vaultspec-rag install
uv sync
install configures the GPU PyTorch build, downloads the search models, and provisions the managed search server. uv sync then pulls in that GPU build. The models total a few gigabytes, so the first download takes several minutes, but it runs only once.
To install as a standalone tool instead, pin the GPU torch wheel in the tool receipt so uv tool upgrade keeps the CUDA build (a bare uv tool install re-resolves torch to a CPU-only wheel on every upgrade, and --index is not recorded in tool receipts):
uv tool install "vaultspec-rag[mcp]" --with "torch @ https://download.pytorch.org/whl/cu130/torch-2.13.0%2Bcu130-cp313-cp313-win_amd64.whl"
uvx vaultspec-rag install
On Linux, use the matching manylinux_2_28_x86_64 wheel from the same index.
See the installation guide for tool-environment repair and upgrade caveats.
Index and search
-
Start the server:
uv run vaultspec-rag server start
-
Index your project:
uv run vaultspec-rag index
-
Search:
uv run vaultspec-rag search "concept plus the domain terms"
The first run builds the index. After that, the running service watches your files and reindexes changes automatically, so the index stays current without another command. Check readiness at any time with server doctor:
See the getting started guide for the full walkthrough.
Searching by meaning
The index is hybrid. A semantic half matches concepts and a keyword half matches exact terms, so write your query as a short phrase that both describes the concept and names the domain terms the target text would use. Pure prose starves the keyword half.
uv run vaultspec-rag search "store-layer locking reentrant lock per collection local mode" --type vault
The render at the top of this page is that query against this repository's vault: the top hit is the accepted concurrency ADR, with its rationale ready to read. Each result is a rank, a location you can open, and the matching text. Vault hits carry a metadata line, so a superseded ADR shows as superseded before you read it.
Searching code and filtering
Search code with --type code, and narrow with filters including --language, --path, and a symbol name. Add --scores to see the relevance number beside each rank:
uv run vaultspec-rag search "gpu section wrapping the reranker predict forward pass" --type code --language python --scores
For the full filter set (path globs, document type, feature, date), see search and index.
Preprocessing hooks
A root's .vaultragpreprocess.toml can shell out to convert PDFs, spreadsheets, and other non-text formats into indexable text. Preprocessing is on by default and needs no trust step: a root's preprocess config is code execution with your privileges, the same trust class as running that repo's build scripts, so do not index a repository you would not build. Its rules run directly as bounded subprocesses - a curated environment with the daemon's secrets stripped, the project root as the working directory, and a wall-clock timeout and output caps - but with the filesystem and network access of the account running the service.
preprocess status reports the mode, config presence, and rule count for a root. Set VAULTSPEC_RAG_PREPROCESS=off to disable preprocessing everywhere (the kill switch, mirrored as --no-preprocess). Edits to .gitignore, .vaultragignore, or .vaultragpreprocess.toml are detected automatically: the next index run - including the watcher's - reconciles or rebuilds as needed, with no manual reindex required.
See preprocessing hooks for the full rule syntax and supported formats.
Documentation
Getting started
- Getting started - install, index, and run your first query end to end.
- Installation - the GPU build, dependency provisioning, and recovery steps.
Daily use
- Search and index - run searches and refresh the index.
- Service mode - keep models warm in a background service for faster queries.
- Backends - the managed Qdrant server versus local-only mode.
- MCP integration - wire search into Claude Code and other MCP clients.
- Automation - JSON output and scripting.
- Preprocessing hooks - index PDFs, spreadsheets, and other formats.
Reference
- CLI reference - every command and flag.
- Configuration - settings, environment variables, and defaults.
- Service discovery - the
service.jsoncontract for integrators. - Glossary - terms used across the docs.
Concepts
- Architecture - how it works, why a GPU is required, and the server and local-only modes.
- Indexing - indexing and retrieval internals.
The vaultspec family
The family has three focused responsibilities: vaultspec-core governs the workflow and vault; vaultspec-rag retrieves decisions and code by meaning; and vaultspec-dashboard is the visual workspace that aggregates those views.
- vaultspec-core - the governed
Research → Decide (ADRs) → Plan → Execute → Verifyworkflow, git-tracked Markdown vault, CLI, and MCP server. - vaultspec-dashboard - the visual workspace for exploring the vault, source tree, document graph, workflow state, and semantic search.
Support and help
File bugs and ask questions on the GitHub issue tracker.
A good bug report carries five things: your vaultspec-rag version, your operating system, your GPU model, the exact command you ran, and the full stderr output. With those, a maintainer can reproduce the fault. Without them, the report is hard to act on.
Changelog and license
The changelog holds release notes and version history.
vaultspec-rag is released under the MIT License. See LICENSE for the full text.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vaultspec_rag-0.3.0.tar.gz.
File metadata
- Download URL: vaultspec_rag-0.3.0.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
570948fc9223dd98f017a38f7d6b1747d0fffc0390f504dd91534acc46876980
|
|
| MD5 |
21fe5765eb654559bc52edcdf486065d
|
|
| BLAKE2b-256 |
85b78596a01b762bc1b3eb2c967a11fa0001fb02ff01a96e0b149ad0d69ed8a1
|
File details
Details for the file vaultspec_rag-0.3.0-py3-none-any.whl.
File metadata
- Download URL: vaultspec_rag-0.3.0-py3-none-any.whl
- Upload date:
- Size: 921.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16dd6cf47fe47ea28fc955d5b07753f9993c026ed561d984a3a13491fa8e933f
|
|
| MD5 |
713d1bfde0a2ae36b14d83758e031dd7
|
|
| BLAKE2b-256 |
96980479424eb325ed36c3e7231a8f7b58a3ee301fe85aa0b529cd8352314af4
|