Skip to content

Container Best Practices

This guide covers best practices for organizing context containers.

Before creating containers, consider:

  1. Scope - What context belongs together?
  2. Access - Who needs access to this context?

Use concise, descriptive names:

  • “Product Documentation”
  • “Customer Support Scripts”
  • “Engineering Standards”

One container per project or product:

my-org/
├── web-app-docs
├── mobile-app-docs
└── api-specs

One container per team or department:

my-org/
├── engineering
├── design
└── customer-success

One container per content type:

my-org/
├── documentation
├── research-data
└── meeting-notes

Problem: Creating a container for each document.

Solution: Group related documents in one container. With too many small containers, you lose the benefits of preprocessing—entities within data aren’t linked across containers, so your agent has to build that context at query time.

Problem: Putting everything in one container.

Solution: Separate by topic or access needs. Purpose-driven containers offer more contextual tools, making it easier for your agent to execute and saving tokens.