Answers in their own words
An answer is written by an LLM (Anthropic's Claude) that searches everything the creator has said in their videos and may only claim what it found there. This stage builds what it searches, and a short note on how the creator talks.
How an answer is made
What this stage builds
Commands
./alive build <creator> --stage answers runs both scripts. By hand, from
engines/knowledge_style/proto, with any Python that has anthropic:
python3 build.py --takes ../../../data/takes/<folder> --subject <creator> # seconds, no LLM
python3 mapindex.py --subject <creator> # minutes, one LLM call per video
make status # per creator: videos, passages, ready?
<creator> here is the answer engine's name for them, set in creators/<id>/build.json under answers: Dr K's is healthygamer, Huberman's is huberman. The LLM key is read from data/answers/.protokey (or ANTHROPIC_API_KEY).
The persona note (a person picks it)
The note is most of what makes an answer sound like them: the search finds what they said, the note sets how they say it. No script writes it. It takes about twenty minutes.
- Copy
engines/knowledge_style/proto/harness/creators/_template/creator.mdtodata/answers/<creator>/creator.md. The rules at the top stay as they are. - Pick 18 passages of about 90 seconds each from their transcripts: across as many videos and topics as possible, where they explain something in their normal voice. Never an ad, a sponsor read, an intro or an outro. Leave transcription errors in.
- Write each under How you talk as
[<take folder> HH:MM:SS-HH:MM:SS], then the words. - Fill in Your archive with the counts
make statusprints. - Record the pick in
creators/<id>/build/answers/persona_passages.txt(sources only, no text). - Later, once the live app runs (the last step of a build), ask three questions and read the answers aloud. If an answer calls the creator "he", or sounds like a summary of them instead of them, the passages are too formal or too few.
The promoted setup (optional)
How many passages to fetch and which instructions to use is the creator's promoted setup, in
engines/knowledge_style/proto/harness/profiles/<creator>.json (harness is the answer loop's code). A new creator without one runs on Dr K's, which works well.
Tuning one is a measure-change-measure loop over 100 test questions, written up in
engines/knowledge_style/proto/RECIPE.md; it needs a set of test questions and checked answers
(written by a separate recipe, question-corpus, in proto/recipes/), costs hours of LLM calls, and is not needed to start.
Things that go wrong
| you see | why, and the fix |
|---|---|
| answers talk about the creator as "he" | the persona note is missing, too short, or too formal. Re-pick the passages |
| an answer drifts into general advice | the archive does not cover the question; the rules make it say so. Add videos on that topic and rebuild |
no persona note at ... | step above: the note lives in data/answers/<creator>/, not in git |
| 401 or "no key" | put the key in data/answers/.protokey |
| a different creator's numbers look wrong | scoring one creator against another's checked answers; every script takes --creator, never assume a default |