---
title: "Encoding Your Domain Expert: The Context Layer Behind Spotify's Data Assistant"
url: https://daily.dev/posts/encoding-your-domain-expert-the-context-layer-behind-spotify-s-data-assistant-p0jrb8pyv
source_url: https://engineering.atspotify.com/2026/6/encoding-your-domain-expert-the-context-layer-behind-spotifys-data-assistant
type: article
source: "Spotify Labs"
published: 2026-06-10T13:03:24.945Z
updated: 2026-06-10T14:20:20.844Z
tags: ["llm", "ai-agents", "rag"]
reading_time: 7
upvotes: 2
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Encoding Your Domain Expert: The Context Layer Behind Spotify's Data Assistant

**[Spotify Labs](https://daily.dev/sources/spotify)** · 7 min read · 2 upvotes · 0 comments

## Summary

Spotify built an AI data assistant called Vedder to help over 2,100 employees query 70,000+ datasets without needing SQL expertise. The key architectural insight is a 'cluster' model where domain experts curate the context the LLM sees — including relevant datasets with schema profiling, vetted question-SQL pairs, and business documentation. Automated generation of question-SQL pairs from query history was tested but rejected: domain experts accepted only 12.5% of auto-generated pairs, as most were noise. Each cluster has a health score tracking schema validity, coverage, and SQL reproducibility. Every conversation feeds back to cluster owners, enabling continuous improvement. The architecture encodes expert knowledge at scale rather than replacing experts.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://engineering.atspotify.com/2026/6/encoding-your-domain-expert-the-context-layer-behind-spotifys-data-assistant>

## Similar posts on daily.dev

- [Metadata Helps You Understand Data. AI Needs a Contextual Data Layer. • Arango](https://daily.dev/posts/metadata-helps-you-understand-data-ai-needs-a-contextual-data-layer-arango-2eabffyub) · ArangoDB · 1 upvotes · 0 comments
- [Speeding up analytics with Databao](https://daily.dev/posts/speeding-up-analytics-with-databao-4pnaqkpng) · JetBrains · 0 upvotes · 0 comments
- [Coding Is No Longer the Constraint: Scaling Developer Experience to Teams and Agents at Spotify](https://daily.dev/posts/coding-is-no-longer-the-constraint-scaling-developer-experience-to-teams-and-agents-at-spotify-fas1vty9a) · Spotify Labs · 1 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#ai-agents](https://daily.dev/tags/ai-agents), [#rag](https://daily.dev/tags/rag)

[View this post on daily.dev](https://daily.dev/posts/encoding-your-domain-expert-the-context-layer-behind-spotify-s-data-assistant-p0jrb8pyv)
