Built-in Workflow Templates
vai includes pre-built workflow templates for common RAG tasks. List them with:
vai workflow list
Using Built-in Templates
Run a built-in template by name instead of a file path:
vai workflow run ingest-and-index --input path=./docs --input db=myapp
Customizing Templates
To customize a built-in template:
- View it with
--dry-runto understand the steps - Use
vai workflow initto create your own based on the template - Edit the JSON to match your needs
# See what a template does
vai workflow run ingest-and-index --dry-run --input path=./docs
# Create a custom version
vai workflow init -o my-pipeline.json
# Edit my-pipeline.json...
vai workflow run my-pipeline.json --input path=./docs
Further Reading
- Writing Workflows — Create custom workflows
- Schema Reference — Full JSON schema