Skip to content

Comment on Test Driven Development (TDD) for your LLMs? Yes please, more of that pleaseparent

Comments

"An AI assistant was tasked with {task}. The relevant information for their task was {context}. Their answer is {answer}. The correct answer should be something like {ground truth}. Is their answer correct?"

If you have a ground truth, what was the purpose of asking the AI assistant for an answer in the first place?

When you're writing a test, you usually know the correct answer for that specific combination of input parameters.

Looking back at it, I must have been very tired when I wrote that!

Or maybe I was thinking about cases where the ground truth is difficult to establish.

The cat is dead. The cat is no longer alive. These are equivalent enough, usually, but fails string comparison.

Or like of you did ai voice calling the goal was XYZ did the conversation get, in so many words, to XYZ?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.