Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Name the metric that compares vector direction by dividing the dot product by both vector norms." on CodeWiki (https://codewiki.com/practice/fill/ai/checkpoint-3/checkpoint-3-cosine-similarity/).
Context (verbatim from the page):
"""
Name the metric that compares vector direction by dividing the dot product by both vector norms.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in AI and LLM engineering. Where you are unsure, say so.