Skip to main content

template

Prompt defines the prompt sent to AI Models.

You can use a predefined Prompt Template and initiate the variables for system and user prompt when executing the AI Pipeline from the SDK, or define the entire prompt with the SDK.

prompt:  
template:
package: floom/prompt/templates/default
system: "You are helpful assistant"

# πŸ“„ tutorial.pdf as context
context:
- package: floom/prompt/context/pdf
path: /etc/tutorial.pdf

# ❌ Filter Profanity
validation:
- package: floom/plugins/bad-words-filter
disallow: ['profanity']

This prompt uses Floom default Prompt Template package located at floom/prompt/templates/default.

πŸ’‘Note that most templates will use both System Prompt (general instruction) and User Prompt (coming from user input). Learn about their differences.