Skill qrag-search
Semantic search the extracted question-and-answer vector database (QRAG QRAG stands for Question Retrieval Augmented Generation. Focus on Foundations indexes questions and answers extracted from interviews, meetings, and books in a vector database. Semantic search finds relevant Q&A by meaning, rather than only by matching keywords, and returns quoted source passages with source links. The qrag-search skill retrieves those passages without generating an AI answer. The qrag-ask skill and web chat also give the retrieved passages to an AI model to synthesize an answer, with the direct quotes available for checking. Browse Transcripts to read the source material. An AI answer is a synthesis, not a verbatim statement by the original speaker. QRAG is open source. Point an AI agent to the public repository to ask questions about how it works, with explanations tailored to your background and interests.
https://github.com/randalljam/fof-mono-public ). Retrieve quoted passages and timestamped sources without an AI answer.
Read the skill instructions
Vector search over a corpus of interview transcripts (David Deutsch by default). Returns the questions closest to yours that were actually put to the speaker, each with the answer given, the source transcript, and a timestamped link.
This is retrieval only: no AI model writes anything, nothing is billed, and no account is needed.
When to use
- "What did Deutsch say about X?", "Find the quote where he talks about Y", "Did he ever discuss Z?"
- Checking a claim about his views against the record before repeating it.
- Gathering cited passages to reason over yourself. If the user wants a synthesized answer written by the QRAG service, use
skills/qrag/qrag-ask/README.mdinstead.
Setup
skills/qrag/_shared/references/setup.md — check fof-qrag status once per session.
Procedure
- Phrase the query as a question someone might have asked the speaker. The index is built from interview questions, so "Why are good explanations hard to vary?" retrieves far better than keywords like "explanations hard-to-vary".
- Run the search:
fof-qrag search "Why are good explanations hard to vary?" --json
Options: -n 20 for more passages (2–50, default 10); --from 2015-01-01 --to 2020-12-31 to limit by interview date (give both); --corpus fda-town-halls for another corpus.
3. Read the result:
match.quality—good(the corpus contains essentially this question),partial, ornone(nothing on point;sourcesare loosely related at best).match.max_similarityis the number behind it. Say so rather than stretching weak matches.sources[]—question,answer,source(transcript filename),timestamp(markdown link that opens the recording at that moment),stars(editor rating 0–5 of how good the passage is),similarity.
- Try one or two rephrasings if the best similarity is low; different wordings of a question surface different passages.
- To read around a passage, pass its
sourceto the transcripts skill:fof-qrag transcripts excerpt "<source>"(skills/qrag/qrag-transcripts/README.md).
Reporting results
- Quote the answer text as given and attach its
timestamplink and source title, so the user can hear it in context. - The
answertext is a lightly cleaned rendering of speech, not a published essay. Attribute it as something said in that interview on that date. - Distinguish clearly between what the passages say and your own summary or inference.
- Prefer passages with more stars when several say similar things.
Failure modes
code |
Meaning | What to do |
|---|---|---|
PRIVACY_CONSENT_REQUIRED |
The user has not accepted the privacy notice | Ask the user; see setup |
QUESTION_TOO_LONG |
Over 500 characters | Shorten to the core question |
BAD_DATE_RANGE |
One date without the other, or wrong format | Give both as YYYY-MM-DD |
SEARCH_FAILED / NETWORK_UNREACHABLE |
Service or network problem | Retry once, then report the message |
View SKILL.md entry point
---
name: qrag-search
description: "Search what David Deutsch (or another Focus on Foundations corpus) actually said: finds the closest questions ever put to the speaker and returns the verbatim-derived answers with source transcript and timestamped link. Free, no AI call. Use for 'what did Deutsch say about X', finding quotes, or checking a claim against the record."
---
# qrag-search
Follow the procedure in README.md in this folder. Install the fof-qrag command using references/setup.md. Repository references to skills/qrag/_shared/references/setup.md mean references/setup.md here; references to skills/qrag/<name>/README.md mean the sibling skill folder <name>.