-
Notifications
You must be signed in to change notification settings - Fork 162
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
Adding context files recursively from a directory #513
Comments
Hi @hartikainen This is a great idea. It is related to a wider discussion about how to manage context beyond the "labour-intensive mechanism" that it offers now. Especially if one is used to using markdown or org mode as the source syntax for dialogue with the models. My view is that the management of context within gptel is an area that can be improved significantly with what are, conceptually at least, relatively minor changes. The ability to add directories of files could be difficult to "keep simple". All nested subdirectories? Only files with specific extensions? Which ones? How should they be filtered? I'm sure there are ways to simplify this using metaphors like "dired", which can already be used in a way similar to this, But it is not automated in the way I think you are suggesting. Have a look at the summary below and the related issues on this topic. See what you think :) 1. Context Buffer Navigation (#459)Suggestion:
Status: Under consideration, but no specific implementation committed yet. 2. Multiple Context Sets (#475, #459)Suggestion:
Karthink's Response (#475):
3. Links as Context (#481)Suggestion:
Karthink's Response:
4. Quick Context Management (#486)Suggestion:
Status: Implemented
5. Multi-Modal SupportStatus: Already Implemented
Current DirectionThe discussion seems to be moving towards:
Karthink appears most receptive to improvements that:
The most promising avenue appears to be the links-based approach (#481), which could provide a more transparent and user-friendly way to manage context while avoiding the complexity of multiple context sets. [2024-12-22 Sun 10:03] |
@hartikainen see PR #438, which is almost ready to be merged. Also, as a fallback for now you can mark all files in a directory wilth |
@metachip Thanks for the summary.
This is trivial to add if we add
Yup, this is going to happen, I just have to merge the tool-use branch first. |
It would be really cool if you could exclude based on a |
Thanks for such a great and pleasant-to-use package!
I've had several occasions recently where I would've wanted to add the contents of a whole directory to the context of my model. I can do that manually but with more than a couple of files that becomes quite clumsy. It would be great if there was a function like
gptel-add-directory
or similar, which would allow files in the directory to be added, ideally recursively.The text was updated successfully, but these errors were encountered: