Use this file to discover all available pages before exploring further.
Back to API ListThis API fetches answers to a query from SearchAI based on the input query and meta filters sent in the request body. It also returns debug information about the qualified chunks used to generate answers.
Array of rules to filter results from the Answer Index before generating the answer. For example: "metaFilters": [{"condition": "AND", "rules": [{"fieldName": "sourceType", "fieldValue": ["web"], "operator": "contains"}]}]
answerSearch
No
Set to true to include answers in the response. Set to false to omit the answer (you can still use includeChunksInResponse to see qualified chunks). Defaults to true.
includeChunksInResponse
No
Set to true to include qualified chunks in the response. Chunk data is stored in the chunk_result field.
IncludeMetaDataAnswers
No
Array of specific chunk metadata fields to include in the response. Returned as part of graph_answer. Use the root name prefix for metadata fields (for example, "chunkMeta.author"). Missing fields return as null.
raclEntityIds
No
Array of RACL values specifying Role-Based Access Control List values to determine accessible content. Can include user identities (email addresses) and permission entity IDs (user groups). When provided, takes precedence over any RACL Resolver API configuration.
customData
No
Custom data for the request. Use to filter search results, pass previous conversations as context, or set user context (identity, location, etc.). See examples below.
dynamicPromptSelection
No
Specifies the prompt and model for answer generation. Overrides the default application-level configuration. Accepts integrationName, model, and promptName. Supported integrationName values: "openai", "azure", "korexo", or a custom integration name. All values are case-sensitive. For Kore XO GPT, set model to "XO-GPT" and promptName to "Default".
Example 3: Pass previous conversation as context to the Query Rephrasing Agent
"customData": { "previousConversation": [ { "query": "What is the leave policy for America?", "answer": "The leave policy in the U.S. varies by employer, but the Family and Medical Leave Act (FMLA) allows eligible employees to take up to 12 weeks of unpaid leave for certain family and medical reasons." }, { "query": "How do I reset my company email password?", "answer": "You can reset your company email password by visiting the IT support portal and selecting 'Forgot Password.'" } ]}