chunkipy.size_estimators.openai_size_estimator
Classes
|
Size estimator that uses OpenAI's tokenization to estimate the size of the text. |
- class chunkipy.size_estimators.openai_size_estimator.OpenAISizeEstimator(encoding='cl100k_base')[source]
Bases:
BaseSizeEstimatorSize estimator that uses OpenAI’s tokenization to estimate the size of the text.
- Parameters:
encoding (str)