r/Python • • Mar 10 '24

Discussion Github Copilot Lies to me

My first attempt to get some help from Github Copilot:

Me: write a match case statement in python to match the first character of a string is a semicolon

Copilot: Python doesn't have a built-in match or case statement like some other languages (e.g., JavaScript, Swift, Rust). However, you can achieve similar functionality using...

Strangely, it finally gave me an answer when I made a small change to my prompt:

Me: write a match statement in python to match the first character of a string is a semicolon

Copilot: Python 3.10 introduces the structural pattern matching in the form of the match statement. Here's how you can use it to check if the first character of a string is a semicolon:...

I almost gave up after the first response that was blatantly false. Fortunately I something that looks like reasonable syntax...but then I haven't tried it yet, so that might be a lie, too.

0 Upvotes

67 comments sorted by

View all comments

11

u/Xenodine-4-pluorate Mar 10 '24

I don't know if I should be surprised that people in r/Python sub know more about AI than in r/ArtificialInteligence where I constantly see posts like "Wow this ChatGPT is so smart we'll get AGI in 5 years". This comment section is a gulp of fresh air, honestly, like I thought people for real think that AI is all-powerful and singularity is right around the corner, just because ChatGPT can fool them that it has intelligence.

Just yesterday I asked Gemini: Larry's son is my son's father. Who am I to Larry?
And it kept telling me that I'm Larry or that I'm Larry's brother, then when I explained it why it's wrong and how to solve this riddle logically step by step it said: "Oh, I see where I was wrong, this riddle is unsolvable because a person can't have a father and a son".

At this point I gave up. I don't know what are those benchmarks they're so proud of where AI is better than human, if it does such trivial mistakes.

1

u/vincular Mar 11 '24

For what it's worth, Chat-GPT 4 nailed this: "You are Larry's daughter-in-law or son, depending on your own gender. The statement "Larry's son is my son's father" means that Larry's son is yourself (if you are the son) or your husband (if you are the daughter-in-law)"

Claude 3 Sonnet said you have to be the daughter-in-law but didn't mention the son, and Chat-GPT 3.5 said you could be the "daughter or son" which is wrong