Shipping the Codebase Assistant
putting the pipeline together
Part of: Codebase Assistant
Every piece exists now: ingestion, function-level chunking, tagged metadata, hybrid retrieval, a citation-forcing prompt, a budget limit, and a hallucination guard. This lesson wires them into one pipeline and calls it done. The full pipeline, end to end Eight lessons compress into roughly ten lines here, because each one solved one small piece correctly. The pipeline just calls them in order. What "shipped" means for this project 1. It runs on a real repo, top to bottom, from one function call. 2. A question with no relevant code in the repo gets NO CITATIONS, not a confident guess. 3. Every answer that gets shown carries citations you've verified are real. If those three hold, you have a tool that works, not a demo that only works on the one example you tested. A quick pre-ship checklist - Does ingestion skip node modules, .git, and build output? (lesson 1) - Are chunks whole functions, not arbitrary character windows? (lesson 2) - Does every chunk carry its path and line range through the whole pipeline? (lesson 3) - Does retrieval catch both "what does X mean" and "what does function X do"? (lesson 4) - Does the system prompt force citations, and can you parse them back out? (l
Challenge: Route the Question to the Right Chunk