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

Trunk file sent to LLM pipeline if it surpass a given number of tokens #18

Open
wilderlopes opened this issue Jun 1, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@wilderlopes
Copy link
Contributor

The Problem

LLMs have limited context window. The file generated by miniogre to prompt LLMs needs to comply with that.
So far, there is no automation for that, and as a result, the README generation breaks if the context is larger than the LLM's context window.

Proposed solution

Currently, we have a system that is able to count the tokens (approximately) of the file sent to the LLM pipeline. We should use it to trunk the file and only send the tokens a given LLM can support.

@wilderlopes wilderlopes added bug Something isn't working enhancement New feature or request labels Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant