rag_answer
Given a query, retrieves relevant context from the knowledge base and generates a cited answer.
Instructions
Generate a RAG answer with citations from the knowledge base.
Args:
query: The question to answer.
collection: Optional collection to search in.
top_k: Number of context chunks to retrieve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| collection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |