1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →
Design a documentation assistant that answers coding questions using the latest library docs and source code (version-aware).
30-second answerSay your answer out loud first, then reveal.

Key decisions
- Version awareness is the core problem. LLMs often produce deprecated APIs from their training data. Tag every chunk with library and version; filter by the requested version; include changelog and migration-guide chunks ("
Xwas renamed toYin 2.0"). - Exact identifier matching: function and class names ("
create_react_agent") need BM25 or a symbol-table lookup, not only semantics. - Code-aware chunking: chunk by symbol with its signature, docstring and examples; keep code blocks intact.
- Source of truth hierarchy: official API reference > official guides > examples > community content.
- Freshness: trigger re-indexing on new releases (GitHub release webhooks or tag polling); keep older versions for users on old versions.
- Grounded code generation: instruct the model to use only APIs present in the retrieved docs; optionally verify by static analysis (does the symbol exist in that version's source?) or by executing the snippet in a sandbox.
- Delivery: IDE integration or MCP server so coding agents can query it as a tool.
Eval: questions about recently changed APIs (where base LLMs fail), measured by whether the generated code runs and uses non-deprecated APIs.
Related
This is what real progress feels like.