> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pastures.farm/llms.txt
> Use this file to discover all available pages before exploring further.

# Pastures AI

> Persistent AI chat drawer for context-aware diagnostics, grounded fixes, and fleet correlation.

Pastures AI is the persistent chat drawer accessible via the **sparkle icon** (✦) in Rancher's header bar. It provides AI-powered diagnostics grounded in real Kubernetes issue resolutions rather than generic LLM output.

## Opening the drawer

Click the sparkle icon in Rancher's top navigation bar from any page. The drawer slides in from the right and persists across page navigation.

## Key capabilities

<CardGroup cols={2}>
  <Card title="Context awareness" icon="crosshairs" href="/pastures-ai/context-awareness">
    Suggestions adapt based on the current Rancher page and selected cluster.
  </Card>

  <Card title="Source citations" icon="quote-left" href="/pastures-ai/source-citations">
    Every fix links back to the GitHub issue or KB article it was derived from.
  </Card>

  <Card title="Confidence scoring" icon="gauge-high" href="/pastures-ai/fix-verification">
    Responses include a confidence percentage based on corpus match quality.
  </Card>

  <Card title="Fleet correlation" icon="diagram-project" href="/pastures-ai/fleet-correlation">
    Banners indicate when the same issue appears across multiple clusters.
  </Card>

  <Card title="Fix verification" icon="check-double" href="/pastures-ai/fix-verification">
    Post-fix monitoring confirms the issue is resolved.
  </Card>

  <Card title="Cluster memory" icon="brain" href="/pastures-ai/cluster-memory">
    Indicator shows when the AI retains context from prior interactions with this cluster.
  </Card>
</CardGroup>

## Drawer features

* **Expandable fix commands** — code blocks with copy and run buttons
* **Action confirmation** — destructive operations display a risk level before execution
* **Cluster memory indicator** — shows when AI has prior context for the selected cluster
* **Ask AI buttons** — appear inline on other pages to jump into the drawer with context

## Engine API

<ParamField path="POST /api/diagnose" type="endpoint">
  Sends a diagnostic query with cluster context and returns a grounded AI response.
</ParamField>

## Demo mode

Without an Engine connection, the AI drawer uses keyword matching to return canned responses for common scenarios:

| Keyword          | Demo response topic                     |
| ---------------- | --------------------------------------- |
| etcd             | etcd cluster health and quorum recovery |
| CrashLoopBackOff | Container restart loop diagnosis        |
| upgrade          | Version upgrade risk assessment         |
| Longhorn         | Storage replica and volume health       |
| OOM              | Out-of-memory kill analysis             |

<Tip>
  See the dedicated [Pastures AI section](/pastures-ai/context-awareness) for detailed documentation on each sub-feature.
</Tip>
