Overview
Displays the AI model information for the current tenant.
Columns
field |
Type |
Is NULL |
Description |
|---|---|---|---|
| MODEL_ID | int(20) | NO | Unique identifier of the large model. |
| NAME | varchar(128) | NO | The unique name of the user-defined large language model. This name is used when invoking AI functions or interacting with the model. DBMS_AI_SERVICE To include the system package, use this name. |
| TYPE | varchar(128) | NO | The type of the large language model. The value must be one of the following:
NoteThe sparse vector model is not currently supported. |
| MODEL_NAME | varchar(128) | NO | Larger model name, for example, text-embedding-v2. |
Sample query
Query the AI model information of the current tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_OB_AI_MODELS;
The query result is as follows:
+----------+---------------+-----------------+-------------------+
| MODEL_ID | NAME | TYPE | MODEL_NAME |
+----------+---------------+-----------------+-------------------+
| 500005 | my_ai_model_1 | DENSE_EMBEDDING | text-embedding-v1 |
+----------+---------------+-----------------+-------------------+
1 row in set