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

[Answer Engine]For code references, when the file content is reasonble(e.g <200 LoC), include whole file content directly, instead of only including the chunk. #3096

Closed
Tracked by #2657
wsxiaoys opened this issue Sep 6, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request fixed-in-next-release good first issue Good for newcomers

Comments

@wsxiaoys
Copy link
Member

wsxiaoys commented Sep 6, 2024

Code Location: https://demo.tabbyml.com/files/github/TabbyML/tabby/-/blob/abde89bf8178713b8def3db081597ea01c8183b9/ee/tabby-webserver/src/service/answer.rs#L178

Currently, only the chunk being matched (CodeSearchHit.doc.body) is being inserted in LLM context, we might consider insert the whole file if there're multiple file from same file and the whole file is <= K lines.

@wsxiaoys wsxiaoys changed the title For code references, when the file content is reasonble(e.g <200 LoC), include whole file content directly, instead of only including the chunk. [Answer Engine]For code references, when the file content is reasonble(e.g <200 LoC), include whole file content directly, instead of only including the chunk. Sep 6, 2024
@wsxiaoys wsxiaoys added good first issue Good for newcomers enhancement New feature or request labels Sep 6, 2024
@wsxiaoys
Copy link
Member Author

fixed in 0.19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed-in-next-release good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants