Problem
Wix organizes its data as a data mesh: each product domain (Stores, Customer Care, Restaurants and others) owns its tables. Together they hold hundreds of tables with thousands of dimensions and metrics. Business users often do not know which domain holds the data they need, so they wait on domain experts. A wizard tool, Data Playground, already built SQL from structured questions via a semantic layer, but users still could not pick the right metrics.
Example from the article: a user asks "how many users registered recently?", and the word "recently" has to be clarified before any query can run.
Solution in brief
Wix built Anna, a chat assistant made of specialized agents. A retrieval step narrows thousands of semantic-layer fields to a few candidates. It searches LLM-generated questions that each field can answer, not raw metadata. A downstream agent then builds a structured query for Data Playground from the candidates.
Questions this case answers
- How to map a free-form business question to the right fields of a governed semantic layer when thousands of fields with poor metadata are spread over many owner domains
- How to let non-technical users query structured data in natural language without the assistant silently picking an irrelevant field
- How to let business users find the right metric or dimension among thousands without knowing which domain owns the data?
- How to retrieve the right semantic-layer fields for a natural-language business question?
Tools and methods
- Multi-agent pipeline — root, validation, question divider, question generator, Data Playground and retry agents, each with one job
- Question-to-question RAG — embeddings of generated business questions per dimension and metric, searched at query time
- Vespa — vector database for the embeddings
- Apache Airflow — hourly DAG that re-embeds new dimensions and tables
- Cube — semantic engine that turns structured payloads into SQL
- Trino — query engine behind the semantic layer
Google or a one-time email code. No password.