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

feat: set chunk size to model context size for LLM chains #38

Merged
merged 4 commits into from
Oct 30, 2024

Conversation

edward-ly
Copy link
Contributor

Closes #35. I also went ahead and made similar changes to the other chains even if they don't seem to be used at the moment, but if you don't need it for the other chains, then you can just merge the first commit.

lib/chains.py Outdated Show resolved Hide resolved
Copy link
Member

@marcelklehr marcelklehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good default. Thank you!

@marcelklehr marcelklehr merged commit 644bbae into main Oct 30, 2024
4 checks passed
@marcelklehr marcelklehr deleted the feat/adjust-model-size branch October 30, 2024 09:20
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

Successfully merging this pull request may close these issues.

Make summary chain aware of model's context size
2 participants