[Feature Request] Enable indexing of remote and local docs to bridge local-model knowledge gaps, and auto-include documentation #5629
sealad886
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Background
Roo Code’s Codebase Indexing graduated from experimental to a core feature recently, providing semantic search across the repository’s code. However, local models frequently lack comprehensive, up-to-date, or domain-specific knowledge (e.g., Python packaging best practices, framework internals, nuanced API usage), leading to context-switching, manual documentation searches, or costly/inconsistent RAG prompts.
Bridging this gap by integrating both external and internal documentation—and doing so intelligently—would make Roo Code vastly more effective and user-friendly.
Proposal
What is being proposed?
Two major upgrades for Roo Code:
Intelligent Inclusion of Documentation in Search:
Roo Code should automatically and intelligently surface both code and documentation results in the IDE, closing knowledge gaps for local models—-without requiring the user to specify when to “look up docs.” Users simply ask their questions in natural language (code, planning, troubleshooting, etc.), and Roo Code handles the rest:
Indexing of External Documentation Sources:
Why does this matter?
How it works (Smart Lookup Pipeline)
flowchart TD U[User submits natural language query] --> V[Initial Roo Code search #40;codebase_search, source=cod#41;] V --> W{Is top code match confident?} W -- Yes --> X[Surface code results only] W -- No --> Y[Auto-trigger docs search #40;codebase_search, source=docs#41;] Y --> Z[Merge code & doc results] Z --> M[Display final results in IDE, labeled by source] X --> MExample Use Cases
Technical Architecture
flowchart TD subgraph Backend Crawler/Proxy A[Config: doc URLs & globs] --> B[Crawler Scheduler] B --> C[Cache HTML/MD] C --> D[Chunk & Embed Worker] D --> E[Qdrant “docs” Collection] F[Nginx Proxy] --- B F --- D end subgraph Roo Code IDE U[User Query] --> V[Initial codebase_search#40;source=code#41;] V --> W{Top Score ≥ 0.5?} W -- Yes --> X[Show Code Results] W -- No --> Y[Auto-trigger codebase_search#40;source=docs#41;] Y --> Z[Merge Code + Doc Results] Z --> M[Rerank & Display Unified Results] endWhy Not Just RAG?
References
Beta Was this translation helpful? Give feedback.
All reactions