Skip to main content
Version: V1.0.0

Overview

AI Function Service is an AI-native capability provided by seekdb, allowing you to directly integrate AI model capabilities into data processing within the database using SQL expressions.

Components

The AI Function Service consists of the following components:

ComponentDescription
Permissions ManagementManages AI MODEL and ACCESS AI MODEL permissions for managing AI models and calling AI functions. For more information, see AI Function Service Permissions and Model Permissions Management.
Model ManagementRegisters, configures, and manages AI models and endpoints, which are prerequisites for calling AI functions. For more information, see Model Registration and Management.
AI FunctionsSQL expressions for calling AI capabilities, including functions such as AI_COMPLETE, AI_EMBED, AI_RERANK, and AI_PROMPT.
tip

Before using the AI Function Service, ensure that you have registered AI models and endpoints.

The AI functions supported by seekdb are as follows:

FunctionDescription
AI_COMPLETECalls a specified text generation large model to process prompts and data, and parses the results. For more information, see Text Generation AI Functions.
AI_PROMPTBuilds and formats prompts, supporting dynamic data insertion. For more information, see Text Generation AI Functions.
AI_EMBEDCalls an embedding model to convert text data into vector data. For more information, see Use the AI_EMBED Function.
AI_RERANKCalls a reranking model to sort text based on prompts. For more information, see Reranking Search.

The process for using the AI Function Service is as follows:

  1. Grant users the necessary permissions to manage AI models and call AI functions.
  2. Register AI models and endpoints.
  3. Call AI functions in SQL.

References