Examples
Grounded agent
Declare a document set:
# axl-config/docs.toml
[[docs]]
name = "product-guide"
path = "docs/product-guide"
tags = ["product"]Put Markdown under axl-config/docs/product-guide/content/, then index it:
axl rag ingest -c /path/to/axl-config
axl rag search "a real question" -c /path/to/axl-configConnect it to the agent:
# axl-config/agents/support/rag.toml
sources = ["product-guide"]
trigger_mode = "always"And tell the agent what to do when the documents do not cover something:
# axl-config/agents/support/agent.toml
key = "support"
display_name = "Support"
description = "Answers product questions from the product documentation"
identity = """
Answer from the product documentation. If it does not cover something, say so plainly.
Never guess at policy, pricing, or account-specific facts.
"""
toolsets = ["web"]Use trigger_mode = "keyword" instead when only some questions should hit the corpus.
Next
- Add RAG to an agent - the full guide.
- Support agent walkthrough - this, taken further.