What Jev is doing in ContextVault
Most RAG demos jump from “here are some search results” to “here is an answer” with a suspicious amount of confidence in the middle. ContextVault is trying to make that middle visible.
In plain English: it is an engineering-memory service for technical material that changes over time. You store runbooks, product notes, incident reports, and version-specific procedures. When somebody asks a question, ContextVault retrieves evidence, checks whether that evidence is enough and whether it conflicts, then either returns a cited answer or says it should not answer yet.
That last option is not a failure. In support, operations, and engineering work, an elegant wrong answer is usually more expensive than an explicit abstention.
Interactive evidence atlas
Metrics you can interrogate
Hover a mark for the exact value. Select a chart to expose the caveat behind it. Everything here is measured ContextVault data; the BGE-base slot is deliberately left empty until it earns a score.
Retrieval quality, not vibes
FTS on 5,183 documents and 300 judged queries. Click a bar for what the metric means.
nDCG@10 · 65.06% ranks judged-relevant results higher near the top.
The gate changes the answer shape
Compare the two paths. Click a bar to see exactly what the small diagnostic can and cannot tell us.
Action correctness: Jev-gated RAG measured 68.75% versus 43.75% for direct RAG in this small diagnostic.
Landscape map
Pick the job, then pick the system
These are capability positions, not performance ranks. Different pieces of the stack solve different problems.
ContextVault
Use it for: versioned engineering knowledge where source-aware evidence, abstentions, and citation controls are product requirements.
Not a substitute for: a mature vector database or multi-tenant search platform.
Open ContextVaultThe simple mental model
Think of ContextVault as four jobs, each with a deliberately limited role:
- Keep the source material organised. Files retain product, version, document type, lifecycle status, chunks, and file-level provenance.
- Find possible evidence. The current public baseline uses SQLite FTS5 to retrieve relevant chunks. Exact terms, error codes, versions, and names matter a lot in technical knowledge.
- Ask whether the evidence is actually enough. This is where Jev comes in.
- Generate only when the gate approves. The generator receives a server-built evidence manifest, not an open-ended retrieval dump. Claims must cite that manifest.
The point is separation of responsibilities. Retrieval should retrieve. A decision component should decide whether the retrieved material is safe enough to use. A generator should write from approved evidence. When those roles blur together, debugging becomes a séance.
So what is Jev?
Jev is ContextVault’s optional evidence-decision layer. It is not the database, the primary retriever, or the answer generator.
Given a question and retrieved evidence, the gate assesses whether the material is applicable, sufficiently supported, fresh enough, and free from a meaningful conflict. In the answer path, generation is allowed only when Jev’s decision is:
- trusted;
- non-degraded;
- answerable; and
- non-conflicting.
A rules fallback may be useful to keep search available during an external-provider outage, but it is deliberately marked degraded. It cannot quietly authorise answer generation. That choice matters because availability and authority are not the same thing.
The first live 16-case diagnostic was small, but it illustrates the goal. With identical FTS candidates and the same answer model, Jev-gated RAG reduced the observed unsupported-answer rate from 25% to 0%. It also answered fewer questions. That is the real trade-off: safety improved, coverage fell. The next work is recovery search and better retrieval, not lowering the gate until the numbers look friendlier.
What ContextVault is supposed to solve
The problem is not “how do I make an LLM sound informed?” The problem is how to safely use changing, versioned, and sometimes contradictory internal knowledge.
A useful answer to “How do we retry this payment?” may depend on:
- which product the customer is using;
- which software or policy version applies;
- whether a document is active or superseded;
- whether one runbook contradicts another;
- whether the retrieved passage contains the required fact rather than merely familiar words.
Most generic vector-search examples do not model that situation deeply. They retrieve chunks and leave the application to decide whether the answer should be trusted. ContextVault’s bet is that metadata, provenance, explicit evidence decisions, and abstentions should be first-class parts of the product.
Under the hood: the technical path
1. Ingest with provenance
ContextVault splits source material into paragraph-preserving chunks and stores metadata alongside it. A server-created evidence ID points back to the originating chunk and includes file-level hashing information. The public API does not expose internal storage paths.
That gives a citation something concrete to mean. A citation is not “the model says this came from document seven.” It is an ID that the server can verify against the exact evidence manifest it assembled.
2. Retrieve with constraints
The baseline is SQLite FTS5 because it is inspectable, fast, and good at technical vocabulary. Metadata filters constrain retrieval by product, version, and status before the answer path ever sees candidates.
Dense retrieval is the next layer, not a magic replacement. A model such as BGE-base-en-v1.5 can improve semantic matching by embedding queries and chunks into the same vector space. It needs persisted embeddings and approximate nearest-neighbour indexing to be a production-quality comparison, rather than recomputing the world on every run.
3. Gate the evidence, then generate
The decision output is a structured object, not a scalar confidence score. It needs enough fields to express the reasons generation should stop: lack of support, stale evidence, scope mismatch, a conflict, or an unavailable provider.
If it does approve, the generation provider receives only the approved evidence manifest. The output is parsed as structured claims with citation IDs. Unknown IDs, missing citations, malformed outputs, or provider failures fail closed. The answer becomes a structured abstention instead of an ungrounded paragraph.
4. Recover before giving up
When Jev rejects evidence because a fact is missing, the recovery path can build focused queries from the original question, search the same metadata-filtered corpus, merge only new chunks, and ask the gate again. The loop is bounded and recorded in the response. It is a better default than either hallucinating or repeatedly asking the same unproductive question.
The current offline recovery diagnostic proves the wiring, but not a production gain yet: on its small 30-case corpus, initial retrieval already found the expected files. That is exactly why the post labels it as a control-flow result, not a miracle cure.
How it compares with serious alternatives
The tools below are not interchangeable products and there is no honest universal ranking. Each solves a different portion of the retrieval problem. Their linked documentation is the primary source for the capability descriptions.
| System | Where it is strong | What ContextVault still adds |
|---|---|---|
| Elasticsearch | Mature full-text search, filters, hybrid semantic + lexical retrieval, operational search | An evidence gate, version-aware answer policy, citation validation, and abstention behaviour tailored to the application |
| Qdrant | Dense/sparse vectors, multi-stage queries, reciprocal-rank fusion | Ingestion policy, metadata semantics, evidence decisions, and answer controls |
| pgvector | Vector similarity inside PostgreSQL, joins, transactional data, exact or approximate nearest-neighbour search | Purpose-built evidence manifests, decision telemetry, and a safe answer path |
| Weaviate | Dedicated vector database with configurable vector + BM25 hybrid search | Corpus-specific evaluation and the safety layer between retrieval and generation |
The practical future could include one of these systems underneath ContextVault. That is not a contradiction. ContextVault is best thought of as an evidence-aware application layer: it should be able to use better retrieval infrastructure without giving up provenance, metadata, citations, or the right to abstain.
What the existing benchmark does and does not prove
The measured public result is ContextVault FTS on BEIR SciFact: 5,183 documents, 300 judged queries, nDCG@10 of 65.06%, MRR@10 of 62.23%, Recall@10 of 76.40%, and p95 query latency of 25.7 ms. Those are retrieval metrics, not answer-quality scores.
BGE-base has not completed the same full benchmark on this host. The early dense attempts hit the CPU time limit because the prototype did not yet persist embeddings or use an ANN index. The fair next experiment is obvious:
- Run FTS, BGE-base dense, and hybrid FTS + BGE-base on the same SciFact documents and 300 judged queries.
- Use the same
top_k=10, report model version and corpus checksum, and keep completed artifacts locally under the ignored benchmark-results directory. - Compare retrieval metrics, index construction, index size, memory, p50/p95/p99 latency, errors, and cost.
- Only then add a reranker over the top candidates and test whether it earns its operational cost.
After retrieval is credible, the answer benchmark needs a larger held-out corpus and human-labelled answer-quality review. Jev should not grade its own answers, and retrieval-conditioned scores should not be dressed up as independent truth.
The ambition, minus the fog
ContextVault is not trying to beat every vector database at vector search. It is trying to make a safer path from changing technical documents to an answer someone can inspect, cite, and challenge.
The next milestone is not a bigger claim. It is a fair BGE-base benchmark, persisted hybrid retrieval, and a recovery evaluation that finds cases where the first pass genuinely misses a needed fact.
For the current implementation and reproducible evaluation notes, see the ContextVault repository, the BEIR SciFact guide, and the end-to-end evaluation guide.