SAP AI SDK for JavaScript - v2.13.0
    Preparing search index...

    Interface EmbeddingRequest

    Embedding request configuration.

    interface EmbeddingRequest {
        input: string | string[];
        type?: "document" | "text" | "query";
    }
    Index
    input: string | string[]

    Text input for which embeddings need to be generated. Can be a single string or array of strings.

    input: "This is a text to embed" or
    input: ["Text 1", "Text 2", "Text 3"]
    type?: "document" | "text" | "query"

    Represents the task for which the embeddings need to be generated.

    'text'