langchain.js
    Preparing search index...

    Import from "@langchain/community/embeddings/huggingface_transformers" instead and use the new "@huggingface/transformers" peer dependency.

    interface HuggingFaceTransformersEmbeddingsParams {
        batchSize?: number;
        model: string;
        modelName: string;
        pipelineOptions?: FeatureExtractionPipelineOptions;
        pretrainedOptions?: PretrainedOptions;
        stripNewLines?: boolean;
        timeout?: number;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    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

    pipelineOptions?: FeatureExtractionPipelineOptions

    Optional parameters for the pipeline.

    pretrainedOptions?: PretrainedOptions

    Optional parameters for the pretrained 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.

    timeout?: number

    Timeout to use when making requests to OpenAI.