Gets text embeddings from an embedding model. Embeddings capture the semantic meaning of text and can be used for semantic search, categorization, or recommendation.
Embeddings can be stored in a database column using either the varchar, nvarchar, or the vector data type.
The batch mode is designed to retrieve the embedding for multiple texts. A list of IDs are retrieved in the "Init" call which are then used to retrieve the text data in the "Get text by id" call.
This resultset can be used to explicitly define the provider, model, or endpoint to be used, otherwise the system defaults are used. Additionally, a BatchId can be defined.
The alias of the provider to be used.
The alias of the model to be used.
The alias of the endpoint to be used.
BatchId of this set of requests, will be sent back to the procedure for all calls.
The number of dimensions of the embedding vectors. Not all models support variable dimension output. Larger vectors impact performance. It is often enough to use 256 or 512 dimensions.
Determines whether the response headers should be read in the response and available in the "Store embedding" call.
Determines whether the token usage should be read in the response and available in the "Store embedding" call.
A table containing id values. "Get text by id" will be called once for each id in the table. Each id value will result in a separate request to the provider.
Id that will be sent back to the procedure in the "Get text by id" call.
Displays a progress bar. See procedure SoftadminApi.Progress_SetTitle for further explanation.
A name or other description of the current operation.
How many steps total are to be performed. Omit this parameter or pass NULL to make the operation's progress indeterminate. If set then ProgressStepsCompleted must also be set.
How many steps of the current operation have been completed. Omit this parameter or pass NULL to make the progress indeterminate. If set then ProgressStepsTotal must also be set.
Text to calculate the embedding vector for.
Store the embedding generated by the model.
Contains all headers from the response. Only available if "ReceiveResponseHeaders" is set to 1.
Contains the name of the header.
Contains the value of the header.
Set to 1 to clear the request queue.
Displays a user friendly error message to the user. This blocks any forwarding for the user.
Displays a user friendly confirmation message to the user with a delete button as the confirm button. If the user chooses OK the SQL call will be rerun with the parameter @ButtonAction set to 'Delete'.
Displays a user friendly confirmation message to the user with a question style. If the user chooses OK the SQL call will be rerun with the parameter @ButtonAction set to 'Confirm'.
Displays a user friendly confirmation message to the user with a warning style. If the user chooses OK the SQL call will be rerun with the parameter @ButtonAction set to 'Confirm'.
Displays a user friendly info message to the user. When the user clicks OK the user is forwarded.
Displays a user friendly success message to the user. When the user clicks OK the user is forwarded.
The dialog alias of a predefined dialog to show the user. Must be the first column in the result set table. Use multiple result set tables to combine with other forwarding.
Use the menu item "Admin > Dialogs" to register new dialogs or find aliases for existing ones.
Any column without special meaning in the result set with the first column ADMIN_Dialog will be used to make replacements of placeholders in the message and title text.
Additional information to show the developer when using ADMIN_Dialog.
Alias of the menu group to show after execution (instead of former menu item). This value overrides any destination specified by the query string.
Displays a user friendly error message to the user.
If this column is anything but NULL the popup will be closed and the parent will be reloaded. Only select this column if the menu item is opened in a popup. Avoid using this feature if the opener is a newEdit as that may interrupt the user's ongoing input.
Changes the text of the Cancel button when used with ADMIN_Force, ADMIN_ConfirmWarning, ADMIN_ConfirmQuestion, ADMIN_ConfirmDelete.
Changes the text of the OK button when used with ADMIN_ErrorMessage, ADMIN_ConfirmWarning, ADMIN_ConfirmQuestion, ADMIN_ConfirmDelete, ADMIN_InfoMessage, ADMIN_SuccessMessage, ADMIN_Message, ADMIN_Force, or ADMIN_Forward. ADMIN_Force,
Allows you to validate the SQL parameters before any other SQL is run in the component. This call is only made if the SQL is a stored procedure and Validate parameters is checked.
Use this call to restrict which entries a user is allowed to view and edit, and to log which entries a user views.
Access to a menu item is normally controlled through functions and roles alone but some entities need more fine grained control. For example, a user may have access to the View Member menu item for normal members but not for members with a protected identity.
The menu items a user visits are always logged (in ADMINLogMenuItem) but for sensitive data you may need to log exactly what entries are viewed. Do the logging in this call as the common ways of viewing data (grid and InfoSQL) are not allowed to modify the database.
If you bind a scalar function instead of a stored procedure to this call then its name must end with '_GrantAccess'.