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

Allow changing context length per chat session #1546

Open
2 tasks done
AriMKatz opened this issue Jun 23, 2024 · 2 comments
Open
2 tasks done

Allow changing context length per chat session #1546

AriMKatz opened this issue Jun 23, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@AriMKatz
Copy link

AriMKatz commented Jun 23, 2024

Validations

  • I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • I'm not able to find an open issue that requests the same enhancement

Problem

Newer models like sonnet 3.5 do well across almost the entire context window, but I might not want to use it for every chat.

Solution

Please allow dynamically setting context window.

Right now only can change in model load #1364

Also, does the context provider account for this?

@AriMKatz AriMKatz added the enhancement New feature or request label Jun 23, 2024
@sestinj
Copy link
Contributor

sestinj commented Jun 24, 2024

@AriMKatz The best way to solve this is probably to make two separate copies of your model, each with a different "contextLength" parameter

After context providers resolve their contents, we then do prompt pruning to fit it into the context window, so context providers like @ codebase don't take into account contextLength by themselves

Seems like what you might want is the ability to have @ codebase automatically grab more results when you're using the longer context model?

@AriMKatz
Copy link
Author

Model copying sounds fine.

"

Seems like what you might want is the ability to have @ codebase automatically grab more results when you're using the longer context model?

Yes exactly

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

No branches or pull requests

2 participants