This article, intended for Admin users and Data Administrators, details the three primary methods for creating and curating knowledge to improve AI-powered analytics in responses. The main goal of this page is to explain the following concepts:

Formal Semantic Modeling

This section outlines the core concepts behind translating raw database structures into a well-defined, business-friendly semantic layer. This allows users to interact with data in familiar business terms.
1

Table and Column Documentation

Properly documenting tables and columns provides foundational context to enable effective analytics. For each table, provide a clear, plain-English description of what the table represents, and include a statement of what each row’s granularity represents, such as, “Each row represents a single sales transaction from a point-of-sale system”. For each column, define a user-friendly Display Name, a Description in business terms, and a Display Format.
For a detailed guide on this topic, please refer to our article Document Tables and Columns.
Image showing the Document Tables interface
2

Defining Entities

An Entity is a business-critical object, such as “Account” or “Product,” represented within the Data Graph. In Wisdom AI, these entities are treated with priority in the chat experience to enhance user understanding and interaction.When an entity is defined, Wisdom AI automatically improves the chat response by:
  • Replacing unintuitive ID columns with human-readable names.
  • Displaying related columns to provide a more complete context.
  • Providing direct, automatically resolved answers.
  • Generating external links to source systems, like Salesforce for an “Opportunity” or Zendesk for a “Case.”
Creating an entity involves grouping columns from one or more data source tables into a logical business object that mirrors a real-world concept. This process includes naming the entity, mapping it to its underlying data tables, and configuring its properties, such as its primary key and the field that will serve as its default display name.Image showing the Entity Mapping option
3

Establishing Relationships

Define the connections between entities to allow for precise data model navigation. Create relationships by selecting the source and target tables and their corresponding attributes. You must configure the relationship’s cardinality (1:1, 1:M, M:M). 
Use join cardinality carefully, as incorrect settings can drastically change query results and lead to missing or duplicated data.
Image showing the Create Relationship modal
4

Creating Metrics

Define standard calculations to enforce consistent business logic and simplify analysis for end-users. This involves creating Metrics, which are quantifiable business calculations, such as Revenue or Conversion Rate, that are defined with SQL expressions and can be reused across the organization.
For a comprehensive guide on this topic, including step-by-step instructions and detailed examples, please refer to our full article, How to Create Metrics.
Image showing the Metrics Tab
5

Data Model Augmentation

Augment your data model with derived tables and columns using standard SQL syntax. Derived Columns and Tables are calculated fields or virtual tables created with SQL to clean, enrich, or simplify complex underlying data. These augmentations can be used to:
  • Clean Data: Standardize formats, handle missing values, fix inconsistencies.
  • Enrich Data: Add business context, derive new metrics, categorize values.
  • Simplify Analysis: Create business-friendly views of complex underlying data.
Image showing the Derived Table

Natural Language Context

This section covers the methods for providing the AI with unstructured, domain-specific knowledge that is difficult to capture in a formal data model, such as business rules or specific terminology.
1

Manual Context Entry

Add domain-specific knowledge, rules, or naming conventions in natural language sentences to guide the AI’s understanding. An example is, “Regions are the same as Territories”. This improves accuracy by helping the system interpret ambiguous terms and captures knowledge that does not exist in the database schema. It is crucial to validate the impact of manual entries by asking a question in the chat interface to see if the response is as expected.
To learn how to add Context, read the article Add Domain-Specific Knowledge. There, you will find an example of how the response changes after you add context.
Image showing the Context Tab
2

Importing Unstructured Knowledge (Beta)

Enhance the AI’s context by importing knowledge directly from existing business and technical documents. This process is handled through the ‘Chat’ experience, which allows for an interactive experience to selectively extract context. Supported information types that can be imported include:
  • ERD Diagrams: Extract entity relationships from diagram images.
  • dbt Files: Import transformation logic and metric definitions.
  • SQL Queries: Learn from existing queries and report definitions.
  • Data Dictionaries: Import field descriptions and business definitions.
  • Business Glossaries: Learn industry and company-specific terminology.
  • CSV files: Import master data, mapping tables, or lists of business entities to learn categorical values and key dimensions (e.g., product catalogs, regional hierarchies, or customer segments).
To learn how to upload CSV files, read the Basic Tutorial. Speak with your WisdomAI representative to enable any of the other features.

Feedback-Based Context

This section describes the continuous learning loop, where direct user feedback on AI-generated responses is used to validate and refine the system’s knowledge and accuracy over time.
1

Creating Reviewed Queries

Create a library of pre-vetted queries by pairing a natural language question with its ideal SQL response. This is the most critical aspect of context for the language model to understand your data. Reviewed Queries are created from the chat experience by giving a “thumb up” to a correct response and then confirming the natural language question that the SQL code answers. This process ensures accuracy and consistency for common business questions.
To learn more about reviewing queries, refer to the Reviewed Queries article.
Image showing the Reviewed Queries tab
2

Advanced Feedback and Corrections

Provide direct feedback to correct the AI and allow power users to refine the underlying SQL, creating a robust knowledge base from user interactions. Users can mark responses as incorrect to flag them for review.
  • SQL Editing for Power Users: Each answer in the chat has an “Edit” button, which allows Admin users to modify the underlying SQL query directly to fix calculation issues, add joins, or modify filters. Edited queries become part of the system’s knowledge base for handling similar questions in the future.
  • Negative Feedback Workflow: Negative feedback is channeled to administrators for review. This is managed through visual indicators that highlight chats with negative feedback, and automatic email notifications that are sent to administrators for prompt attention.
Image showing the Sql Editing Option

Next Steps