Neocarta: Build a Semantic Layer Graph for Text-to-SQL Agents to Fix Table Understanding Failures Upstream

JeremyCMorgan · x · 2026-07-30

Jeremy Morgan introduces Neocarta, an open-source library built on Neo4j that provides AI agents with a semantic understanding of data. The core problem: Text-to-SQL agents fail before SQL generation—they don't know what table names mean or which joins matter. Neocarta constructs a knowledge graph from BigQuery metadata, business terms, and observed query logs, then serves it to agents over MCP (Model Context Protocol), attacking the failure upstream. The project is open-sourced on GitHub (neo4j-labs/neocarta) with agent integration, evaluation, and examples.

Original post →

More from coding & agent

coding & agent channel →