Understand the structure of prompts in LangWatch
PROJECT
- Prompts are only accessible within the projectORGANIZATION
- Prompts are shared across all projects in the organization{{ variable_name }}
syntax for dynamic content:
{{user_name}}
{{count}}
{{is_premium}}
{{items}}
{{user_data}}
(will be converted to string)Input Types
"str"
- String values"float"
- Floating point numbers"bool"
- Boolean values"image"
- Image data"list[str]"
- List of strings"list[float]"
- List of floats"list[int]"
- List of integers"list[bool]"
- List of booleans"dict"
- Dictionary/objectOutput Types
"str"
- String responses"float"
- Numeric responses"bool"
- Boolean responses"json_schema"
- Structured JSON responses"few_shot"
- Few-shot learning with examples"in_context"
- In-context learning approach"chain_of_thought"
- Chain-of-thought reasoning