langchain.js
    Preparing search index...

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    apiKey: string
    baseUrl: string = "https://api.jina.ai/v1/embeddings"
    batchSize: number = 24

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

    dimensions: number = 1024

    The dimensions of the embedding.

    model: string = "jina-clip-v2"

    Model name to use

    normalized: boolean = true

    Scales the embedding so its Euclidean (L2) norm becomes 1, preserving direction. Useful when downstream involves dot-product, classification, visualization..

    stripNewLines: boolean = true

    Whether to strip new lines from the input text.

    Methods

    • Parameters

      Returns Promise<number[][]>

    • Parameters

      Returns Promise<number[]>