Heroku LangChain - v0.2.1
    Preparing search index...

    Interface HerokuMiaEmbeddingsCallOptions

    Interface for call-time options when using HerokuMiaEmbeddings. These options can be passed to embedDocuments() and embedQuery() methods.

    interface HerokuMiaEmbeddingsCallOptions {
        input_type?:
            | "search_document"
            | "search_query"
            | "classification"
            | "clustering";
        model?: string;
        encoding_format?: "raw"
        | "base64";
        embedding_type?: "float" | "int8" | "uint8" | "binary" | "ubinary";
        truncate?: "NONE" | "START" | "END";
        additionalKwargs?: Record<string, any>;
    }

    Hierarchy

    • RunnableConfig
      • HerokuMiaEmbeddingsCallOptions
    Index

    Properties

    input_type?:
        | "search_document"
        | "search_query"
        | "classification"
        | "clustering"

    Type of input text for embedding optimization.

    • "search_document": For storing documents in a search index
    • "search_query": For searching with a query
    • "classification": For classification tasks
    • "clustering": For clustering tasks
    model?: string

    Override the default model for this specific call.

    encoding_format?: "raw" | "base64"

    Format for the embeddings encoding.

    embedding_type?: "float" | "int8" | "uint8" | "binary" | "ubinary"

    Type of embedding to generate.

    truncate?: "NONE" | "START" | "END"

    How to handle inputs longer than the maximum length.

    additionalKwargs?: Record<string, any>

    Additional options to pass to the Heroku embeddings API.