RAG
Your API key for authentication
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
Enum representing different types of answers that can be provided.
OK
Your API key for authentication
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
""""OK
Your API key for authentication
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
Koreangpt54_nano0.51256100OK
OK
Your API key for authentication
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
1050102Koreangpt54_nanogpt54""OK
OK
Your API key for authentication
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
OK
Your API key for authentication
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
OK
Your API key for authentication
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
No content
OK
No content
Your API key for authentication
""Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
No content
OK
No content
Your API key for authentication
gaPossible values: Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
No content
OK
No content
Your API key for authentication
1Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
No content
OK
No content
Your API key for authentication
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
No content
OK
No content
Your API key for authentication
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
OK
No content
OK
No content
Your API key for authentication
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
This is a query string.
Utilize the LLM of your choice when generating answers. Default model is GPT4o. Please see documentation for available options.
Determine the format of the response given for easier integrations. Acceptable values are DRAFTJS and MARKDOWN. Default format is DRAFTJS.
To use follow-up question, previous conversation history is required. The conversation history is managed by threadId. If you set isStateful option to True and enter a threadId, the query will be rewritten with reference to the previous conversation history. Default = False.
threadId is used when isStateful = True. The first time you start a conversation, send it empty, and from the next query on, send it using the threadId from the output. However, if you want to set the threadId from the beginning, write it as a UUID and send it. Example UUID - 36e7bb2b-1063-47ec-. Default = None.
Select which group prompt from your project to use for generating responses. The ID is located within the URL when viewing the group prompt within the Settings page. This is a very helpful option for a project with multiple different group prompts that are altered for specific tasks.
Whether to output data as stream or sync. Current available values: sync OR stream (default=sync). When in stream mode, .json strings with the same output format as sync are outputted as streaming.
Whether to include the text of the document used as a clue. Default = False. ONLY works if clues is enabled.
Whether to include clues in the output that will be used to create a generative answer. Default = False.
Whether to include detailed citation information in the response. Citations provide structured references to source documents used in generating the answer. Default = False.
Specifies the range of source data for Generative Answer to find data from. Currently available values are: web, qna, document, and enter data in the form of a list. For example -> ["web", "qna"]
Controls the randomness of the output. Higher values make the output more random. Default = 0.
(Legacy) Limits the search to specific knowledge base IDs. Use 'source' parameter instead for better control over shared/personal documents.
(Legacy) Limits the search to specific folder IDs. Use 'source' parameter instead for better control over shared/personal documents.
Successfully generated answer
It's the answer extracted from uploaded documents in the dashboard, formatted according to the answerFormat parameter.
This is used to identify the answer to give or cancel feedback.
It shows the confidence value from AI model. Shown as a number value between 0 and 1.
When you provide feedback to the query result, it automatically trains the AI model. Effective confidence is the adjusted score with these users' and agents' feedback. Shown as a number value between 0 and 1.
The document's ID where the answer is extracted from.
The document's name where the answer is extracted from.
The hashtags attached to the document.
The page number in the document where the answer was derived.
The date when the document was uploaded.
The feedback from agents (through dashboard and REST calls) about this document.
The feedback from users about this document.
If returnPreview is true in the request, the html body of the document search preview is displayed.
If returnPreview is true in the request, the css of the document search preview is displayed.
If returnPdfPreview is true in the request, the URL to a PDF preview of the document with the answer highlighted is displayed. Note that the URL can be restricted using the Download IP Allowlist setting.
If the answer is found from a folder under the Documents database, the folder name will be returned here.
List of the agents' email who has the editor access to the documents (if they're set in the Alli dashboard).
List of the agents' email who has the viewer access to the documents (if they're set in the Alli dashboard).
A UUID that can be used for follow-up questions when isStateful is true.
Suggested follow-up question for the user when isStateful is true.
The detected intent of the query.
If clues is true in the request, the sources used to generate the answer are returned here.
Bad request
Unauthorized
Rate limit exceeded
Your API key for authentication
Optional: Email of the agent to use for this request
Optional: Email address to associate with the user
Optional: User ID to identify or create a user
Question to search for in the document base
Determines how many related pages to retrieve. The default value is 3.
This is the weight for keyword search. The higher this value, the more the keyword score is reflected. Values between 0-9 are appropriate, with a value of 0 meaning keyword search is not used. The default value is 9.
This is the weight for semantic search on document content. The higher this value, the more it is reflected. Values between 0-9 are appropriate, with a value of 0 meaning semantic search on document content is not used. The default value is 1.
This is the weight for semantic search on document titles. Similarly, values between 0-9 are appropriate, with a value of 0 meaning semantic search on document titles is not used. The default value is 0.
Filter results to include only documents with these hashtags
Logical operator for hashtags (default is "or")
Filter results to exclude documents with these hashtags
Logical operator for exclude_hashtags (default is "or")
Names of folders to search within
IDs of folders to search within
IDs of specific knowledge bases to search within
Whether to extract and use keywords for search
Whether to use feedback data to improve search results
Overrides the project's cognitive_config.use_reranker for this request. When omitted, the project config value is used.
Overrides the number of candidate pages passed to the reranker. Only effective when reranking is enabled. Defaults to 16 when omitted.
Overrides the maximum token length per candidate sent to the reranker. Only effective when reranking is enabled. Defaults to 1024 when omitted.
Successfully retrieved results
Invalid parameters
Internal server error
Last updated