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

  1. Document Upload:

    • Users can upload one or multiple documents directly through the chat interface.

    • These documents are then ingested by the system.

      image-20240518-081643.png
  2. Ingestion and Processing:

    • The uploaded documents are chunked appropriately for processing.

    • The content is semantically embedded to facilitate effective searching and summarization.

  3. Functionality:

Image interpretation requires a multi-modal model like GPT_4o.

image-20240518-082126.png

Required and optional modules

The following modules are required/optional for this assistant:

Required

Optional

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 for Document Summarizer and Document 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 PolicyTerms of Service