Interface CloudflareWorkersAIEmbeddingsParams

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

Hierarchy

  • EmbeddingsParams
    • CloudflareWorkersAIEmbeddingsParams

Properties

binding: Fetcher

Binding

batchSize?: number

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

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.

Generated using TypeDoc