mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 04:07:54 +00:00
parent
7c5063ef60
commit
5da9dd1195
@ -18,6 +18,10 @@ from tokenizers import Tokenizer # type: ignore
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
MAX_TOKENS = 16_000
|
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:
|
class DummyTokenizer:
|
||||||
|
Loading…
Reference in New Issue
Block a user