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

A way to use RubberDuck to understand your entire codebase #31

Open
rjohnson318 opened this issue Feb 11, 2023 · 6 comments
Open

A way to use RubberDuck to understand your entire codebase #31

rjohnson318 opened this issue Feb 11, 2023 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@rjohnson318
Copy link

Is this request related to a problem? Please describe.

N/A

Describe the solution you'd like

I would like to be able to ask questions and generate code in the same style as my current codebase. Including editing multiple files if that action required it.

Additional context

For example, I have a new service that I want to integrate into my codebase but that requires updating and creating of multiple files. If it understood the codebase then it would understand that and make all the appropriate changes instead of just a one-off generation where I then have to update or ask it for the next changes. I saw what could be the beginning of this with the work done here https://github.com/rubberduck-ai/repository-index

@rjohnson318 rjohnson318 added the enhancement New feature or request label Feb 11, 2023
@lgrammel
Copy link
Contributor

Repository index is aimed at bringing repository information into the prompt and give Rubberduck some codebase knowledge. That being said, I think the goal of having it understand patterns in your codebase is out-of-reach, at least in the short term.

@lgrammel
Copy link
Contributor

There is now an experimental index repository command (needs to be enabled). It can be used together with your own templates (retrieval augmentation).

@vinnn-90
Copy link

vinnn-90 commented Feb 26, 2023

Hi, I am fairly new to programming and learning python with the help of ChatGPT.
I am currently practicing on a repository with ~6 .py files and a .json file.
I just wanted to mention that if I send a message to chatgpt containing the name and code of all files followed by my question, chatgpt is actually able to take all the files into account and understand the "connections"/imports etc.

It would be a great help for beginners like me if I could skip the copy/paste part and just create a list of files which code should be passed to the AI when starting a conversation or asking a question. Or if I could pose a question and direct the AI to read specific files before replying.

@lgrammel lgrammel added the help wanted Extra attention is needed label Mar 17, 2023
@2214962083
Copy link

@lgrammel hey! maybe this can give you some inspiration

https://github.com/gannonh/gpt3.5-turbo-pgvector

@restlessronin
Copy link
Contributor

@lgrammel I am thinking that one way to address this is to do something like what Github copilot does - pass as context all the files in open editors. Does that sound reasonable to you? If so, I can take a crack at implementing it.

@trymeouteh
Copy link

Cody AI does this and is very useful. To scan the entire workspace and not just a single file at a time.

Would like to see Rubberduck do this

I also made this feature request for a fork of this extension called Privy
srikanth235/privy#27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants