Skip to main content
Understanding how agents access and store information is key to building effective AI applications.

Quick Comparison


The Four Concepts Explained

1. Context = Runtime Data Flow

What it is: Data passed between agents during a single workflow execution.
Key Point: Context is ephemeral - lost when the session ends. Use for workflow data flow.

2. Memory = Persistent Learning

What it is: Information stored and recalled across sessions. The agent “remembers”.
Key Point: Memory persists across sessions. Use for user preferences, learning, conversation history.

3. Knowledge = Pre-loaded Documents

What it is: Reference documents loaded before the agent runs. Static information.
Key Point: Knowledge is read-only reference data. Use for manuals, FAQs, documentation.

4. RAG = Retrieval Augmented Generation

What it is: A technique (not a separate system) that powers Knowledge search.
Key Point: RAG is HOW knowledge search works, not a separate system. It’s the retrieval technique.

Decision Tree: Which to Use?


When to Use What

Context

Use for: Agent-to-agent data flow, tool results, single-session workflowsDon’t use for: Anything that needs to persist

Memory

Use for: User preferences, conversation history, learning over timeDon’t use for: Large document collections

Knowledge

Use for: Reference docs, manuals, FAQs, static informationDon’t use for: Dynamic data that changes frequently

RAG

Use for: Semantic search over large documentsNote: This is a technique, not a separate param

Agent Parameters Summary

Parameter Quick Reference


Using All Together

The most powerful pattern combines all three:

Performance Comparison


Summary

Memory

Detailed memory configuration

Knowledge

Knowledge base setup

Context Management

Context optimization

RAG Features

Advanced RAG configuration