Answer a question using RAG over a document collection. Retrieves relevant chunks then synthesizes a cited answer with source attribution. Use when you need a direct answer grounded in your collection documents. For raw matching chunks (without synthesis), use search_collection instead. For single-document Q&A, use qa_url instead.
PREREQUISITE: Collection must be populated via add_document_to_collection and indexed before results appear.
Returns: {
answer: string,
sources: [{ bundle_id, chunk_id }],
retrieval: [{ bundle_id, chunk_id, text, score }]
}
Example prompts:
- "What are the key terms of the service agreement in my collection?"
- "Based on my due diligence docs, what are the main risks?"
- "Answer this question using all documents in the Q4 Contracts collection."
Connector