Every engineering team hits the same wall with AI coding assistants: the model generates code with confident precision, using an API signature that was deprecated eighteen months ago. Pre-trained frontier LLMs know widely adopted frameworks like React 17 or Express 4 by heart, but when you drop them into a freshly released framework, an internal SDK, or a major version bump—like Next.js App Router migrations or Fastify v5—they hallucinate.
In Continue—the open-source AI code assistant for VS Code and JetBrains—the primary defense against this API drift is the @docs context provider. It gives developers a direct mechanism to crawl, embed, and semantically retrieve arbitrary external and internal documentation into chat sessions and inline code refactoring (Cmd+I / Ctrl+I).
At 365Finds, we evaluate developer tools based on how much control they hand back to the engineering team. Continue gets this right in architectural principle: instead of forcing you to upload your internal documentation to a vendor's black-box cloud, @docs crawls the target pages, chunks the content, embeds it through your chosen embedding provider, and stores the vectors locally in LanceDB.
Here is exactly how to configure, index, and query custom framework documentation in Continue, along with the operational edge cases that usually trip teams up.
1. Adding Custom Documentation: GUI vs. Configuration
Continue gives you two pathways to register a custom documentation set: an interactive UI inside your IDE, and a declarative configuration file for reproducible setups.
Option A: The Interactive UI (Fastest for Single Developers)
- Open the Continue sidebar in VS Code or JetBrains (
Cmd+LorCtrl+L). - In the chat prompt box, type
@docsand press Enter, or click the + Add Context icon. - Select Add Docs from the dropdown menu.
- Fill in the modal form:
- Title / Name: A clean, memorable identifier (e.g.,
Fastify v5orInternal Auth SDK). - Start URL: The entry point where crawling begins (e.g.,
https://fastify.dev/docs/latest/).
- Title / Name: A clean, memorable identifier (e.g.,
- Confirm the submission. Continue immediately initiates the crawl and indexing pipeline in the background.
Option B: Declarative config.yaml (Recommended by 365Finds for Teams)
Interactive entry is convenient, but 365Finds strongly advises declaring documentation sources directly in configuration files. This ensures your entire engineering team shares identical documentation context when sharing .continue/config.yaml within a repository.
In the modern v1 configuration format (~/.continue/config.yaml for global settings, or .continue/config.yaml at your workspace root):
version: 1.0.0
schema: v1
name: Team Dev Environment
docs:
- name: Fastify v5
startUrl: https://fastify.dev/docs/latest/
favicon: https://fastify.dev/images/favicon.ico
- name: Internal Platform API
startUrl: http://internal-wiki.local/api/v2
useLocalCrawling: true
(Note for legacy setups using config.json: documentation items use the title and optional rootUrl keys inside a top-level "docs": [...] array).
2. The Indexing Engine: Under the Hood
When you add a documentation source, Continue does not merely perform a naive keyword search. It executes an end-to-end Retrieval-Augmented Generation (RAG) pipeline:
| Pipeline Stage | Mechanism | Practical Implication |
|---|---|---|
| Crawling | Remote crawler by default; local crawler if useLocalCrawling: true. | Stays within the boundary of the startUrl domain/path prefix. |
| Sanitization | Strips navigation headers, footers, HTML scripts, and sidebars. | Extracts raw technical prose and code snippets into markdown blocks. |
| Chunking | Text splitters break pages into overlapping context windows. | Preserves function signatures and code examples intact. |
| Vectorization | Routed to your configured embeddingsProvider. | Supports OpenAI text-embedding-3-small, Ollama (nomic-embed-text), Cohere, or Voyage AI. |
| Storage | Local LanceDB instance and SQLite metadata tables. | Stored on your local machine (~/.continue/index/); zero ongoing database hosting cost. |
Essential Embedding Setup
Your documentation index is only as good as the embedding model powering it. If you haven't explicitly set an embeddingsProvider in Continue, indexing will either fail or default to lightweight fallback transformers.
For local-first privacy with Ollama:
embeddingsProvider:
provider: ollama
model: nomic-embed-text
For fast, high-accuracy cloud embeddings via OpenAI:
embeddingsProvider:
provider: openai
model: text-embedding-3-small
apiKey: "YOUR_OPENAI_API_KEY"
3. Querying @docs in Chat and Code Refactoring
Once the status indicator shows indexing is complete, Continue exposes the custom framework directly to your workflow.
Workflow A: Chat-Based Architecture and API Queries
Type @docs in the chat input, select your library, and ask your technical question:
@docs Fastify v5 How do I configure schema validation with TypeBox for nested route payloads?
Continue performs vector similarity search across your local LanceDB store, retrieves the most relevant documentation fragments, appends them to the system prompt context, and instructs the LLM to ground its answer on the retrieved documentation.
Workflow B: In-Editor Code Refactoring (Cmd+I / Ctrl+I)
The highest-leverage use of @docs is during migrations. When refactoring deprecated patterns:
- Highlight the target legacy code in your editor.
- Hit
Cmd+I(macOS) orCtrl+I(Windows/Linux) to invoke Continue's inline edit. - Prompt:
@docs Fastify v5 Refactor this legacy Express router middleware into a scoped Fastify plugin with proper reply decorators.
Because the LLM receives the authoritative documentation chunks alongside your highlighted code, it generates exact, up-to-date syntax instead of guessing.
4. 365Finds Assessment: Edge Cases and Failure Modes
We like Continue's local LanceDB storage and the flexibility to switch between local Ollama embeddings and cloud APIs. However, 365Finds has identified four critical gotchas developers must account for:
-
Client-Side Rendered (SPA) Documentation
Continue's lightweight web crawler does not run a full headless browser like Chromium. If your framework's documentation is rendered purely via client-side JavaScript (SPAs without Server-Side Rendering or static HTML generation), the crawler may ingest blank pages. If possible, pointstartUrlto static docs, a GitHub markdown documentation tree, or anllms.txtendpoint. -
The Intranet Leaks Trap (
useLocalCrawling)
By default, Continue can dispatch crawl requests through a hosted proxy service to accelerate page scraping. If you are indexing internal company portals, staging environments, or localhost addresses (http://10.x.x.xorhttp://localhost:3000), you must setuseLocalCrawling: true. Otherwise, the external crawler will fail to resolve your internal DNS, or worse, expose internal URLs. -
Stale Documentation and Re-indexing
Continue does not automatically re-crawl documentation sites on a schedule. When your upstream framework releases a patch or minor version update, the local LanceDB index remains static. To refresh, developers must delete the existing doc source from the GUI or remove the corresponding index directory under~/.continue/index/and trigger a fresh index. -
Embedding Costs on Massive Documentation Sites
PointingstartUrlat the root of a massive mono-repo or comprehensive reference (such as the complete AWS SDK or Microsoft Learn) can generate tens of thousands of chunks. If you are using a pay-per-token embedding model like OpenAI, ensure thestartUrlis scoped strictly to the subpath of the module you actually need.
Continue's @docs provider transforms a generic AI code assistant into a framework-accurate engineering tool. For teams grappling with rapid API version churn, configuring custom @docs definitions in .continue/config.yaml is one of the highest-yield habits you can build.