⚠️ Deprecated ⚠️

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

This feature is deprecated and will be removed in the future.

It is not recommended for use.

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

Hierarchy (view full)

  • Toolkit
    • CloudflareWorkersAIEmbeddingsParams

Properties

binding: Fetcher

Binding

batchSize?: number

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

modelName?: string

Model name to use

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.

Generated using TypeDoc