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

Feeding with files/directories in addition to the other functions #158

Closed
sreimchen opened this issue Feb 24, 2023 · 4 comments
Closed

Feeding with files/directories in addition to the other functions #158

sreimchen opened this issue Feb 24, 2023 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sreimchen
Copy link

Great extension, thanks a lot for your work!

There is on specific function I am missing at the moment which is to feed the conversation with multiple files. I think passing file by file or each file after each other is the way to go here. So awaiting the asynchronous calls call by call in a loop.

Let's assume the user got the following file structure in example:

main.cpp
network/
├─ wifi.h
├─ wifi.cpp
├─ ntp.h

The user would mark all the files, right click and the context menu opens and the user selects "Add files to conversation". Therefore we could provide:

  1. A tree like structure like above and instructions how to proceed with the incoming conversation details
  2. Tell the AI to just answer with some predefined answer like e.g. "Ok" or even to "Comment it in two sentences" (could be modified of course)
  3. Then pass file by file with a filename

So this would look like this:
User: "Here is some context for the next questions. At first have a look at the following file structure:
main.cpp
network/
├─ wifi.h
├─ wifi.cpp
├─ ntp.h

In the next steps I will show you the file name and content. For every file just answer with 'Ok' till I tell you to do differently."
Bot: "Ok"
User: "main.cpp: ..."
Bot: "Ok"
User: "network/wifi.h: ..."
Bot: "Ok"
User: "network/wifi.cpp: ..."
Bot: "Ok"
User: "network/ntp.h: ..."
Bot: "Ok"
User: "That's it. Just tell me if you understood or didn't in a sentence."

@sreimchen sreimchen changed the title Feeding with files/directories in addition to the contextual functions Feeding with files/directories in addition to the other functions Feb 24, 2023
@ncesar
Copy link

ncesar commented Feb 27, 2023

hmm lets keep in mind chatgpt has a limit of context so this would work for smaller files but not for medium-bigger files.

I think we should keep things the way it is. Github CoPilot works better for this specific context I guess.

Correct me if I'm wrong.

@sreimchen
Copy link
Author

You're right that ChaptGPT is limited in that sense but this doesn't mean that this isn't a useful feature in my opinion because ChatGPT's answers are quite more accurate if you share any context. As a user you can control the amount of context and sharing a single (and even 2 or 3) file(s) can be handled without a problem in my experience. Even if nobody can say what the future brings I think the amount of possible amount of context will be generally increasing. So it makes sense to realize this feature in my opinion.

@gencay gencay added the enhancement New feature or request label Mar 15, 2023
@gencay gencay closed this as completed Mar 18, 2023
@sreimchen
Copy link
Author

Hm, isn't this even more useful with GPT-4 because of the havily increased context length?

@gencay
Copy link
Owner

gencay commented Mar 18, 2023

@sreimchen Please see #239 and our readme about our announcement :(

I'll make sure to archive these feature requests and provide to whomever continues the journey, it won't be us unfortunately.

@gencay gencay added the help wanted Extra attention is needed label Mar 18, 2023
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

3 participants