The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
mistral: comment batching param (#20868)
Erick Friis5da9dd1195d2
diff --git a/libs/partners/mistralai/langchain_mistralai/embeddings.py b/libs/partners/mistralai/langchain_mistralai/embeddings.pyindex 2003cd7e43..268918a9f9 100644--- a/libs/partners/mistralai/langchain_mistralai/embeddings.py+++ b/libs/partners/mistralai/langchain_mistralai/embeddings.py@@ -18,6 +18,10 @@ from tokenizers import Tokenizer # type: ignorelogger = logging.getLogger(__name__)MAX_TOKENS = 16_000+"""A batching parameter for the Mistral API. This is NOT the maximum number of tokens+accepted by the embedding model for each document/chunk, but rather the maximum number+of tokens that can be sent in a single request to the Mistral API (across multiple+documents/chunks)"""class DummyTokenizer: