AI Assistant in Seeq Data Lab
The Seeq AI Assistant in Formula and Seeq Data Lab are available for SaaS customers on R64 and later. If you donât see it already, file a support request to have it enabled.
The AI Assistant in Seeq Data Lab is a tool that leverages LLMs (Large Language Models) to perform tasks such as generate code, help debug, review and assist with your Python code directly in the cells of your notebook, this functionality can be accessed via the toolbar buttons (see buttons enclosed in red rectangles) or through a chat panel on the right.
The AI Assistant in Seeq Data Lab is available in âAdvancedâ mode, which can be enabled in the upper right corner.
AI Assistant in Seeq Data Lab within notebook cells
There are three buttons in the notebook toolbar to utilize the AI Assistant. The AI Assistant will respond to the currently selected code cell when these buttons are used.
These three functions of this AI Assistant empower Data Lab users with an enhanced coding experience. The first button helps create code by providing answers from natural language to turn SMEs' analysis ideas into interpretable code with detailed explanations. The second button helps debug and provide code fixes in one simple click. This could include helping the user navigate fresh new python packages for advanced analytics or assisting when existing code breaks from changing data source structure or supporting code refactors. The last button can help with learning and improvement, the AI Assistant reviews the code and provides detailed explanations.
Not only can using the AI Assistant in Seeq Data Lab help with the analysis at hand for the user, but over time users can learn from the interactions and become more effective Data Lab user and data scientist.
Ask questions within your notebook </>â¨
The first button is to âAsk the Seeq AI Code Assistant to answer the question in the active cellâ and is displayed as a â</>â¨â. The intention for this function is so that users can quickly ask a question of the assistant to complete or provide some code in the cells below to assist with their analysis. It can be used as a starting point when the user knows what analysis they wish to perform but doesn't know exactly how to start or the right python code to achieve their idea. In addition it can be used throughout your existing analysis to improve current workflows or assist users get past technical roadblocks.
An example is shown in the figure below, the assistant starts by streaming an explanation or summary of the answer in a markdown cell below your active cell. After this it then provides python code to meet your objective in a second code cell below, after the Seeq AI Assistant has finished responding you can directly run that provided code in your notebook. The Seeq AI assistant has access to all code cells above the active cell and incorporates that knowledge to use current variable names and endeavors to align with your analysis flow.
Debug your notebook analysis đ˘Ľâ¨
The second button is to âAsk the Seeq AI Code Assistant to debug the code in active cellâ and is displayed as a âđ˘Ľâ¨â. The function here seeks to improve the typical python problem solving, in place of google and stack overflow this function can provide code fixes in one click.
In the figure below we showcase a very simple example to illustrate the workflow, the assistant receives your code in the active cell and its error stack trace. The assistant starts by streaming a detailed explanation of both the error it sees and a solution to the problem in a markdown cell below your active cell. After this explanation it then generates a code cell with the suggested fixed python code which can be directly run in your notebook to validate the code is now working.
Review and suggest improvements đâ¨
The third button is to âAsk the Seeq AI Code Assistant to review the code in the active cellâ and is displayed as a âđâ¨â. This function can help the user improve their own code or if they receive a notebook analysis from a colleague and the code comments are limited it can assist the user to get up to speed quickly.
An example is shown in the figure below, the AI Assistant reads your active cell and provides a detailed explanation of your code in a markdown cell below followed by a code cell after that with the suggested improve code.
AI Assistant Chat
If you prefer a conversation with an AI Assistant, click on the speech bubble icon on the far right to expand the chat side panel with the option to access two distinct Seeq AI Assistants. The Code Assistant is optimized to assist you while coding in Data Lab. The Seeq Assistant can help with non-code questions about Seeq Workbench and Organizer.
Chat interface
After clicking on one of the agents the user can type out a question in the dialog box at the bottom of the chat panel and send for a response from the AI Assistant in Seeq Data Lab. The response is streamed to the user and any code mentioned in the answer is displayed in a code box with a copy button on the right corner of the code box and also an arrow icon that will inject that code box into a new cell below the current active cell in your analysis notebook where it can be run straight away. The assistant has memory of the entire conversation and uses this memory as context for subsequent questions within the conversation.
The code agent is similar to the âaskâ function button in the notebook tool bar for the Code Assistant, but in the chat interface, you can have a back and forth conversation that is more effective at tackling more complex problems that require a step by step approach. For example the user might ask âwhat are the top 5 time series smoothing methodsâ, the agent will respond with five leading analytics methods and the user can pick which is most applicable to their application and follow up with a question on how to proceed with method âAâ in their notebook on their dataset.
History
In the top right of the chat panel is the history icon that allows the user to retrieve a previous conversation and pick off where the user left off. The icon of the type of agent used in that conversation is displayed along with the first question from the user. This history is stored in the Data Lab instance and never shared outside a customer's Seeq instance. Each userâs history can only be seen by that user, connected via their Seeq account. The user can delete each conversation via the trash bin icon to the right of each conversation history.
Feedback
At the end of each response is a thumbs up and down icon, this allows the user to provide feedback to the AI Assistants if the response is good or bad with an optional feedback text box to provide more detail.
Data Privacy
This tool uses Enterprise-grade Large Language Models (LLMs) that are pre-trained only with publicly available information and do not have any customer private data. Our privacy policy and software controls guarantee that no customer and/or user data can ever be used for training public models or stored outside of Seeqâs environment, which is securely segregated by customer.
Your prompts (inputs) and answers (outputs):
are NOT available to other customers or users.
are NOT used to train or improve models, and the models do NOT learn from your usage.
You own your data
You own your inputs and outputs. You retain all rights to the inputs you provide via this tool.
The Seeq AI Assistants used in this tool do NOT use any customer or user data available in other parts of Seeq - it utilizes only the input (prompt) you provide, the previous inputs and outputs within the current conversation (if any), and various sources of Seeq documentation relevant to providing an answer.
Models have NO memory (they are stateless) but Seeq AI Assistants do securely store conversations for users to allow them to resume previous conversations from their personal history. Conversations from a given user can only be accessed by that user and no one else. You can chose to delete this history at any time using the tool user interface.
Security and Compliance
This tool is part of the Seeq SOC-2 compliance footprint applicable for Seeqâs products and services
Data is segregated and isolated by customer and stored in different environments per customer
Data is encrypted at rest (AES-256) and in transit (TLS 1.2+)
Abuse Analysis
Inputs submitted to the models may be subjected to automated content classifiers that detect platform abuse. Classifiers are metadata about business data but do not contain any business data itself.
Inputs and outputs may be securely stored for up to 30 days to identify platform abuse.
All this information above can be seen in the chat side panel by clicking the information icon next to the history icon in the upper right corner.