A support bot answers from the help-centre handbook but keeps missing obvious documents and blowing its context budget. Fix chunking, tokenisation, ranking and context assembly so held-out questions retrieve the right policy every time.
This is the practice version. Assessments always use a variant you have never seen.
Our support bot retrieves passages from the help-centre handbook before calling the LLM. Support leads flagged three failure patterns this week:
Fix rag/text.py, rag/chunker.py, rag/index.py and rag/context.py so that retrieval is correct and the
context fits the budget with [doc_id] citations. eval/dev_questions.json is a small dev set; a held-out
question set and edge-case tests run after you submit. Keep it stdlib-only.