Skip to content

Commit fac6d38

Browse files
authored
docs: Agentic analytics (#10124)
* docs: Agentic analytics * CUB-820 * CUB-873
1 parent 77bbe2e commit fac6d38

20 files changed

+1896
-12
lines changed

docs/pages/product/_meta.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
"auth": "Access control",
88
"apis-integrations": "APIs & integrations",
99
"workspace": "Workspace",
10+
"agentic-analytics": "Agentic analytics",
1011
"deployment": "Deployment",
1112
"distribution": "Distribution"
1213
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
"spaces-agents-models": "Spaces, agents, models",
3+
"agent-rules": "Agent rules",
4+
"memory-isolation": "Agent memories",
5+
"user-attributes": "User attributes",
6+
"roles-and-permissions": "Roles & permissions",
7+
"changelog": "Product updates",
8+
};
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
# Agent Rules
2+
3+
_Understanding Agent Rules configuration and behavior in Cube._
4+
5+
Agent Rules in Cube provide a powerful way to customize and control how AI agents behave within specific spaces. Rules act as contextual instructions that guide agents' responses and analysis, ensuring consistent behavior aligned with your business logic and domain expertise.
6+
7+
## Rule Types
8+
9+
### Always Rules
10+
11+
**Always Rules** are automatically applied to every agent interaction within the space, regardless of the specific query or context.
12+
13+
**Use Cases:**
14+
- Fundamental business definitions and context
15+
- Consistent calculation methods
16+
- Default analysis approaches
17+
- Domain-specific terminology
18+
19+
**Example Always Rules:**
20+
```
21+
Sales efficiency is deal size divided by sales cycle length
22+
```
23+
24+
```
25+
When analyzing customer data, always consider seasonality patterns from our retail business
26+
```
27+
28+
```
29+
Revenue should be calculated using our standard GAAP accounting principles
30+
```
31+
32+
### Agent Requested Rules
33+
34+
**Agent Requested** rules are conditionally applied when the agent determines they are relevant to the current query or analysis. The agent intelligently selects which rules to use based on the context.
35+
36+
**Use Cases:**
37+
- Specialized analysis techniques
38+
- Context-specific guidance
39+
- Advanced calculation methods
40+
- Scenario-specific instructions
41+
42+
**Example Agent Requested Rules:**
43+
```
44+
If you asked to analyze sales efficiency start with correlation to WSE
45+
```
46+
47+
```
48+
For customer segmentation analysis, use RFM methodology (Recency, Frequency, Monetary)
49+
```
50+
51+
```
52+
When analyzing marketing performance, compare against industry benchmarks where available
53+
```
54+
55+
## Best Practices
56+
57+
### Rule Hierarchy and Organization
58+
59+
- **Start with Always rules** for fundamental business context
60+
- **Use Agent Requested rules** for specialized scenarios
61+
- **Keep rules specific and actionable** rather than vague
62+
- **Test rules** with actual queries to ensure they work as expected
63+
64+
### Writing Effective Rules
65+
66+
**Good Rule Examples:**
67+
- "Customer churn rate should be calculated as customers lost / total customers at start of period"
68+
- "When analyzing quarterly performance, always compare against same quarter previous year"
69+
- "For financial analysis, use our fiscal year starting in October"
70+
71+
**Poor Rule Examples:**
72+
- "Be helpful" (too vague)
73+
- "Always be accurate" (redundant)
74+
- "Consider all factors" (too broad)
75+
76+
### Domain-Specific Rules
77+
78+
**E-commerce Example:**
79+
```
80+
Always Rule: "Customer lifetime value equals average order value × purchase frequency × customer lifespan"
81+
Agent Requested: "For cart abandonment analysis, segment by device type and traffic source"
82+
```
83+
84+
**SaaS Example:**
85+
```
86+
Always Rule: "MRR growth rate should exclude one-time charges and setup fees"
87+
Agent Requested: "When analyzing churn, differentiate between voluntary and involuntary churn"
88+
```
89+
90+
### Contextual Guidance
91+
92+
Rules should provide context that agents might not inherently understand about your business:
93+
94+
```
95+
Always Rule: "Our peak season is Q4, with 40% of annual revenue typically occurring in December"
96+
Agent Requested: "For inventory analysis, consider our 6-week lead time for international suppliers"
97+
```
98+
99+
## Rule Conflicts and Resolution
100+
101+
### How Cube Handles Conflicting Rules
102+
103+
Based on the rule configuration system, when multiple rules could apply to the same query, the conflict resolution strategy would likely include:
104+
105+
1. **Rule type hierarchy** (specific behavior needs verification)
106+
2. **Rule specificity** - more specific rules typically override general ones
107+
3. **Rule order** - the system may consider rule creation order or explicit priority
108+
4. **Agent decision-making** for complementary vs conflicting guidance
109+
110+
### Example Conflict Scenarios
111+
112+
**Scenario 1: Direct Contradiction**
113+
```
114+
Rule A (Always): "Revenue recognition follows monthly billing cycles"
115+
Rule B (Always): "Revenue should be recognized quarterly"
116+
117+
Resolution: The agent will flag this conflict and may ask for clarification
118+
```
119+
120+
**Scenario 2: Complementary Rules**
121+
```
122+
Rule A (Always): "Sales efficiency is deal size divided by sales cycle length"
123+
Rule B (Agent Requested): "When analyzing sales efficiency, include pipeline velocity metrics"
124+
125+
Resolution: Both rules work together - B provides additional context to A
126+
```
127+
128+
**Scenario 3: Specificity Override**
129+
```
130+
Rule A (Always): "Use standard deviation for all variance calculations"
131+
Rule B (Agent Requested): "For customer behavior analysis, use median absolute deviation instead of standard deviation"
132+
133+
Resolution: Rule B takes precedence for customer behavior queries due to higher specificity
134+
```
135+
136+
### Best Practices for Avoiding Conflicts
137+
138+
1. **Review existing rules** before adding new ones
139+
2. **Use specific triggers** in Agent Requested rules
140+
3. **Test rule combinations** with sample queries
141+
4. **Document rule intentions** clearly
142+
5. **Regular rule audits** to identify and resolve conflicts
143+
144+
## Current Limitations
145+
146+
### Current State: Space-Level Rules Only, Always Rules Only
147+
148+
- Rules are currently configured at the **Space level**
149+
- All agents within a space inherit the same set of rules
150+
- Individual agent customization is not yet available
151+
152+
## Getting Started
153+
154+
1. **Assess Your Use Case**: Identify the key business context and calculations your agents need to understand
155+
2. **Start Simple**: Begin with 2-3 Always rules covering your most important business definitions
156+
3. **Add Specificity**: Implement Agent Requested rules for specialized scenarios
157+
4. **Test and Iterate**: Use real queries to validate rule effectiveness
158+
5. **Scale Gradually**: Add more rules based on actual usage patterns and feedback
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
# Product updates
2+
3+
_New updates and improvements._
4+
5+
## August 25, 2025
6+
7+
### Pivot Tables
8+
9+
Added pivot table functionality for creating multi-dimensional data summaries. Users can click "Pivot" on dimensions in the data sidebar or column header to pivot by that dimension.
10+
11+
### TODO lists for AI Agents
12+
13+
AI agents now include todo list tools for task management and workflow planning. TODO lists helps agents tackle more complicated tasks, e.g. building multiple data models or reports.
14+
15+
### User Impersonation for Admins
16+
17+
Administrators can now impersonate users. It is helpful for testing access policies and troubleshoot issues.
18+
19+
### Visualizations Improvements
20+
- **Updated color palette**: Refreshed visualization color schemes for better clarity and aesthetics
21+
- **Vega spec improvements**: Better conversion from Vega specifications to chart configurations to enable AI agents to customize more chart elements, e.g. data labels.
22+
23+
## August 18, 2025
24+
25+
### New Chart Type: KPI
26+
27+
We've expanded our visualization capabilities with the addition of KPI charts, perfect for displaying key metrics and performance indicators in your dashboards and reports.
28+
29+
### Favorite Workbooks
30+
31+
You can now mark workbooks as favorites for quick access to your most important analytics. This makes it easier to organize and navigate through your growing collection of workbooks.
32+
33+
### Various Improvements
34+
35+
- **Embed session improvements**: Enhanced session exchange for embedded analytics
36+
- **Performance optimizations**: Fixed workbook tracking to reduce unnecessary API calls
37+
38+
## August 11, 2025
39+
40+
### Data Modeling
41+
42+
We're bringing Cube Cloud features into the new interface, unifying the data modeling experience in a single modern workspace.
43+
44+
- **Pre-aggregations management**: View and manage pre-aggregations directly from the modeling page, bringing this essential performance optimization tool from Cube Cloud into the new interface
45+
- **Query history**: Access your complete query history directly in the Cube interface, making debugging and analysis seamless without switching between tools
46+
47+
### User Groups
48+
49+
Enhanced collaboration features with improved user and group management capabilities:
50+
- **User groups management**: Create and manage user groups for easier access control and collaboration
51+
- **Workbook activity tracking**: Timestamps now show when users last viewed workbooks and dashboards
52+
- **Group editing improvements**: Fixed and enhanced the group editing interface for smoother administration
53+
54+
### Home Page & Navigation
55+
56+
The home page now includes a search bar, making it easier to quickly find workbooks, data models, and other resources across your workspace.
57+
58+
### Various Improvements & Fixes
59+
60+
- **Streaming improvements**: More graceful error handling during streaming operations with automatic retries
61+
- **Workbook navigation**: Fixed the "go back" behavior for better navigation flow
62+
- **Chat interface**: Restored the new chat button and improved chat functionality
63+
- **Embed endpoint**: Fixed issues with the embed endpoint for better integration capabilities
64+
65+
## August 4, 2025
66+
67+
### Various Improvements & Fixes
68+
69+
Multiple enhancements have been made to improve the overall experience:
70+
71+
- **GPT-5 support**: Added support for the latest GPT-5 language model for more powerful analytics assistance
72+
- **Streaming Chat API**: Improved chat functionality with session and access token mechanics for real-time responses
73+
- **Save to new workbook**: Easily create new workboks from analytics chat
74+
- **Workbook sharing visibility**: New "shared with" column shows which team members have access to each workbook
75+
- **Deployment settings access**: Deployment configuration is now directly accessible from the modeling page
76+
- **Data model formatting**: Use formats directly from your data models for consistent visualizations
77+
- **File operations**: Improved consistency by always using project root for file handling
78+
- **Member title display**: Fixed display issues with team member titles
79+
80+
## July 28, 2025
81+
82+
### New Home Page Experience
83+
84+
We've redesigned the Cube home page to provide a better starting point for your analytics journey. The new interface offers improved navigation and faster access to your most important workbooks and data assets.
85+
86+
### View-only Dashboard Sharing
87+
88+
You can now share workbook's dashboard with read-only access, allowing you to collaborate and distribute insights without allowing recipients to make edits. This is perfect for sharing analytical findings with stakeholders or providing data access to team members who need to view but not modify your work.
89+
90+
### AI Chat Improvements
91+
92+
Chat functionality has been significantly improved with several new capabilities:
93+
- **Rolling chat history summarization**: Long conversations are now automatically summarized to maintain context while improving performance
94+
- **Chat renaming**: You can now rename your chat sessions for better organization
95+
- **Agent selection improvements**: Enhanced interface for selecting and working with different AI agents
96+
97+
### Workbook Improvements
98+
99+
Managing your workbooks is now more intuitive with these new features:
100+
- **Drag and drop tab ordering**: Reorder report tabs within workbooks by simply dragging them to new positions
101+
- **Improved validation**: Better error messages and validation for workbook filters
102+
- **Search functionality in Data Pane**: Quickly find specific data assets, dimensions, or measures with the new search feature
103+
- **Date grain selection**: Pick specific date granularities directly in the Data Pane for time-based analysis
104+
- **Relative date filters**: Create dynamic date filters using relative expressions like "last 30 days" or "current quarter"
105+
- **Chart fixes**: Resolved various visualization issues for more reliable chart rendering
106+
- **SQL generation**: Fixed issues with time dimension queries and filter suggestions
107+
108+
## July 21, 2025
109+
110+
### Analytics Chat Embed
111+
112+
You can now embed the AI-powered analytics chat directly into your applications! This allows you to provide users with a guided, semantic-layer-aware data assistant anywhere in your product or portal.
113+
114+
Learn more in the [Chat Embed docs](/cube/embed/embed/chat).
115+
116+
### Query Data Sources in Workbook
117+
118+
You can now query your data sources directly in workbooks. Our AI agent researches your data source, helps you build queries, and refines results in real-time.
119+
This capability is particularly useful for prototyping queries and conducting analysis with AI assistance before converting them formal data models.
120+
121+
Learn more in the [Source SQL docs](/cube/workbooks/source-sql).
122+
123+
124+
### Various Improvements
125+
126+
Multiple enhancements have been made to improve the user experience:
127+
- **Display titles option**: You can now choose to display titles on your visualizations and components
128+
- **Enhanced filtering**: Equals and not equals filters now include an "(All)" option for easier bulk selections, plus improved multi-select filter components
129+
- **Better error handling**: Overloaded system errors now provide clearer, user-friendly messages
130+
- **Improved network resilience**: Enhanced connection handling for BYOC deployments and API access fixes
131+
- **UI refinements**: Various layout fixes, better workbook handling, and improved chart functionality
132+
133+
## July 14, 2025
134+
135+
### Dashboards
136+
137+
The biggest addition this week! You can now create interactive dashboards that combine multiple visualizations, filters, and content into comprehensive data applications. Build rich, multi-widget dashboards directly within Cube to tell complete data stories.
138+
139+
Key features include:
140+
- **AI-powered creation**: Dashboards can be created and edited by AI agents
141+
- **Multi-widget layouts**: Combine charts, tables, filters, and text in flexible grid layouts
142+
- **Interactive filters**: Add dashboard-level filters that affect all connected visualizations
143+
- **Text widgets**: Include markdown-formatted text, titles, and explanations
144+
- **Responsive design**: Dashboards automatically adapt to different screen sizes
145+
146+
147+
Learn more in the [Dashboards docs](/cube/workbooks/dashboards).
148+
149+
### Chart Templates
150+
151+
Chart Pane now has quick templates for common visualizations including bar charts, line charts, scatterplots, pie charts, donut charts, and boxplots. These templates make it faster to create charts with the right data fields automatically mapped.
152+
153+
Learn more in the [Chart Templates docs](/cube/workbooks/charts/chart-templates).
154+
155+
### Table Charts
156+
157+
Introducing table charts as a new visualization type! You can now create data tables directly within workbooks and add them to dashboards. Table charts provide a clean, structured way to display your data alongside other visualizations.
158+
159+
Learn more in the [Table Chart docs](/cube/workbooks/charts/table-chart).
160+
161+
### Folders in Data Pane
162+
163+
Organize your data assets better with folder support in the Data Pane. You can now group related semantic views, dimensions, and measures into folders for easier navigation and better organization.
164+
165+
### Chats History for Admins
166+
167+
Admins now can access users chat history in <Btn>Admin → Chats History</Btn>. It's possible to search specific chats by the first message content or chat UUID.
168+
169+
Learn more in the [AI docs](/cube/administration/ai).
170+
171+
### Various Filtering Improvements in Workbooks
172+
173+
Several enhancements to filtering capabilities have been made.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Agent Memories
2+
3+
_Learn how Cube enforces memory isolation across tenants, spaces, and users._
4+
5+
Memory in Cube allows Agents to learn from and recall past interactions, user preferences, and contextual information. When users interact with Agents, relevant information is stored as memories that can be retrieved in future conversations, enabling more personalized and context-aware responses. Memories help Agents understand user preferences, remember previous decisions, and provide continuity across sessions.
6+
7+
Memories are scoped and enforced at the Tenant/Space boundary. Cube applies both application-layer and (optionally) infrastructure-layer isolation so one customer's end users cannot see another customer's memories.
8+
9+
## How It Works
10+
11+
### Space-Scoped Memories
12+
13+
Cube memories are stored at the Space level. Agents only learn from and retrieve memories within the current Space, ensuring no cross-Space exposure by design.
14+
15+
### Tenant-Aware Security Context
16+
17+
Every request carries a tenant-bound security context (JWT). Cube maps that context to an app/tenant ID and uses it across caching, orchestration, and query flows. This is the backbone of multi-tenancy isolation.
18+
19+
### RBAC and Policy Guardrails
20+
21+
Role-based access policies gate what entities and content are visible within a tenant. These same guardrails apply to what agents can read and write as memories.
22+
23+
### Data Model and API Isolation
24+
25+
Even when using the SQL API or custom views, hidden members and non-public entities remain inaccessible. Multitenancy configuration ensures queries and artifacts resolve only within the current tenant's scope.
26+
27+
### Optional Infrastructure Isolation
28+
29+
Many customers run in shared multi-tenant regions, but dedicated infrastructure and BYOC (Bring Your Own Cloud) variants are available. These provide stronger blast-radius isolation at the cluster, storage, and key-management levels.
30+
31+
## Practical Implications
32+
33+
- **Tenant Separation**: An end user in Customer A can only create and retrieve memories in Customer A's Spaces
34+
- **Cross-Tenant Protection**: Memories are not retrievable by Customer B's users or agents, because requests from B carry a different security context and resolve to different Space and tenant IDs
35+
- **Intra-Tenant Controls**: Even within a customer, RBAC and policies can further restrict which users or agents can contribute to or benefit from memories
36+
37+
## Technical Implementation
38+
39+
Cube ensures memory isolation through multiple layers of security controls:
40+
41+
1. **Tenant Isolation**: Every request is scoped to a specific tenant via JWT and middleware
42+
2. **User Isolation**: Additional user-level filtering for user-mode memories
43+
3. **Automatic Filtering**: Database queries are automatically filtered by tenant using decorators
44+
4. **Vector Store Security**: All vector searches include tenant and user filters
45+
5. **Container Isolation**: Each tenant gets its own dependency injection container
46+
6. **JWT Security**: All security context comes from cryptographically signed JWT tokens
47+
7. **Memory Mode Controls**: Configurable memory isolation levels (user/space/disabled)

0 commit comments

Comments
 (0)