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

At 16, Indian AI prodigy Raul John Aju pays father Rs 2 lakh salary

Dubai: Sixteen-year-old Raul John Aju has an unusual answer to what he wants to do after school: he is already building an artificial intelligence business while studying in Class 12 Commerce. Known as the “AI Kid of India”, the Kerala teenager has attracted attention for developing AI tools, training people in the technology and turning…

More from Wednesday 26 August →