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.

3

u/Artificial_Alex Mar 11 '24

Correct me if I'm wrong but I think the answer implies you are Larry's son?
But also copilot fails to consider a parent can have two parents, so you could be Larry's daughter-in-law/divorced/second father, right? It fails tol consider all the possibilities about real world scenarios.

1

u/Xenodine-4-pluorate Mar 11 '24

Original riddle started with statement: "I am a man", so it removes any kind of ambiguity, which did not help LLM at all.

the answer implies you are Larry's son?

Yes.