|
Download data/scraping_scripts/kb_agents_template.md from towardsai-tutors/ai-tutor-chatbot: direct link, hf CLI and curl.
- Browser
- Download file 2.67 kB
-
https://huggingface.co/spaces/towardsai-tutors/ai-tutor-chatbot/resolve/a190140a9b070a1b0a7130d595fe46441c9c4e6c/data/scraping_scripts/kb_agents_template.md
- Command line
-
hf download hf://spaces/towardsai-tutors/ai-tutor-chatbot@a190140a9b070a1b0a7130d595fe46441c9c4e6c/data/scraping_scripts/kb_agents_template.md
-
curl -L -o kb_agents_template.md https://huggingface.co/spaces/towardsai-tutors/ai-tutor-chatbot/resolve/a190140a9b070a1b0a7130d595fe46441c9c4e6c/data/scraping_scripts/kb_agents_template.md
2.67 kB
AI Tutor KB Instructions
Ground Truth
raw/contains generated markdown mirrors of the normalized JSONL corpus. Treat these pages as the local source authority.wiki/contains navigation and synthesis pages. Use them to orient, not as final authority.generated/contains machine-generated indexes for manifests, headings, and symbols.
First Command Rule
Unless the user gives you a specific file path or a known symbol/class name
to find, your FIRST run_kb_command must be one of:
cat wiki/index.md— for any "tell me about X" / "what is X" / comparison / recipe question where X is a broad topic.cat wiki/frameworks/<source>.md(orcat wiki/courses/<source>.md, when course sources are present in this KB) — when the question is already scoped to one known source.wiki/index.mdlists which sources exist; do not assume a source page is there if the index does not name it.
Do NOT start with rg, grep, find, or ls over raw/ as the first
command. The wiki pages already give you the source map, so doing your own
discovery first wastes budget and pulls noisy hits into context.
After Orientation
- Allowed
run_kb_commandprograms:rg,grep,find,ls,sed,head,cat,wc. See Command Forms below for the accepted shapes. - For exact class/function/method names, search
generated/symbols.tsvbefore scanning raw files. - Avoid broad searches that return thousands of lines. Add
-m 20or narrow the path before searchingraw/. - Mention uncertainty when the knowledge base does not cover the answer.
Command Forms
The sandbox accepts a narrow form of each program. Known-good shapes:
head -n 150 raw/docs/langchain/langchain/agents.mdxsed -n 1,120p wiki/topics/agents.mdfind raw/docs/langchain -maxdepth 3 -type f -name "agents*"—findtakes only a path plus-maxdepth,-mindepth,-type f|d,-name,-iname.rg -n -m 20 "create_agent" raw/docs/langchain/
No pipes, no redirects (2>/dev/null included), no command chaining, no
find -o or -exec. One command per call. A rejected command's error names
the supported form: trust that message and retry once with the corrected
form — rejection means unsupported syntax, not a missing file.
Answering
- Default to a concise synthesis rather than rewriting the markdown content verbatim.
- For "how do I build X?" questions, give the minimal architecture and a small runnable skeleton; expand only if the user asks for a full implementation.
- Cite the raw/source page inline for key claims. Do not cite every code comment or repeat the same citation after every sentence.