Connecting ThoughtSpot to a Semantic Layer: Integration Guide
Learn how to connect ThoughtSpot's search-driven analytics to a semantic layer for governed metrics, AI-powered insights, and consistent business intelligence.
A semantic layer provides unified metric definitions that work across all analytics tools. ThoughtSpot, with its search-driven approach to business intelligence, gains additional power when connected to a semantic layer that ensures consistent, governed metrics match what other tools report.
This guide covers connecting ThoughtSpot to semantic layer platforms like Codd AI, enabling natural language search against governed enterprise metrics.
ThoughtSpot and Semantic Layers
ThoughtSpot's Approach
ThoughtSpot differentiates through:
- Natural language search for ad-hoc analysis
- SpotIQ AI-powered automated insights
- Search-optimized data modeling (Worksheets)
- LiveQuery for real-time data access
- Embedded analytics capabilities
The Semantic Layer Complement
An external semantic layer enhances ThoughtSpot by providing:
| Benefit | Impact on ThoughtSpot |
|---|---|
| Cross-tool consistency | ThoughtSpot answers match other BI tools |
| Centralized governance | Metric changes propagate automatically |
| Pre-computed metrics | Complex calculations ready for search |
| AI grounding | ThoughtSpot AI uses accurate definitions |
When users search in ThoughtSpot, they query the same governed metrics available throughout the organization.
Connection Architecture
Architecture Pattern
User Search → ThoughtSpot → Worksheet → Connection → Semantic Layer → Data Warehouse
ThoughtSpot connects to the semantic layer as a data source. Worksheets define how ThoughtSpot indexes and searches the semantic layer objects.
Key Components
| Component | Function |
|---|---|
| Connection | Database link to semantic layer |
| Tables | Semantic layer objects imported to ThoughtSpot |
| Worksheets | Search-optimized models referencing tables |
| Answers | User-created visualizations from searches |
| Liveboards | Dashboards combining multiple answers |
Setup Guide
Step 1: Prepare Semantic Layer
Configure the semantic layer for ThoughtSpot access:
- Create service account with read permissions
- Identify objects to expose to ThoughtSpot
- Ensure consistent naming and documentation
- Configure any required network access
Step 2: Create Connection
In ThoughtSpot, create a connection to the semantic layer:
-
Navigate to Data > Connections > Add connection
-
Select connection type matching semantic layer protocol:
- Snowflake
- Databricks
- Google BigQuery
- PostgreSQL
- Other supported databases
-
Enter connection details:
- Host/account information
- Database and schema
- Authentication credentials
- Connection options
-
Test connectivity before saving
Step 3: Import Tables
Import semantic layer objects as ThoughtSpot tables:
-
Navigate to Data > Tables
-
Select the semantic layer connection
-
Choose tables/views to import
-
Configure column settings:
- Data types
- Index preferences
- Attribution settings
-
Run initial data load
Step 4: Create Worksheets
Worksheets optimize data for search:
-
Navigate to Data > Worksheets > Create Worksheet
-
Select tables from semantic layer
-
Configure joins if combining multiple objects
-
Set up columns:
- Display names (business-friendly)
- Column descriptions
- Search optimization settings
- Default aggregations
-
Define formulas if needed (prefer semantic layer metrics)
-
Save and share the Worksheet
Step 5: Configure Search Optimization
Optimize search experience:
Column settings:
- Set high-value columns as visible
- Configure attribution for dimensions
- Set aggregation types for measures
- Add synonyms for business terminology
Indexing:
- Enable indexing for search-relevant columns
- Configure index refresh schedules
- Monitor index status
Working with ThoughtSpot Features
Natural Language Search
Users search governed metrics naturally:
"revenue by region last quarter"
"top 10 customers by orders"
"monthly revenue trend"
ThoughtSpot translates searches into queries against the semantic layer. The governed metrics ensure accurate, consistent answers.
Search Suggestions
ThoughtSpot suggests terms based on indexed data:
- Users type partial queries
- ThoughtSpot suggests completions
- Suggestions reference semantic layer columns and values
- Business terminology from semantic layer appears in suggestions
SpotIQ Insights
Enable AI-powered insights on semantic layer data:
- Configure SpotIQ on Worksheets
- SpotIQ analyzes governed metrics
- Automated insights surface anomalies and trends
- Users receive proactive analysis on standardized data
Liveboards
Build dashboards combining semantic layer queries:
- Create Answers from searches
- Pin Answers to Liveboards
- Configure interactions between visualizations
- Set refresh schedules based on data freshness needs
Optimization Strategies
Data Modeling for Search
Optimize Worksheets for search performance:
Denormalized structures:
- Pre-join related semantic layer objects
- Reduce runtime joins for faster search
Search-ready columns:
- Business-friendly names
- Clear descriptions
- Appropriate indexing
Pre-aggregated metrics:
- Import pre-computed aggregations from semantic layer
- Faster response for common queries
Connection Performance
Configure connections for optimal performance:
LiveQuery vs. Import:
- LiveQuery: Real-time access, best for governed metrics that change
- Import: Pre-loaded data, faster search for large datasets
Query optimization:
- Use semantic layer query caching
- Configure connection pooling
- Set appropriate timeout values
Index Management
Manage ThoughtSpot indexes effectively:
- Schedule index updates during low-usage periods
- Monitor index size and performance
- Balance freshness needs with system load
Access Control
Permission Alignment
Coordinate access between semantic layer and ThoughtSpot:
| Semantic Layer Access | ThoughtSpot Configuration |
|---|---|
| Full data access | Read access to all Worksheets |
| Filtered by region | Row-level security by region |
| Specific metrics only | Limited column access in Worksheet |
| No access | No Worksheet sharing |
Row-Level Security
Implement RLS in ThoughtSpot or semantic layer:
ThoughtSpot RLS:
- Configure rules on Worksheets
- Filter data based on user attributes
- Apply consistently across answers
Semantic Layer RLS:
- Filter at query time
- Consistent across all tools
- Centralized management
For comprehensive security, implement RLS at the semantic layer level.
Sharing and Collaboration
Control content sharing:
- Share Worksheets with appropriate groups
- Set Liveboard permissions
- Configure embedding permissions
- Monitor usage and access
Integration with ThoughtSpot Everywhere
Embedded Analytics
Embed ThoughtSpot search in applications:
// Embed search component
const searchEmbed = new SearchEmbed("#container", {
frameParams: {
width: "100%",
height: "600px"
},
dataSources: ["worksheet-guid"], // Semantic layer Worksheet
searchOptions: {
enableSearchAssist: true
}
});
searchEmbed.render();
Embedded experiences use the same governed metrics as standalone ThoughtSpot.
Liveboard Embedding
Embed Liveboards built on semantic layer data:
- Create Liveboards with semantic layer Answers
- Configure embedding security
- Embed in applications
- Consistent metrics in customer-facing and internal tools
Codd AI Integration
Codd AI provides optimized ThoughtSpot integration:
- SQL-compatible endpoints for standard connectivity
- Pre-calculated metrics ready for search indexing
- Governance enforcement on all queries
- Consistent definitions with other connected tools
Connect ThoughtSpot to Codd AI using supported database connectors for immediate access to governed metrics.
Troubleshooting
Issue: Search Returns Unexpected Results
Symptoms: Search answers differ from expectations
Solutions:
- Verify Worksheet configuration matches semantic layer
- Check column aggregation settings
- Review join relationships
- Validate data freshness
Issue: Slow Search Response
Symptoms: Searches take long to return
Solutions:
- Review indexing configuration
- Consider pre-aggregated semantic layer objects
- Check connection performance
- Optimize Worksheet structure
Issue: Data Discrepancies
Symptoms: ThoughtSpot values differ from other tools
Solutions:
- Ensure same semantic layer version
- Check ThoughtSpot formulas vs. semantic definitions
- Validate data refresh timing
- Compare raw queries between tools
Best Practices Summary
- Connect to semantic layer as primary source for governed metrics
- Create Worksheets that reference semantic layer objects directly
- Keep complex calculations in semantic layer - use ThoughtSpot for search optimization
- Configure search-friendly metadata with business terminology
- Align permissions between semantic layer and ThoughtSpot
- Monitor data freshness and configure appropriate refresh schedules
- Leverage SpotIQ for AI insights on governed metrics
Connecting ThoughtSpot to a semantic layer combines natural language search capabilities with enterprise metric governance, enabling anyone to find accurate answers to business questions instantly.
Questions
ThoughtSpot uses Worksheets and TML for native semantic modeling. An external semantic layer provides the governed metrics that ThoughtSpot queries, while Worksheets add ThoughtSpot-specific search optimization and presentation settings.