Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to count tokens for cl100k_base embedding? #45

Open
art1c0 opened this issue Apr 3, 2024 · 0 comments
Open

How to count tokens for cl100k_base embedding? #45

art1c0 opened this issue Apr 3, 2024 · 0 comments

Comments

@art1c0
Copy link

art1c0 commented Apr 3, 2024

Sorry for probably stupid question, but my task is to count tokens before sending text for vector embedding using cl100k_base - that one seems to be used with text-embedding-3-large model.
I've not seen such an example in the readme and wondering whether this model is supported by this module and how to use it properly for this task.
I mean that I have only one text, should I put it into 'system' or 'user' role field?
And which model I have to specify?
Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant