> For the complete documentation index, see [llms.txt](https://karini-ai.gitbook.io/karini-ai-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://karini-ai.gitbook.io/karini-ai-documentation/catalog-schemas/catalog-schema-import-and-publication-process.md).

# Catalog Schema Import and Publication Process

&#x20;Follow the steps outlined below to import the catalog schema and publish it.

**1. Browse schema**

* Users can expand the database (e.g., "dev") to view its available schemas and tables by clicking the “Browse schema” button.
* When a table is selected, an overview and a sample dataset containing five records will be presented.

**2. Selecting and Importing Schemas**

* The Import Selected Schemas button becomes enabled once a table(s) is selected.
* Upon initiation, the system retrieves metadata from the selected tables(s).
* The status will update to reflect the progress of the import (e.g., "Importing").

Once the process is complete, the imported table will be displayed under the Catalog Explorer, allowing users to view its structure, including tables and columns.

**3. Metadata Generation Requirement**

{% hint style="info" %}
To proceed with publishing the catalog, metadata must be generated for each table.
{% endhint %}

* Metadata generation requires the Natural Language Assistant model to be configured at the [Organization ](https://docs.karini.ai/organization)level within the system settings
* Once this configuration is in place, you can generate metadata for each table.
* After metadata generation is complete, descriptions for the table and its rows will be displayed.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdBDUKP-3asCKobkOf7CQb9IzoK7ikGW_2MHk3iBY6U-Z_TBo6XvA9c0dV-GNYs3hw4P57a0upY-IXc7M1oV6GmHWhs-PJa_4O1awjK12fKMY1c_AVtxbZhqlUkO6NMeye-oni7?key=sd7ID78MwYC7TUnxCWmg1dC8" alt=""><figcaption></figcaption></figure>

4. **Publishing the Catalog Schema**

{% hint style="info" %}
To publish table metadata, the Global Embeddings Model must be configured at the [Organization ](https://docs.karini.ai/organization)level.
{% endhint %}

* After completing the metadata generation, you can publish the catalog schema.
* Once published, the status will be updated to Published.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfIbMxwk9rWgE6mok6U5yJy4fet78vQ8KeXqhHu6bSgLcW5GE57HF8Qcso32z97JyMrikrzHfgoRNtJ2H4x0yCg_EQubh00p0ZCIsol9wFKBiogLCzUuxwUBcnS-wl6X5UcmMjhsw?key=sd7ID78MwYC7TUnxCWmg1dC8" alt=""><figcaption></figcaption></figure>

5. &#x20;**Synchronizing Database Modifications**

* When changes occur in the database tables, a **Sync** button is available within the catalog.
* This feature allows users to **synchronize** and reflect the latest updates within the catalog.

The **published catalog schemas** can be utilized as **tools** within **Agent** prompts.
