This public endpoint handles chat interactions that involve responses generated from document analysis. It allows users to submit query, which the system processes to provide relevant responses by leveraging documents. You can customize the prompt of the model from the admin panel or complete the existing prompt with a dedicated user message.
The query parameter should be a string.
The model parameter is optional and specifies the LLM to use for generating responses. If not provided, a default model configured in the user’s chat settings will be used.
The workspace_ids parameter is optional and specifies the workspace IDs whose documentswill be added to the scope.
The file_ids parameter is optional and specifies the document IDs that will be added to the scope.
The chat_session_id parameter is optional and specifies the chat session ID for follow-up.
The company_scope parameter is optional and specifies if the documents from the user’s company will beadded to the scope.
The private_scope parameter is optional and specifies if the documents from the user’s private collection will be added to the scope.
The tool parameter is optional and specifies the tool to use for the chat with doc session choose between ‘VisionDocumentSearch’ and ‘DocumentSearch’, the default is ‘DocumentSearch’.
The private parameter is optional and specifies whether this chat interaction is private.
The generation_instructions parameter is optional and specifies additional instructions to concatenate with the prompt for generation. These instructions will be appended to the regular prompt.
The extra_body parameter is optional and specifies additional parameters for VLLM structured output. Only ‘guided_*’ parameters are allowed (guided_choice, guided_regex, guided_json, guided_grammar, guided_whitespace_pattern, guided_decoding_backend).
Bearer token authentication
Request serializer for document search endpoint.
Search query to find relevant documents
DocumentSearch, VisionDocumentSearch Private search flag
Include documents from company scope
Include documents from private scope
List of workspace IDs whose documents will be added to scope
List of document IDs that will be added to scope
Model to use for document search
ID of the chat session for context