Natural Language Query Interface with Production LLM Integration

honeycomb · Tech · 2023 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Observability query authoring

Honeycomb needed average developers and product managers to use its observability query interface successfully, not only SREs and platform engineers.

Constraints:

Architecture

Honeycomb used GPT-3.5 to translate natural-language questions into JSON query specifications, then iterated prompts from production usage to improve success and activation metrics.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  natural-language-query-assistant["Natural Language Query Assistant"]
  gpt-3-5-query-translator["GPT-3.5 Query Translator"]
  honeycomb-query-engine["Honeycomb Query Engine"]
  activation-metrics["Activation Metrics"]
  natural-language-query-assistant --> gpt-3-5-query-translator
  gpt-3-5-query-translator --> honeycomb-query-engine
  honeycomb-query-engine --> activation-metrics
  activation-metrics --> gpt-3-5-query-translator
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Natural Language Query Assistant Accepts user questions about observability data. GPT-3.5 Query Translator
GPT-3.5 Query Translator Converts natural language into JSON query specifications. Honeycomb Query Engine
Honeycomb Query Engine Executes generated query specifications against observability data. Activation Metrics
Activation Metrics Measures query success, complex-query creation, and board usage for prompt iteration. GPT-3.5 Query Translator

Data flow

Users enter natural-language observability questions, GPT-3.5 converts them into Honeycomb query JSON, the platform executes those specifications, and production outcomes feed prompt iteration.

“Using OpenAI's GPT-3.5 API, they shipped a production feature in one month that converts natural language into JSON query specifications.”summary, stated
“through iterative prompt engineering based on real production data”summary, stated

Why this architecture

Natural-language query generation lowered the activation barrier for non-SRE users while retaining Honeycomb's executable JSON query model.

“average developers and product managers struggled with the unfamiliar tooling, leading to high drop-off rates.”summary, stated
“converts natural language into JSON query specifications.”summary, stated

Models used: GPT-3.5 API

Scale

Alternatives considered (roads not taken)

Leave users to learn the existing query interface

Rejected because: Less specialized users struggled and dropped off.

“average developers and product managers struggled with the unfamiliar tooling, leading to high drop-off rates.”summary, stated

One-shot prompt without production iteration

Rejected because: Production data was used to improve success from 75% to 94%.

“through iterative prompt engineering based on real production data”summary, stated

Patterns

query-rewriting (query-generation)

The assistant rewrites natural language into Honeycomb JSON query specifications.

“converts natural language into JSON query specifications.”summary, stated

eval-driven-development (quality)

Prompt engineering used production data and activation metrics to raise success rate.

“success rate improved from 75% to 94% through iterative prompt engineering based on real production data”summary, stated

Tradeoffs

Ship with GPT-3.5

Chose Production GPT-3.5 API integration over Waiting for a custom model or full query-language redesign.

Rationale: The team could ship in one month and iterate from production behavior.

“Using OpenAI's GPT-3.5 API, they shipped a production feature in one month”summary, stated

Generate JSON query specs

Chose Structured Honeycomb query output over Free-form natural-language answers.

Rationale: Executable specs let the assistant integrate directly with the existing observability platform.

“translates user input into executable queries against their data analysis platform.”summary, stated

Gotchas (what bit them)

Expert query interfaces can block broader adoption even when powerful.

Root cause: SREs and platform engineers were comfortable, but average developers and product managers were not.

Resolution: Add natural-language generation of executable query specs.

“while SREs and platform engineers thrived with their query interface, average developers and product managers struggled with the unfamiliar tooling”summary, stated

Production usage reveals prompt failures not seen before launch.

Root cause: Real users ask diverse and messy observability questions.

Resolution: Iterate prompts based on production data and success metrics.

“iterative prompt engineering based on real production data”summary, stated

Evaluation

Honeycomb measured success rate and activation metrics tied to paying-customer behavior.

Metrics: Query success rate · Complex-query creation · Queries added to boards

“Results showed the success rate improved from 75% to 94%”summary, stated

Outcomes

The case reports activation lift and production success rates rather than total query volume.

“teams using the query assistant were more than twice as likely to create complex queries and nearly three times more likely to add queries to boards”summary, stated