Asking it about these things sounds like it would result in questionable, at best, responses.
Asking it about these things sounds like it would result in questionable, at best, responses.
Of course, that doesn't tell you whether the machine understanding will be useful or not
(A) wait for future models that are planned to have much longer contexts
(B) fine tune a model on this specific code base, so the code base is part of the training data not the prompt
(C) Break the problem up into multiple invocations of the model. Feed each source file in separately and ask it to give a brief plain text summary of each. Then concatenate those summaries and ask it questions about it. Still probably not going to perform that well, but likely better than just giving it a large code base directly
Another issue is that, even the best of us make mistakes sometimes, but then we try the answer and see it doesn’t work (compilation error, we remembered the name of the class wrong because there is no class by that name in the source code, etc). OOTB, ChatGPT has no access to compilers/etc so it can’t validate its answers. If one gave it access to an external system for doing that, it would likely perform better.
[0] https://mobile.twitter.com/goodside/status/15988746742046187...