Constructor for the CohereEmbeddings class.
Optional
fields: Partial<CohereEmbeddingsParams> & { An optional object with properties to configure the instance.
The maximum number of documents to embed in a single request. This is limited by the Cohere API to a maximum of 96.
Generated using TypeDoc
A class for generating embeddings using the Cohere API.
Example
⚠️ Deprecated ⚠️
Use
CohereEmbeddings
from@langchain/cohere
instead.This feature is deprecated and will be removed in the future.
It is not recommended for use.