AI View

Inspect text served to RAG pipelines and fix formatting patterns that cause context loss during chunking.

Documentation written for human readers does not always preserve its meaning when processed by an AI pipeline. Structural elements that rely on visual context—such as descriptive subheadings, positional references (for example, "in the preceding section"), or images lacking alt text—lose meaning when an AI pipeline chunks and embeds documentation for retrieval-augmented generation (RAG).

AI View previews the AI-readable text CamelMind serves to AI tools alongside your rendered documentation and highlights formatting patterns that can reduce retrieval quality.


Enable AI View with aiView

CamelMind enables AI View by default across all documentation pages. Configure the ai.aiView block in camelmind.config.ts to disable AI View or restrict who can access it.

typescript
const config: CamelMindConfig = {
  // …
  ai: {
    aiView: {
      enabled: true,
      roles: [],
    },
  },
}

Configure the aiView settings

The aiView configuration object supports the following options:

FieldRequiredDescription
enabledNoSet to false to disable AI View and hide it from the documentation toolbar. Defaults to true.
rolesNoRestricts AI View access to specific user roles, such as ["admin"]. Leave empty to inherit standard documentation permissions. This setting has no effect when you disable authentication.
Note

AI View inherits your existing document access controls. Users cannot access AI View for a page they do not have permission to read.


Open AI View for a documentation page

Open AI View from the documentation toolbar on any page or navigate directly to the page's AI View URL.

  • Documentation toolbar: Click the AI View button in the toolbar above the page content, alongside View as Markdown and Download Markdown.
  • Direct URL: /ai-view/features/llms-txt/[page-slug]

For example:

text
/ai-view/features/llms-txt/ai-view

Read the rendered document, AI-readable text, and issues

AI View displays three panes so you can compare the rendered documentation with the text available to AI and RAG pipelines.

Displays the documentation as human readers see it, including formatting and interactive elements.

AI View showing the rendered documentation, AI-readable text, and detected issues


What formatting issues does AI View flag

AI View scans AI-readable text for formatting patterns that degrade retrieval quality when chunking splits

The following rule categories can trigger warnings or notes:

CategorySeverityDescription
long-paragraphWarningFlags paragraphs exceeding 120 words without subheadings…
context-less-codeWarningFlags code blocks placed directly under a heading…
context-less-tableWarningFlags tables placed directly under a heading…
weak-alt-textWarningFlags images missing alt text…
positional-referenceWarningFlags spatial references such as "as shown above"…