Optional
fields: Partial<BaiduQianfanEmbeddingsParams> & { The maximum number of characters allowed for embedding in a single request varies by model:
Note: These limits are model-specific and should be adhered to for optimal performance.
Model name to use
Whether to strip new lines from the input text.
Method to generate embeddings for an array of documents. Splits the documents into batches and makes requests to the BaiduQianFan API to generate embeddings.
Array of documents to generate embeddings for.
Promise that resolves to a 2D array of embeddings for each document.
Generated using TypeDoc
⚠️ Deprecated ⚠️
Install and import from @langchain/baidu-qianfan instead.
This feature is deprecated and will be removed in the future.
It is not recommended for use.