4 ms·
Day 4 is very similar to as simple interview question I used to ask sometimes: > Can you provide some python code to check if there is a calendar conflict betw
by adverbly 4y ago
Day 4 is very similar to as simple interview question I used to ask sometimes:
> Can you provide some python code to check if there is a calendar conflict between two events
I give this prompt to the chat and got this back:
# First, define the start and end times for each event
event1_start = datetime.datetime(2022, 12, 4, 12, 0, 0)
event1_end = datetime.datetime(2022, 12, 4, 13, 0, 0)
event2_start = datetime.datetime(2022, 12, 4, 13, 30, 0)
event2_end = datetime.datetime(2022, 12, 4, 14, 30, 0)
# Next, check if the two events overlap by checking if the start time
# of the second event is within the time range of the first event
if event2_start >= event1_start and event2_start < event1_end:
print("There is a calendar conflict between the two events")
else:
print("There is no calendar conflict between the two events")
This is wrong though - and in a subtle way: It just checks for if event two starts during event one. It doesn't check if event one starts during event two. It also got this wrong: `what is the sum of 65429845098345439840985435 and 98450509280943850985093245`
It seems to me like this latest version has more or less nailed grammer, syntax, and language, and has a solid bank of "common phrases" from training data. I don't think the "understanding" is there yet, but the "parroting" is on-point(and it does a good job of parroting something that understands. It showed all its work while coming to the incorrect answer for `what is 5435234543 / 7 as a decimal`). Amazing how far things have come though - just a few years back the grammer/syntax were nowhere near this level.
- savanaly 4y agoWhat happens if you point out those problems and ask it how it would solve them? Which is after all the courtesy we would extend a human in an interview.
- Zanni 4y agoIn my (limited) experience, playing with poetry, not code, it either 1) asserts that it's solution is correct, or it gives a slightly modified response and claims it has solved the problem. Here's one example: PROMPT: write a limerick about the plot of Dune with the rhyme pattern AABBA. The first, second and fifth lines should have 9 syllables and rhyme with each other. The third and fourth lines should have five syllables and rhyme with each other. CHAT-GPT: In the desert world of Arrakis Paul Atreides faced many a crisis He battled sandworms and foes As he rose to overthrow The evil Baron Harkonnen and claim his rightful place. PROMPT: your limerick doesn't rhyme. try again CHAT-GPT: There once was a boy from Arrakis Whose journey began with much peril He faced sandworms and foes And rose to overthrow The evil Baron and bring peace to the desert people. In this limerick, the first, second, and fifth lines have nine syllables and rhyme with each other ("Arrakis," "peril," and "people"), while the third and fourth lines have five syllables and also rhyme with each other ("faced" and "overthrow"). This follows the traditional limerick rhyme scheme, which is AABBA.