Answer Question
Answer questions using Retrieval-Augmented Generation from your indexed documents with source citations.
Requirements:
- Documents must be pre-indexed via AI Knowledge Feature
- Specify IndexNames to search specific document collections
Key Features:
- Semantic document retrieval
- Source-backed answers
- Relevance scoring
- Multi-document synthesis
Note: Example requests/responses shown here are illustrative. When using the live “Try it” tool, you may see two responses: an HTTP status preview from the client and the API’s JSON body (StandardResponse envelope).
Authorizations
Your API key from account settings
Your bot ID from account settings
Body
The question to answer using indexed documents
"ما هو الاسم الكامل لمحمد صلاح؟"
Names of document indexes to search (each matches a knowledge unit title). Required for the streaming endpoint; optional for the standard endpoint.
Number of document chunks to retrieve
1 <= x <= 5010
Maximum number of documents to process
1 <= x <= 5010
Controls creativity in answer generation
0 <= x <= 10.1
Maximum tokens in generated answer
1 <= x <= 40961024
Whether to update global context
false
Whether to stream the response
false

