Ask. Get a source, or an honest no.
This is a working TypeScript port of the evidence pipeline in Vericore: section-aware chunking, hybrid scoring, a relevance gate that refuses before any answer is attempted, near-duplicate removal, and a citation check. It runs over Vericore's own sample documents, entirely in your browser — no account, no API key, nothing sent anywhere.
What it is not: there is no language model here. Answers are the deterministic extractive fallback Vericore uses when its model is unavailable, and lexical TF-IDF similarity stands in for MiniLM embeddings — so paraphrases are refused more often than in the real service. The evaluation lab measures exactly that.
NovaTech sample policies. Synthetic HR policy documents that ship with Vericore as its demo corpus: 4 documents, 8 pages. Pulled from the Vericore repository @ 969b3e0 , chunked into 24 passages in your browser.
- NovaTech_Employee_Handbook.pdf3 pages · 8 chunks
- NovaTech_Leave_Policy.pdf2 pages · 6 chunks
- NovaTech_Benefits_Policy.pdf2 pages · 5 chunks
- NovaTech_Remote_Work_FAQ.txt1 page · 5 chunks
How an answer is made
- The question is normalised and its content words extracted.
- Every chunk is scored: similarity plus the share of your words it contains, squared and weighted (Vericore's formula).
- The gate passes only if the best passage is similar enough, or contains nearly all of your words.
- Near-duplicates are dropped and one to three passages kept, depending on how strong the best one is.
- The sentence matching the most question words is quoted. Fewer than two matches means “not found”.
- The citation is checked: the quote must appear verbatim in a passage that was retrieved.
Safety, by construction
- The corpus is a fixed public sample; visitors cannot upload documents or reach any server.
- Document text is treated as data: an extractive engine quotes passages and cannot follow instructions inside them.
- Questions are length-limited (500 characters) and stripped of control characters before use.
- No keys, prompts or logs exist to leak; nothing about your question leaves the page.