Feature request for a new tool to read partial files #7113
44cort44
started this conversation in
Feature Requests
Replies: 1 comment
-
@chezsmithy tagging you per your discord request |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, local LLMs typically have small context sizes, and when trying to read large files the 'read_file' tool throws an error when the file is over half of the context window.
see here: https://github.com/continuedev/continue/blob/main/core/tools/implementations/readFile.ts
instead of throwing an error in this condition, iterating over the file in small chunks would be a better option.
I think providing a tool to the LLM will give it a chance to do this on it's own. Claude 3.7 sonnet and Claude 4 sonnet already do this in Github Copilot for large files.
Beta Was this translation helpful? Give feedback.
All reactions