Member Junction
    Preparing search index...
    interface SimpleEmbedTextParams {
        contextUser?: UserInfo;
        inputType?: "query" | "document";
        modelSize: "medium" | "small";
        textToEmbed: string | string[];
    }
    Index

    Properties

    contextUser?: UserInfo
    inputType?: "query" | "document"

    Retrieval role of the texts: 'query' for search text, 'document' (the default) for text that is stored and compared. Asymmetric models embed the two differently, so embed a search box's text as a query and the items it is compared with as documents. (Mirrors EmbeddingInputType in @memberjunction/ai, which this package doesn't depend on.)

    modelSize: "medium" | "small"
    textToEmbed: string | string[]

    Either a single string or an array of strings to calculate embeddings for