This document outlines the process flow for using the AI feature within Bold BI to generate visualizations from user queries via natural language processing (NLP).
1. AI Feature Interface
Users can interact with the AI feature interface to submit natural language queries.
This interface allows users to request visualizations by describing their requirements in a simple query format.
2. Input Preparation
Once a query is submitted, it is sent to the Bold Dashboard Service.
The service prepares the input by combining the user’s query with the datasource metadata which will include the customer datasource details such as Table names, columns and their data type.
3. Prompt Creation
The prepared input (user query + datasource metadata) is then passed to the Bold AI Service for prompt creation.
A prompt is formulated to contact the large language model (LLM) from OpenAI, requesting an AI-generated response based on the user’s input.
4. LLM Processing
The created prompt is processed by the selected LLM, which generates a raw AI response.
This response contains potential data for visualization or appropriate response for the user’s query.
5. Extracting Visualization Properties
The raw AI response is then analyzed to extract visualization properties, which include information about the type of chart and fields to build the visualization.
6. Converting to Bold BI Visualization Properties
The extracted visualization properties are converted into a format that is compatible with Bold BI.
7. Validation of Visualization Properties
The converted visualization properties are validated to ensure they align with the data structure and user preferences.
8. Data Fetching
Once the visualization properties are validated, the required data is fetched from the Bold Datastore or a Live Database.
An SQL query is generated to retrieve the relevant data for the requested visualization.
9. Creating and Rendering Visualizations
The visualization is created based on the retrieved data and the validated properties.
Finally, the Bold BI Dashboard renders the visualization, which the user can interact with or further customize its properties.
Data Processing
Data Stored For Error Tracking
User Query
Table Schema
AI Response
UserEmail
UserName
Bold BI Site URL
This data is stored in a secure PostgreSQL database running in our cloud environment and will be used for error monitoring to track failed queries and for technical support.
NOTE: All stored data is retained for a maximum of 90 days, after which it is automatically deleted to ensure compliance with data retention policies and user privacy.
Data Sent To LLM For Response Generation
In order to generate widget for user query, the AI Assistant sends the following information to the LLMs. This information includes:
User query
Table Names
Column Names
Data Type
NOTE: No actual data from the tables is sent to the LLMs—only the table schema (table and column names, field types, and data types) is shared to ensure data security.