Get in touch
← back to work

Ask My Agent System

A search assistant over the playbooks I use to run my AI agents. Ask a question, get the best matching passages with their sources and scores, or a plain "nothing relevant found" when the answer is not in the documents.

status: working demo, real documents stack: plain JavaScript, BM25 keyword search no LLM runs on this page
RAG (retrieval step) Citations Refusal Evaluation
RETRIEVAL ONLY: this page finds and cites passages. It does not write an answer sentence, because no language model runs here. The documents are real: 71 passages from 13 skill files I wrote for my agents. Credentials, IDs, addresses and personal notes were removed before publishing.
retrieval evalruns live
not run yet

What it does

You type a question. The page splits it into keywords, scores every passage with BM25 (a standard keyword ranking formula), and shows the top three with their score, the matched terms and the skill file and heading they came from. Open a result to read the whole passage. If no passage scores high enough or covers half of the question terms, it says so instead of showing weak matches.

How the pieces fit

What I decided and what the agents built

I chose the corpus, approved which passages could be published and what had to be removed, and set the rules for citing and refusing. The agents wrote the search code, the cleaning script and the test questions. I read the questions before they went in.

Why it is relevant to agent roles

Most enterprise assistants are internal knowledge search: ask a question, get the answer with links to the source pages. This shows the parts that make that trustworthy: every result has a source, off-topic questions are refused, and retrieval quality is measured instead of assumed.

Known limits

Next

Add embedding search and compare it with BM25 on the same test set, then let a model draft cited answers and score them for faithfulness to the passages.