ModelEncode
Returns an embedding for the text that you specify, based on the configured model that you specify.
Required Parameters
The following action parameters are required.
Parameter | Description |
---|---|
Model | The configured model to use to generate embeddings. |
Text | The text to generate an embedding for. |
Optional Parameters
This action accepts the following standard ACI action parameters.
Parameter | Description |
---|---|
ActionID | A string to use to identify an ACI action. |
FileName | The file to write output to. |
ForceTemplateRefresh | Forces the server to load the template from disk. |
Output | Writes output to a file. |
ResponseFormat | The format of the action output. |
Template | The template to use for the action output. |
TemplateParamCSVs | A list of variables to use for the specified template. |
Example
The following action requests the expanded text for the query "Search for dog".
http://qms:16000/action=ModelEncode&Text=if%20music%20be%20the%20food%20of%20love%20play%20on