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.
Try a chip above, or ask your own question. Ask something unrelated to see the refusal.
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
- Corpus: 13 SKILL.md files I wrote for my agents, covering cron routing, voice cloning, website builds, map data and more. A script splits them by heading into passages, removes credentials, IDs, IPs, emails and paths, and drops any passage that mentions secrets. Personal and routing notes were excluded by hand.
- Retrieval: BM25 with light stemming and a stop-word list. Headings count three times. It is keyword search, not vector search, so it will miss synonyms.
- Refusal: below a minimum score, or without a top hit that covers half of the question terms, the answer is "nothing relevant found".
- Evaluation: 15 questions with known correct passages and 3 out-of-scope questions that must be refused. The button runs them in your browser and shows each result.
- Generation: in a real deployment a language model would write a short answer from the top passages and cite them. That step is not included here.
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
- The test questions were written by the same agents that wrote the search, from the same documents, and the refusal rule was adjusted once after the first run missed one question. The score is therefore optimistic and says little about unseen questions.
- Keyword matching: a question that uses different words than the document may not find it.
- Passages come from files that are not public, so the source is shown as file and heading, not as a link.
- No generated answer, no conversation memory, English only.
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.