askthecode / documentation

MIT License
86 stars 14 forks source link

Unable to perform any git operations #26

Open anant007 opened 7 months ago

anant007 commented 7 months ago

Its unable to fetch anything from git. I dont know if its an auth issue or what exacly. But I have been getting an error everytime I have tried to query it about any repo.

dsomok commented 6 months ago

Hi @anant007,

I sincerely apologize for the delayed response, and I have completely missed the creation of this issue. If you're still experiencing the problem, could you please test with the latest version of AskTheCode GPT?

I apologize again for overlooking your issue, and I hope you're still interested in trying AskTheCode.

Please ping me if the issue persists or if it has been resolved.

Thank you for your patience and understanding.

anant007 commented 5 months ago

@dsomok Hey thanks for the reply, I didn't get notified about this at all. I really like the product that you've built, however I am facing still facing some issues with fetching source files from git repos that are well within the GPT-4 context window. It seems arbitrary that beyond certain line numbers it refuses to retrieve or recognize larger files.

dsomok commented 5 months ago

Hey @anant007, thanks for reaching out, I'm happy to hear that you enjoy the product!

Currently, there is a hard limitation set by OpenAI that responses from GPT actions cannot be bigger than 100k characters long. Since I need to reserve some characters for file metadata, system prompts, etc., the current limit for the file size is 90k characters. Can it be the case that you interact with some large files that are bigger than 90k characters long?

If that's the case, I would suggest looking into an approach with searching over the large file first and specifying the number of lines to grab after each search hit. I have this approach documented here: Querying Large Files.

Unfortunately, the documentation here is a bit outdated; it's created for the legacy AskTheCode Plugin version and is mostly focused on overcoming the context window size issue, but the approach is still valid for the AskTheCode GPT as well. Sorry for the outdated documentation, I'm currently finishing with the support for interacting with Pull Requests, and after that, I will be working on bringing the documentation to the up-to-date state.

If the 90k characters hard limit is not the case and files are actually smaller, could you please share some sample conversation (via Share button at the top-right corner) or at least the links to the files, so I could test it on my side and do the fix?

jsbien commented 3 weeks ago

I had a similar problem: https://support.github.com/ticket/personal/0/2944187. See also https://chatgpt.com/share/d57d0c53-3b66-4653-871d-80cfb54ce88f