Cut Text2SQL token costs up to 81%, and stop paying for wrong answers: a Neo4j semantic layer across BigQuery and Databricks
Blog post from Neo4j
A Neo4j-based Neocarta semantic layer is presented as a metadata-only graph that helps Text-to-SQL agents discover relevant tables, columns, and join paths across large, messy data catalogs without repeatedly scanning warehouse schemas. Unlike metric-focused semantic layers that define certified measures over curated data, this approach emphasizes cross-platform schema discovery by ingesting warehouse metadata, descriptions, foreign-key relationships, sample values, and embeddings into a graph while leaving actual data in the warehouse. In benchmarks on a 278-table BigQuery Census catalog and a 264-table Databricks legacy lakehouse, graph-based retrieval reportedly improved reliability for smaller models and reduced token use, latency, and warehouse catalog queries for larger models; compact retrieval on Census reduced tokens by 45–81%, while Databricks tests showed 19–54% token reductions across eight Anthropic models. The approach uses semantic search to locate an anchor table and graph traversal to supply related tables and join details, allowing agents to generate SQL after limited retrieval rather than brute-force exploration. The post argues that such a graph can complement rather than replace existing governed metric layers, potentially expanding into an enterprise knowledge layer containing glossary terms, ownership, governance metadata, usage-derived relationships, and agent memory.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Vector Search | 6 | 265 | 57 | 33 | -89% |
| MCP | 4 | 2,241 | 148 | 72 | -74% |
| AI Agents | 3 | 931 | 231 | 103 | -84% |
| LLM | 2 | 747 | 162 | 79 | -85% |
| Loop engineering | 2 | 16 | 8 | 7 | -77% |
| Multi-agent systems | 1 | 41 | 24 | 19 | -91% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.