Context System
The context system controls how data flows between actions. It refers to upstream outputs, it controls what the LLM can see, and it passes fields to downstream actions.
Core Concepts
| Concept | Purpose | Syntax |
|---|---|---|
| Field References | Gets the outputs of upstream actions | {{ action_name.field }} |
| Context Scope | Controls which data an action can see and how data flows | context_scope: {observe, drop, passthrough, seed, retrieve} |
| Seed Data | Loads static reference data | seed: {name: $file:path} |
| Retrieve | Searches a knowledge base, or the records of an earlier action, for each record and gives the prompt the matches | retrieve: {name: {from: base, query: [source.text]}} |
Learn More
- Field References - The
{{ action_name.field }}syntax that refers to upstream data - Context Scope - Control what an action can see with observe, drop and passthrough
- Seed Data - Load static reference data into the context
- Knowledge Bases and Retrieval - Search a large reference for each record with
retrieve