Additional functions and standalone embedding in pgai
Suggest editsStandalone embedding
Use the generate_single_image_embedding
function to get embeddings for the given image. Currently, model_provider
can only be openai
or huggingface
. You can check the list of valid embedding models and model providers from the Encoders Supported PGAI section.
Use the generate_text_embedding
function to get embeddings for the given image. Currently, the model_provider
can only be openai
or huggingface
.
Supported encoders
You can check the list of valid embedding models and model providers from pgai.encoders table
Available functions
You can find the complete list of currently available functions of the pgai extension by selecting from information_schema.routines
any routine_name
belonging to the pgai routine schema:
Could this page be better? Report a problem or suggest an addition!