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

# Context presets

> The context_preset type stores a named, reusable selection of knowledge contexts that users can pin to a session.

export const EditionBadge = ({edition}) => <Tooltip tip={edition === "ee" ? "Requires an Enterprise Edition license." : "Available in the Community Edition."}>
    <span style={{
  fontFamily: "RobotoMono, monospace",
  fontSize: "12px",
  textTransform: "uppercase",
  letterSpacing: "0.04em",
  border: "1px solid var(--imp-hair-light)",
  padding: "2px 8px"
}}>
      {edition === "ee" ? "Enterprise" : "Community"}
    </span>
  </Tooltip>;

A `context_preset` lets users save a curated set of knowledge sources as a named group and attach it to any chat session with one click. See [Agents overview](/building/agents/overview) for product context around knowledge and presets.

```graphql theme={null}
type context_preset {
  name: String!
  description: String
  preset_items: JSON!
  tags: JSON
  usage_count: Float
  favorite_count: Float
  last_processed_at: Date
  embeddings_updated_at: Date
  rights_mode: String
  created_by: Float!
  createdAt: Date
  updatedAt: Date
  id: ID!
  RBAC: RBACData
}
```

## Field notes

| Field                   | Notes                                                                                                                 |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `preset_items`          | JSON array of context source references included in this preset. Each entry identifies a knowledge context by its ID. |
| `rights_mode`           | `"public"` or `"private"`. Private presets are scoped to users, roles, or teams in `RBAC`.                            |
| `created_by`            | Numeric ID of the creating user.                                                                                      |
| `usage_count`           | Incremented each time this preset is attached to a session.                                                           |
| `favorite_count`        | Number of users who have favorited this preset.                                                                       |
| `last_processed_at`     | Timestamp of the last knowledge-embedding pass over this record.                                                      |
| `embeddings_updated_at` | Timestamp when vector embeddings were last regenerated.                                                               |

## Example query

```graphql theme={null}
query {
  context_presetsPagination(
    limit: 10
    filters: [{ rights_mode: { eq: "public" } }]
    sort: { field: "usage_count", direction: DESC }
  ) {
    items {
      id
      name
      description
      tags
      usage_count
      preset_items
    }
    pageInfo {
      currentPage
      hasNextPage
    }
  }
}
```
