3 ms·
I had an interesting ChatGPT experience yesterday where I asked it > How can I increase the version of a TextDocument in VSCode from an extension? and got a p
by auggierose 4y ago
I had an interesting ChatGPT experience yesterday where I asked it
> How can I increase the version of a TextDocument in VSCode from an extension?
and got a perfectly plausible answer, very eloquently explaining the following code
// Get the TextDocument object
const document = vscode.window.activeTextEditor.document;
// Update the TextDocument version
document.update([], {incrementVersion: true});
The problem is, there is no document.update method... But the really amazing thing is that when I told ChatGPT about the nonexistence of the update method, it apologised, and then gave me a more involved, but correct answer.
- andyjohnson0 4y agoI'd be interested to know happens if you ask your original question again. Do you get the original answer referencing the non-existent method? Or did you force it to update its state (knowledge of the world) such that it now always gives the second answer?
- danpalmer 4y agoState is only persisted per session, so no it will not learn globally. This is fairly important otherwise users could feed it false information.
- Genmutant 4y agoChatGpt is finished training and doesn't update itself in any way. The current conversation is fed each time as additional context back when you ask additional questions.
- andyjohnson0 4y agoThanks for the clarification. If the chat is published on the net, and becomes part of ChatGPT's future training data, I wonder whether ChatGPT could somehow become "aware" of it in a way that would change its subsequent behaviour?
- auggierose 4y agoNo, starting a new chat it gives me again a (different) wrong answer. I should add that I looked closer now at the transcript from yesterday, and the second answer it gave me after apologising was actually not correct, but correct enough for me to code it with the help of some actual API documentation.
- KeplerBoy 4y agoYou might get the correct answer on the second try, but that would be down to random seeds.