Upload & Ask
Motivation
The Upload & Ask interface allows users to upload documents that are not part of the existing knowledge base or to limit the search scope to specific documents. This functionality is crucial when you need to focus exclusively on certain documents for precise and relevant information retrieval. The primary motivation is to enable users to chat exclusively with the uploaded document(s), ensuring that the responses are based solely on the content of these documents. This feature is particularly useful for summarizing large documents that exceed the context window of large language models, as it allows for multiple rounds of summarization to handle extensive content effectively.
Goal
The goal of the Upload & Ask assistant is to facilitate in-depth conversations and queries against specific documents uploaded by the user. By restricting the AI's responses to the content of these documents, users can obtain precise and relevant information, enhancing the accuracy and focus of their interactions.
Structure and Logic of Assistant
Document Upload:
Users can upload one or multiple documents directly through the chat interface.
These documents are then ingested by the system.
Ingestion and Processing:
The uploaded documents are chunked appropriately for processing.
The content is semantically embedded to facilitate effective searching and summarization.
Functionality:
Document Search: Users can perform a semantic and full text search within the uploaded documents to find specific information, similar to Internal Knowledge Search with the limitation of the scope.
Document Summarisation: Users can request summaries of the uploaded documents, with the system capable of handling long documents through iterative summarisation processes.
Image interpretation: Users can request summaries or queries on uploaded images.
Image interpretation requires a multi-modal model like GPT_4o.
Required and optional modules
The following modules are required/optional for this assistant:
Required | Optional |
---|---|
Image Upload (needs |
Ingestion Configuration for Assistant
Space admins can define an ingestion configuration for the Upload & Ask assistant on the space management page in the Advanced Settings
section (note that by default the ingestionConfig
is empty, e.g. {} like in the following screenshot):
When a user uploads a file into a space where an ingestionConfig
is defined, the backend receives and applies the ingestionConfig
.
If ImageUpload
is to be added to this assistant, you will need to add “imageUpload": true,
to the advanced settings to be able to upload images.
Example AI Assistant Configuration
The upload toggle in the space settings needs to be activated to allow document upload to the chat.
Download the provided TXT file and upload it into a new space as an AI Assistant configuration.
Note: By setting
"scopeIds": [ "UPLOAD_ONLY" ]
, we limit the response to only the uploaded documents. If the answer should include documents of a specific scope in addition the the uploaded once, adjust this parameter accordingly. You will need to set this parameter forDocument Summarizer
andDocument Search
modules.
An alternative configuration using Document Search V2
, Document Summarizer V2
and Image Upload
modules can he found below.
Author | @Sadique Sheik |
---|
© 2024 Unique AG. All rights reserved. Privacy Policy – Terms of Service