You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Llamaindex has options to count tokens which might be interesting to implement in parts of the app to monitor how much data is sent / received from the LLM and help estimate costs / usage
The text was updated successfully, but these errors were encountered:
pieterjanvc
added
duplicate
This issue or pull request already exists
enhancement
New feature or request
incomplete
This feature is not complete yet and might cause issues or miss functionality
and removed
duplicate
This issue or pull request already exists
incomplete
This feature is not complete yet and might cause issues or miss functionality
labels
Apr 17, 2024
OpenAI-API uses TikToken library for tokenization of strings as part of their api call. The token_count has a set of functions that specifically uses the same library to count tokens in arbitrary strings in python.
for example: a function to count tokens in a chat prompt
Llamaindex has options to count tokens which might be interesting to implement in parts of the app to monitor how much data is sent / received from the LLM and help estimate costs / usage
The text was updated successfully, but these errors were encountered: