paul-gauthier / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
17.53k stars 1.64k forks source link

Repo Map - Future Work #872

Closed alok87 closed 1 month ago

alok87 commented 1 month ago

Issue

https://aider.chat/2023/10/22/repomap.html

image

How can we help and contribute back!

How can we help contributing this feature (part1) ?

but it’s also an important foundation for future work on automatically finding all the code which will need to be changed (1).

So that we do not need to add and tell which files to change!

// @hariharpatel1

No response

nevercast commented 1 month ago

This is something I really want to have the time to attempt. Though I don't see that soon.

It's essentially a Graph RAG problem, the repomap is good to go, you just need a means of scoring files so that those that are more relevant are selected.

paul-gauthier commented 1 month ago

Thanks for trying aider and filing this issue.

Aider already has the ability to identify which files to add. If you run aider without adding any files to the chat, it will try extra hard to find which files need to be edited.

That said, the pragmatic way to be productive is to add the files that need to be edited yourself.

This doc may be helpful:

https://aider.chat/docs/usage.html#adding-files

xAlstrat commented 1 month ago

I'm also interested in that materia. Repo-map is great, but I think we can have 2 mayor improvements.

  1. Detailed repo map: maybe including comments or a description for each file, metadata, etc.
  2. Finding EXACTLY (maybe more files but never less) what files are needed to generate a solution and the edit them. I think a good solution here is RAG with a Vector store, but it seems to be a little slow compared to how fast aider is. Maybe this doesn't matter much because genAI models will be faster in the future. I also read in docs something about graph ranking algorithms.

Do know any other ways to solve this? I'm going to look at that Graph Rag algorithm!

Maybe in the discord we can find more details about how to contribute.

paul-gauthier commented 1 month ago

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.