Skip to content
Blogs
Hex logo

Hex

Engineering blog · hex.tech/blog

97posts0this week0watchers

Feature trails

38
Feature trailActive

AI-Powered Analytics Use Cases

Hex is advancing its AI analytics capabilities by detailing six production-ready use cases: conversational analytics for instant data answers, AI-generated dashboards and apps for reusable assets, automated reporting that goes beyond simple refreshes to proactive investigations, advanced analysis democratizing analyst tools, accessible forecasting and predictive analytics, and proactive monitoring to identify issues before they are reported. The platform emphasizes the importance of trusted data, business context, inspectable logic, and monitoring for successful AI analytics deployment. Future work focuses on making AI analytics work at scale.

1 post · 2026

Timeline

Feature trailActive

AI-Assisted Software Development Workflow

Hex has evolved its development workflow by integrating AI coding agents to significantly accelerate the rewrite of foundational systems. This involved changing approximately 250,000 lines of code over four months. The process highlighted the iterative nature of software development, the critical importance of vigilant API boundary management, and the need for agents to leave explicit TODOs for phased implementation. The platform also introduced statically verifiable exit criteria for agent tasks and emphasized a single-agent-at-a-time approach for optimal productivity. Specific code sections were designated as 'black boxes' where agents could operate with less oversight due to their contained complexity. The human role in reviewing and owning the code, even when generated by AI, was reinforced, emphasizing clear communication about contributions and areas of focus.

1 post · 2026

Timeline

Feature trailActive

Agent Caching Optimization

Hex has evolved its agent capabilities by introducing a credit model for Hex Agents, including monthly credit grants per user seat type, and the ability to purchase pooled add-on credits with auto top-ups and spend limits. The consumption is effort-based, with different models offering varying cost-efficiency. Users gain visibility into their credit balance and prompt-level usage, while Admins have access to workspace-wide usage logs, spend limits, and granular control over add-on credit allocation. This post details further optimizations to reduce the cost per conversation by 75% through a combination of leveraging cheaper LLM models (e.g., Luna, Kimi) validated by the DataBench benchmark, improving agent efficiency via harness optimizations (cache miss reduction, progressive tool disclosure, subagents, Hero agent for analyzing user interactions), and a code-first rewrite (Hex 4.0) simplifying the toolset for the agent.

5 posts · 2025–2026

Timeline

20252026
Feature trailActive

Agent Evals

Hex has evolved its agent capabilities by introducing Evals, a testing workflow inspired by internal practices, now available to users. Evals allow for grading agent work beyond just answers, using an LLM-as-judge to assess tool usage, reasoning, and behavior. Test cases are defined in version-controlled files and run from the Hex CLI. Context changes can be tested safely via Context Previews before publishing. Evals enable measurement and improvement of agent quality and cost, helping to test c. The Hero system further enhances this by autonomously analyzing real-world agent trajectories to identify hard and soft failures, clustering these findings to identify root causes, and then collaborating with agents to remediate issues and create new test cases, creating a recursive self-improvement loop for Hex's agents.

18 posts · 2023–2026

Timeline

20232026
Feature trailActive

Generative Data Apps

Hex has evolved its generative data apps by allowing users to make precise, point-and-click edits to visualizations within generated apps without needing to prompt an agent. This feature adds a 'Style' button to visualizations, enabling users to modify chart titles, series colors, axis labels, and legend placement directly. This breaks the tradeoff between the flexibility of code generation and the precision of traditional chart controls, enhancing the usability and maintainability of AI-generated applications.

8 posts · 2026

Timeline

Feature trailActive

Data Integrations

Hex has evolved its data integration and semantic capabilities by enhancing how users can bring their data and tools into Hex for seamless analytics and data operations. This includes direct connections to data warehouses, local file uploads, metadata and semantic layer tools, data cataloging and observability platforms, code sync and versioning tools, machine learning frameworks, and orchestration/workflow tools. Hex now allows users to build governed semantic models for their data, defining tr

20 posts · 2023–2026

Timeline

20232026
Feature trailActive

AI Gateway

Hex has evolved its AI capabilities by integrating with Snowflake Cortex, allowing users to leverage Claude models directly within their Snowflake instances. This integration enhances control, governance, and observability for AI workloads, keeping data within the customer's Snowflake account. Users can already call Cortex functions in SQL and add Cortex APIs to Python cells in Hex, and soon will be able to back Hex's Magic tools with Claude 3.5 on Cortex. This post details the concept of an AI gateway and the five essential layers for AI-native analytics: Infrastructure, Foundation Models, Orchestration and Tooling, Interface and Applications, and Governance. It emphasizes how Hex integrates these layers to provide a unified and governed AI experience for data teams.

2 posts · 2026

Timeline

Feature trailActive

Behavioral Segmentation

Hex has evolved its data analysis capabilities by detailing six patterns for behavioral segmentation, focusing on how data teams write SQL and Python to group users by their actions. This includes RFM analysis, cohort retention, engagement scoring, lifecycle stage segmentation, product-qualified lead scoring, and churn risk detection. The post emphasizes building trustworthy segments at scale and making them actionable beyond the data team, covering both batch processing and the importance of up

6 posts · 2022–2026

Timeline

20222026
Feature trailActive

Data Efficiency Measurement and Improvement

Hex has evolved its data efficiency capabilities by providing a comprehensive guide to measuring and improving data efficiency. This includes defining data efficiency, outlining key metrics such as storage utilization rate, query latency, cost-per-workload, total cost of ownership, data duplication rate, time-to-insight, and data freshness. It also introduces frameworks for evaluating data efficiency, including cost-model frameworks, data lifecycle frameworks, utilization efficiency models, team

2 posts · 2025–2026

Timeline

20252026
Feature trailActive

Data Federation

Hex has evolved its data integration capabilities by detailing the concept, mechanics, and trade-offs of data federation. This includes explaining how federation engines work with schema hierarchies, source-specific connectors, and query execution lifecycles, emphasizing pushdown optimization. The post contrasts federation with ETL, ELT, and replication, highlighting its use cases in cross-database analytics, regulated environments, multi-cloud setups, and exploratory work. It also details common failure points such as latency compounding, cross-source join limitations, schema drift, and security coordination challenges.

1 post · 2026

Timeline

Feature trailActive

Data Drift Detection and Mitigation

Hex has evolved its data trustworthiness capabilities by introducing comprehensive explanations and strategies for data drift. This includes detailing the causes of data drift (silent schema changes, SaaS platform modifications, third-party format changes, upstream pipeline rewrites, semantic drift), its impact on AI analytics (corrupting answers, passing quality checks while degrading), and methods for detection at the data-team level (statistical tests like KS, Wasserstein distance, PSI, chi-s. This post details data quality monitoring techniques, covering both structural and semantic dimensions, and how AI can be leveraged for automated anomaly detection and validation against learned patterns. It emphasizes integrating these checks into the analytics workflow for continuous assessment of data fitness.

4 posts · 2026

Timeline

Feature trailActive

Underfitting Diagnosis and Mitigation

Hex has evolved its machine learning capabilities by detailing the diagnosis and mitigation of underfitting and overfitting, including strategies for feature selection to prevent overfitting. This involves understanding the bias-variance tradeoff, systematic approaches to fixing issues, and careful feature selection to improve model generalization. This post details using autoencoders for feature selection, a technique that leverages neural networks to learn compressed representations of data, t

7 posts · 2023–2026

Timeline

20232026
Feature trailActive

Customer Data Hub Evolution

Hex has evolved its customer data presentation from a static dashboard (Account 360) to a more dynamic, conversational interface (Threads). This shift allows customer-facing teams to ask direct questions of their data, receive real-time answers, and gain deeper narrative insights into customer behavior and history. The underlying data sources (support tickets, product usage, revenue) remain, but the access and interaction model has been significantly improved for speed and depth of understanding. This post details how to build data apps for customer success questions, enabling guided exploration with guardrails (input parameters), layering in business context automatically, and making insights persistent and shareable through features like app subscriptions, comments, @mentions, version history, and saved filter combinations. It emphasizes choosing the right first use case, designing for exploration, involving customer success throughout the process, and measuring key metrics like time from question to answer and actions taken based on findings.

6 posts · 2024–2026

Timeline

20242026
Feature trailActive

Data Science Maturity and Governance

Hex has evolved its data science capabilities by introducing a framework for assessing and improving data science maturity through a governance lens. This includes defining stages of maturity, providing diagnostic tools to assess current standing across dimensions like prediction access controls, metric definition consistency, AI output inspectability, and decision coverage. It also outlines a stage-by-stage roadmap for implementing governance, starting with documentation and endorsement, progressing to automated policy enforcement and continuous monitoring.

8 posts · 2026

Timeline

Feature trailActive

Ground Truth Management

Hex has evolved its machine learning capabilities by introducing comprehensive strategies and best practices for managing ground truth. This includes defining ground truth, exploring its types (human annotation, expert annotation, behavioral inference, synthetic ground truth), and detailing its role across the ML lifecycle (training, validation, testing, production monitoring). The post highlights the challenges of ground truth, such as label leakage, annotation drift, feedback loops, and distribution mismatch. It also addresses the specific challenges of ground truth for AI analytics, emphasizing the importance of context and governed semantic models. Best practices include treating ground truth as infrastructure, investing in data quality monitoring, and establishing clear processes for data collection, labeling, and validation.

1 post · 2026

Timeline

Feature trailActive

Visualization Subagent

Hex has evolved its generative data apps by introducing a dedicated visualization subagent. This specialized AI agent handles all visualization-related tasks, taking over from the main Hex agent. The subagent is designed to be iterative, focusing on structure first and then style, and is equipped with enhanced perception capabilities to accurately interpret its own output. It utilizes a structured handoff from the main agent, incorporating principles from visualization design to ensure the 'what' and 'why' are passed, not dictating the 'how'. Evaluation is performed using a rubric modeled after VisEval, with specific tests for bug fixes and proactive expansion of capabilities.

1 post · 2026

Timeline

Feature trailActive

AI-Assisted Data Validation

Hex has evolved its data validation capabilities by introducing an AI audit agent. This agent automates the process of validating data changes, incorporating principles of standardization, flexibility, and traceability. It can design and conduct end-to-end audits, suggest relevant models to audit, ensure fresh development schemas, apply noise reduction techniques (like truncating timestamps and rounding floats), and handle large model comparisons by filtering prod data to match dev schema date ranges. The agent acts as a partner, prompting for feedback and flagging discrepancies for review.

1 post · 2026

Timeline

Feature trailActive

ML Model Inference Cost Analysis

Hex has evolved its ML capabilities by providing in-depth analysis of ML model inference costs, contrasting them with training costs. The platform now offers insights into the recurring and scaling nature of inference expenses, which can surpass training budgets. It details optimization techniques such as quantization, pruning, knowledge distillation, and memory access optimization (e.g., FlashAttention) to reduce inference costs without retraining. The post also covers deployment strategies (batch vs. real-time) and the importance of continuous retraining and monitoring for cost management and model accuracy in production environments. Hex enables users to ingest inference logs for cost visualization and analysis, facilitating better infrastructure planning and budget forecasting.

1 post · 2026

Timeline

Feature trailActive

ML Failure Modes

Hex has evolved its machine learning capabilities by detailing common failure modes in production ML systems. This includes addressing data issues like leakage, drift, and label errors, as well as issues related to shortcut learning and system complexity. The post emphasizes that most ML failures are not due to the model itself but rather surrounding architecture, processes, and organizational gaps. It provides strategies for detecting and mitigating these failures, such as monitoring input data distributions, using worst-group-accuracy for testing, and reducing system complexity through careful dependency management.

1 post · 2026

Timeline

Feature trailActive

Exploratory Data Analysis (EDA) Tools

Hex has evolved its data analysis capabilities by providing a comprehensive guide to Exploratory Data Analysis (EDA). This includes detailing EDA techniques such as data profiling, statistical summaries, and visualization, and emphasizing their importance in understanding data before building models or dashboards. The post also highlights how collaborative tools and AI assistants are transforming EDA workflows, enabling faster iteration and insight generation. Best practices for conducting effec

6 posts · 2023–2026

Timeline

20232026
Feature trailActive

Cloud Analytics Architecture

Hex has evolved its data analytics capabilities by detailing the architecture and benefits of cloud analytics. This includes explaining the separation of storage and compute layers, elastic scaling of compute resources on demand, and the role of the services layer in coordinating operations. The post emphasizes how this architecture enables faster workflows, scalability without infrastructure overhead, and enterprise adoption. It also guides users on choosing an approach based on existing data i

5 posts · 2023–2025

Timeline

20232026
Feature trailActive

Embedded Analytics

Hex has evolved its data analytics capabilities by introducing and detailing embedded analytics. This feature allows users to embed Hex applications directly into their own client portals or applications, providing seamless and secure access to data insights within a trusted environment. Key advancements include pass-through authentication for a unified login experience, row-level security to ensure data privacy, and reduced operational burden for internal teams by enabling the reuse of dynamic

13 posts · 2025

Timeline

20252026
Feature trailCooling

Browser Virtualization

Hex has evolved its front-end performance by introducing a custom virtualization solution for its notebooks. This approach, dubbed 'VirtualizedElement,' allows individual cells to manage their own rendering based on viewport proximity, addressing limitations of list-based virtualization libraries like React Virtuoso. This has led to significant improvements in initial render time, interaction lag, page load, render lag, and memory usage, enabling a more performant and scalable user experience.

1 post · 2025

Timeline

20252026
Feature trailQuiet since 2024

Lazy Dataframe Compute Engine

Hex has evolved its compute engine by introducing lazy loading of dataframes using DuckDB and Arrow, significantly improving performance for multi-modal analytics. This new architecture avoids materializing large datasets into local memory for every cell, instead processing data directly via DuckDB queries against Arrow data stored in S3. This results in 5-10x speedups for project runtimes, particularly for projects with heavy SQL and no-code cell usage. The system also lays the groundwork for future optimizations by translating operations into an internal DSL (HexQL) that can be executed by various SQL dialects or pushed down to customer warehouses.

1 post · 2024

Timeline

20242026
Feature trailQuiet since 2023

Time Series Seasonality Detection

Hex enables users to detect seasonality in time series data using autocorrelation, ACF, and PACF. This includes understanding autocorrelation basics, calculating and interpreting autocorrelation values, and applying these techniques to real-world datasets like air passenger data. The platform supports visual inspection via line plots and seasonal decomposition to identify trends, seasonal patterns, and residuals, aiding in business forecasting and decision-making.

2 posts · 2023

Timeline

20232026
Feature trailQuiet since 2023

Scaling Hierarchical Clustering

Hex has evolved its data science capabilities by detailing techniques and tools for scaling hierarchical clustering. This includes exploring the computational and memory challenges of traditional methods, and introducing solutions like sampling, approximation algorithms, and leveraging specialized libraries and distributed computing frameworks such as Fastcluster, Apache Spark, and GPU-accelerated approaches. The post aims to provide practical strategies for applying hierarchical clustering to large datasets.

2 posts · 2023

Timeline

20232026
Feature trailQuiet since 2023

K-Means Clustering

Hex has evolved its data analysis capabilities by providing a comprehensive guide to K-Means clustering. This includes detailing the algorithm's fundamentals, how it works through initialization, assignment, and iterative updates, and key parameters like the number of clusters (K). The post demonstrates practical application using the Iris dataset, covering data loading, cleaning, transformation (scaling and PCA), and methods for selecting an optimal K value such as the Elbow method and Silhouette Score. It aims to empower users to uncover patterns in unlabeled data and categorize datasets into actionable segments.

1 post · 2023

Timeline

20232026
Feature trailQuiet since 2023

Multicollinearity Detection and Remediation

Hex has evolved its data analysis capabilities by providing a comprehensive guide to detecting and remedying multicollinearity. This includes explaining the consequences of multicollinearity on model interpretability and predictive power, and detailing methods for its detection using Variance Inflation Factor (VIF), correlation matrices, heatmaps, clustermaps, and eigenvalues. The post also outlines strategies for fixing multicollinearity, such as removing correlated variables, using dimensionality reduction techniques, or employing regularization methods.

1 post · 2023

Timeline

20232026
Feature trailQuiet since 2023

Jupyter Kernel Internals

This post details the architecture and communication mechanisms of the Jupyter kernel, explaining its role as the computational engine for notebooks. It covers the decoupling of I/O from computation, the benefits of this model (multiple frontends/backends, isolation, performance), and the communication protocols (WebSockets, ZeroMQ) and sockets (shell, IOPub, stdin, control, heartbeat) used between the frontend and kernel. The post also provides a practical example of building a simple echo kernel to illustrate the underlying principles.

1 post · 2023

Timeline

20232026
Feature trailQuiet since 2023

Collaborative Analysis Platform

Hex has evolved its collaborative analysis platform by introducing a new grid-backed app layout engine. This engine combines the flexibility of a drag-and-drop builder with the automagic layout of Story mode, addressing user pain points in both previous modes. The new engine allows for more intuitive app building, easier insertion of elements, and better responsiveness, bridging the gap between narrative and dashboard use cases. This post details enhancements to table display cells, including column formatting (currency, percentage, URL), conditional formatting for highlighting cells, and other familiar spreadsheet features like quick column resizing and text wrapping, improving the interactivity and visual appeal of dataframe outputs.

7 posts · 2023

Timeline

20232026
Feature trailQuiet since 2023

Dimensionality Reduction Techniques

Hex has evolved its data analysis capabilities by introducing and detailing dimensionality reduction techniques. This post provides an introduction to the concept, explaining what dimensions are, the challenges posed by the curse of dimensionality, and the distinction between linear and non-linear reduction methods. It serves as a foundational piece for understanding how to simplify complex datasets while preserving essential information, with a companion post offering practical implementation details.

1 post · 2023

Timeline

20232026
Feature trailQuiet since 2022

Natural Language Processing Tools

Hex has introduced capabilities for Natural Language Processing (NLP) in Python, enabling users to programmatically understand and interpret human language. This includes basic text processing using libraries like NLTK for tasks such as tokenization and frequency distribution, sentiment analysis using VADER, and an introduction to topic modeling with Gensim. The platform facilitates the application of these NLP techniques within the Hex environment for data analysis and insight generation.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Sentiment Analysis Model

Hex has evolved its natural language processing capabilities by providing a tutorial on building a sentiment analysis model in Python. This post details the process of using pre-trained models from Huggingface, preprocessing text data, and evaluating model performance. It covers techniques for classifying sentiment as positive, negative, or neutral, and demonstrates how to visualize results and common words associated with each sentiment.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Experimentation

Hex has evolved its experimentation capabilities by providing a comprehensive guide to performing A/B tests. This includes understanding the core concepts of A/B testing, defining hypotheses (null and alternative), selecting appropriate metrics like user retention, and performing exploratory data analysis to check for sample ratio mismatch (SRM). The post details how to handle SRM by random sampling and demonstrates statistical testing using chi-square tests to validate hypotheses. It also covers visualization techniques like kernel density estimation to better understand retention rates across different groups.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

ETL Incident Response

This post details a significant production outage caused by a misconfiguration in the ETL process, specifically related to the PostgreSQL Write-Ahead Log (WAL) growing unboundedly. It covers the root cause (Fivetran connection failure leading to WAL buildup), the impact of auto-scaling limitations during disk optimization, and the challenges encountered when attempting to use a read replica as a failover. The post outlines immediate next steps including better alerting on disk space and Fivetran failures, improving WAL handling (e.g., WAL size limits), and moving non-essential workloads off the production database. It emphasizes the importance of robust incident response and learning from failures.

1 post · 2022

Timeline

20222026
Feature trailQuiet since 2022

Logistic Regression Tutorial

Hex has evolved its data analysis capabilities by providing a comprehensive guide to logistic regression, a binary classification algorithm. This post details the process of data loading, preprocessing (including handling categorical features with one-hot encoding and binary encoding), determining a baseline accuracy, training the model, and evaluating its performance using a confusion matrix, precision, recall, and accuracy metrics. It also touches upon interpreting the results and briefly discusses data imbalance.

2 posts · 2022

Timeline

20222026
Feature trailQuiet since 2022

Pipeline Intelligence

Hex has evolved its data analysis and AI capabilities by introducing Pipeline Intelligence, a system that consolidates disparate lead signals into a unified, prioritized view. This system leverages AI to analyze combined data from product engagement, website visits, campaign interactions, social media, hiring trends, and opportunity data to provide actionable recommendations for sales teams. It aims to cut through market noise and improve lead-to-pipeline conversion by offering clear focus and a

2 posts · 2022

Timeline

20222026
Feature trailQuiet since 2020

Live Collaboration

Hex has evolved its collaborative editing capabilities by implementing a pragmatic approach to live collaboration using Atomic Operations (AO). This system breaks down all state mutations to single property updates, ensuring that operations of different types cannot conflict. A central authority manages a monotonically increasing counter per object to determine the 'last writer wins' in cases of same-type operation conflicts. This approach was chosen for its incremental shippability, compatibility with the existing stack (Apollo, GraphQL, TypeScript, PostgreSQL), and developer control over core application foundations.

1 post · 2020

Timeline

20202026