# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://karini-ai.gitbook.io/karini-ai-documentation/catalog-schemas/catalog-schema-import-and-publication-process.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
