Urgent.News

What's breaking now, across thousands of outlets.

AI

Schema catalogs for AI assistants: the layer nobody wants to maintain

The schema catalog for an AI assistant is the artefact that answers the question "what does this database look like right now". Whether the database is Postgres, MySQL, SQL Server or Redshift, the shape of the problem is the same: the catalog carries table names, column names, types, keys, and enough relationships to let the assistant write a query that resolves. It lives somewhere between the…

In the world of AI assistants, a schema catalog is an essential artifact that defines the structure of the underlying database. Regardless of whether the database is Postgres, MySQL, SQL Server, or Redshift, the catalog captures table names, column names, types, keys, and relationships, enabling the AI to generate accurate queries.

This catalog lives between the database and the assistant, staying in sync with the constantly changing data. However, maintaining this catalog proves to be an ongoing challenge. The connection layer, responsible for the assistant's communication with the database, often receives more attention due to concerns such as credentials, network isolation, and query cost.

Yet, the knowledge layer, which contains information about the database's shape, is where the quality of the assistant truly resides. Unfortunately, this layer tends to decay over time and becomes increasingly difficult to maintain. Teams typically build various solutions to address these challenges, such as JSON catalog files, nightly refreshes, custom MCP servers, semantic layers, or read-only replicas.

While each of these recipes delivers a working solution on day one, they all tend to break down around the same point in time, typically within three weeks. The most common failure modes include renaming columns, addition of new columns, outdated semantic notes, and outdated typed queries. These issues arise because the catalog is often manually maintained, leading to inconsistencies between the catalog and the actual database structure.

To build a catalog that survives longer, it is crucial to automate the regeneration process from the running database and treat the catalog as a snapshot of the current database structure. This approach ensures that the catalog remains up-to-date and eliminates the need for manual maintenance.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Prologue - What is MEM-ABBREV?

Prologue - What is MEM-ABBREV? MEM-ABBREV is a structured self-contained protocol for making human-AI collaborative reasoning more honest, more persistent, and more resistant to the systematic…

OpenAI Enters Final Stage of Second-Generation Chip Design

OpenAI is moving to reduce its reliance on Nvidia by deploying its self-developed artificial intelligence semiconductor, Jalapeno, in real-world operations within the year.

  • OpenAI completes second-generation AI chip, Jalapeno, for reduced Nvidia dependence.
  • Jalapeno outperforms Nvidia’s GB300 in power efficiency and response speed tests.
  • Chip integrates Samsung’s HBM4 memory for 15.4TB/s bandwidth, 700-watt power consumption.

More from Wednesday 26 August →