Query Manipulation Server 24.2

# 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

Copyright 2024 Open Text
Version 24.2 | Last updated March 2024

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL Query Manipulation Server 24.2

Topic Title: Script