Script
The path to the script to use to generate your embeddings. For example, you might want to use your Lua script to obtain embeddings from a HTTP endpoint.
The script must define a function called generateembeddings. This function must accept a single parameter, which is a string representing the text to generate embeddings for.
The function must return a table of tables, where each inner table contains floating point numbers. Each inner table therefore corresponds to a vector for that text.
You can optionally include a second table of tables, which returns offsets for the embeddings in the format:
{{embedding_1_start_offset, embedding_1_end_offset}, {embedding_2_start_offset, embedding_2_end_offset}, {embedding_3_start_offset, embedding_3_end_offset}, ...},
NOTE: If you want to use offset information in IDOL (for indexing or querying), you must use UTF-8 byte offsets.
The Script parameter has an effect only when the Type parameter is set to Lua.
| Type: | String |
| Default: | |
| Required: | Yes, when you set Type to Lua. |
| Configuration Section: | MyEmbedding |
| Example: | Script=c:\QMS\scripts\embeddings_generator.lua
|
| See Also: | Type |