What this demonstrates
Deterministic semantic retrieval over a small, curated, real slice of this repository's own Java source and architecture docs — zero LLM calls. Every result is a real excerpt with a real similarity score and a real link into the public source. If nothing relevant is indexed, this says so honestly instead of guessing.
Portfolio/demo scope, not enterprise production: a small curated corpus, not the whole repository — see "How this works" below for exactly what's indexed and why.
Ask a question
Result
How this works
- Retrieval
- Local embedding model (fastembed, no API key/cost) + cosine similarity over pre-computed vectors — a real, deterministic function, not a model guessing.
- Corpus
- ~28 curated files: core Customer-app Java source/tests for the topics below, plus this project's own real interview-scenario write-ups. Explicitly curated (a code-reviewed list), never the whole repository, never anything private.
- Security boundary
- Structural, not a promise a model might ignore: there is no code path from any query to any file outside that curated list — no read/write/execute tool is reachable from this page at all.
- Permission filter
- Retrieval now filters by document access level (
public,eng-internal,private) in code, before ranking — not in a prompt. This page always queries aspublic, so it can only return public documents (one fake public fixture page is labeled as such) even if a restricted document would be the closest match; a missing or unknown role is denied. The restricted levels are exercised only against a handful of clearly fake fixture pages standing in for Notion/Slack docs, in tests and evals. There are no real roles or logins here, and this is still not a company knowledge pipeline: no live Notion, Slack or GitHub ingestion and no source ACL sync. - Evidence quality
- Real cosine similarity scores shown per result, using the same confidence threshold (0.45) already used elsewhere in this codebase's own internal RAG pipeline.