{
"id": "prompt-template:rag-answer",
"_kind": "PromptTemplate",
"_file": "extensions/prompt-engineering/prompt-templates.yaml",
"_cluster": "extensions",
"attributes": {
"displayName": "RAG answer-with-citations template",
"templateKind": "scaffold",
"body": "Answer the question using ONLY the provided sources. Cite each fact\nwith [n] where n is the source index.\nSources:\n{{\n[{{@index}}] {{this.text}}\n{{/each}}\nQuestion: {{question}}\n",
"variables": [
"sources",
"question"
],
"notes": "Retrieval-augmented generation template with mandatory citation format.\n"
},
"outgoingEdges": [],
"incomingEdges": [
{
"from": "context-bundle:symphony-rag",
"to": "prompt-template:rag-answer",
"kind": "bundles_template",
"attributes": {}
}
]
}