2024:AI Analyst (Object)

From Grooper Wiki
(Redirected from AI Analyst)

This article is about an older version of Grooper.

Information may be out of date and UI elements may have changed.

2024

AI Analyst is an object in Grooper that facilitates the ability to interact with a document as you might with an AI chatbot.

!!

WARNING!! AI ANALYSTS ARE AI ASSISTANTS IN GROOPER 2025 (AND BEYOND)

AI Analysts are an early attempt at what would become AI Assistants in Grooper. You will not find AI Analysts in any version of Grooper other than 2024

You may download the ZIP(s) below and upload it into your own Grooper environment (version 2024). The first contains one or more Batches of sample documents. The second contains one or more Projects with resources used in examples throughout this article.

About

Given the general open nature of how "chatting" with a document can be, specifying what exactly to do with the AI Analyst is difficult. In fact, finding creative ways to interact with your documents via a chatbot is the whole point. One great usecase for the AI Analyst would be asking for a summary of a documents if you are generally unfamiliar with them otherwise. This could be helpful for a designer wanting to know what to collect from the document, or a reviewer who needs to understand what they need to verify.

Chat with Your Documents

  • AI Analyst is a new node type that spins up a document chatbot.
  • It defines a task-specific LLM assistant used to chat with documents.
  • Selecting one or more documents, users can chat with the assistant in Grooper about the selected documents.
    • Text data from the selected documents are fed into an assistant's knowledge base.
    • Knowledge files are divided into chunks.
    • Embeddings are stored for each chunk.
    • As users enter questions, an embeddings-based search finds chunks of document content relevant to the question and feeds them into the context.
  • Each chat is stored as a child Chat Session organized by user.


How To

Establish an LLM Connector

First, we need to establish an LLM Connector within the Options property on the Root object.

Please visit the LLM Connector article for more information.

Configure the AI Analyst

  1. Right-click on the provided Project.
  2. Choose "Add > AI Analyst" from the pop-out menu.
  3. Name the object in the "Add" window.
  4. Click the "Execute" button.


  1. Click the ellipsis button for the Instructions property.
  2. Add the provided text in the "Instructions" window.
    You are an invoice analyst.  Your job is to answer questions about the selected invoice or invoices documents. Your knowledge files contain the text content of one or more invoices. Each page of content is separated by a form feed character.  When responding, please reference source material and include short verbatim quotes which can easily be linked back to the original knowledge content.
  3. Click the "OK" button.


  1. Click the drop-down button on the Knowledge property.
  2. Select Text Knowledge from the drop-down menu.


  1. Click the ellipsis button for the Predefined Messages property.
  2. In the "Predefined Messages" window click the "Add" button. This will add a "Content" entry to the collection.
  3. Click the ellipsis button for the Content property.
  4. Add the provided text in the "Content" window.
    Summarize this document.

Use the AI Analyst to Chat with Your Documents

  1. Select the provided Batch from the "Batch > Test" folder.
  2. Click on the "Viewer" tab.
  3. Right-click the document from the provided Batch.
  4. Select "Discuss" from the drop-down menu.
  5. Click the drop-down button for the AI Analyst property.
  6. Select the recently created AI Analyst object.
  7. Click the "Execute" button.


  1. Selected documents will be displayed in the top-right of the UI. ALl text from all documents will be submitted to the AI. A selection here only affects what is shown in the "Document Viewer".
  2. A custom prompt can be written in the bottom portion of the UI.
  3. Above the prompt entry are interaction controls for the chat session.
  4. Click the "Predefined Messages" button.


  1. Select the predefined message from the "Send Predefined Message" window.
  2. Click the "OK" button.


  1. The selected predefined message will be inserted in the prompt area.
  2. Click the "Submit" button to engage the AI chatbot.
  3. Upon submission the "User" message will be sent and displayed in the top-left portion of the UI.
  4. The AI response will be displayed beneath the "User" prompt.


  1. A Chat Session object will be created as a child to the AI Analyst object. These objects are user specific and only visible to the user that started the chat session.
  2. With the Chat Session object selected you can click on the "Chat" tab to continue chatting with the AI.


  1. With a chat session started the "Chat" page can now be used.
  2. You can select the chat session on the left side of the UI.
  3. You can choose to delete the chat session.
  4. You can also view properties of the chat session by clicking the "Properties" button.
  5. In the "Chat Session" window you can click the ellipsis button for the Documents property to open the "Documents" window.
  6. In the "Documents" window you can select the documents viewed and submitted in the chat session.