interface HuggingFaceTransformersEmbeddingsParams {
    model: string;
    modelName: string;
    batchSize?: number;
    stripNewLines?: boolean;
    timeout?: number;
}

Hierarchy (view full)

  • Toolkit
    • HuggingFaceTransformersEmbeddingsParams

Implemented by

Properties

model: string

Model name to use

modelName: string

Model name to use Alias for model

batchSize?: number

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

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.

timeout?: number

Timeout to use when making requests to OpenAI.