langchain.js
    Preparing search index...

    Install and import from "@langchain/cloudflare" instead.

    interface CloudflareWorkersAIEmbeddingsParams {
        batchSize?: number;
        binding: {};
        model?: string;
        modelName?: string;
        stripNewLines?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    batchSize?: number

    The maximum number of documents to embed in a single request.

    binding: {}

    Binding

    model?: string

    Model name to use

    modelName?: string

    Model name to use Alias for model

    stripNewLines?: boolean

    Whether to strip new lines from the input text. This is recommended by OpenAI, but may not be suitable for all use cases.