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

chore: increase open file size limit to 40k for chat context #678

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pras0131
Copy link
Contributor

@pras0131 pras0131 commented Dec 17, 2024

Problem

Currently Q chat open file size context is limited to 9000 characters, which truncates a lot of context for larger files. This PR aims to increase the size to 40000 characters.

One thing to note from the constructor of DocumentContextExtractor is config?.characterLimits will always be undefined as only logger is passed while initializing the constructor. Hence, directly updating the DEFAULT_CHARACTER_LIMIT constant value
this.#characterLimits = config?.characterLimits ?? DocumentContextExtractor.DEFAULT_CHARACTER_LIMIT

As of now, this does not relate to or involve any A/B testing as it has not yet been confirmed to be done for VS and Eclipse (the two IDEs which consume Flare to deliver capabilities). Current change will set the character limit to 40K for every request.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@pras0131 pras0131 requested a review from a team as a code owner December 17, 2024 15:42
@pras0131 pras0131 marked this pull request as draft December 17, 2024 15:42
@pras0131 pras0131 marked this pull request as ready for review December 18, 2024 11:04
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.

2 participants