Constructor for the JinaEmbeddings class.
Optional
fields: Partial<JinaEmbeddingsParams> & { An optional object with properties to configure the instance.
The API key to use for authentication.
If not provided, it will be read from the JINA_API_KEY
environment variable.
The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.
The model ID to use for generating embeddings.
Default: jina-embeddings-v2-base-en
A class for generating embeddings using the Jina API.
Example