This topic provides an overview of the functions and parameters available for PolarDB for AI.
Model management
Function | Description |
Creates a model and registers it in a metadata table. | |
Modifies the information of a model. | |
Sets token information for one or more models. | |
Calls a model to execute machine learning and natural language processing (NLP) tasks such as sentiment analysis, question-answering, translation, summarization, and text generation. | |
Deletes a model. |
GUC settings
Parameter | Description |
Specifies whether to enable persistent HTTP connections. | |
The timeout duration for HTTP connections. Unit: milliseconds. | |
The maximum number of retry attempts for failed HTTP requests. | |
The interval between retry attempts for failed HTTP requests. Unit: milliseconds. | |
The size of the model metadata cache in the database. |
Helper functions
Function | Description |
Resizes an image. | |
Converts an image into a Base64-encoded string. | |
Converts a Base64-encoded string into an image. | |
Loads a file from Object Storage Service (OSS). | |
Returns a list of currently cached models. |