Cosine similarity returns negative maximum value
Cosine similarity returns negative maximum value: a task in harness-adapters: Agentic coding environments (Harbor dataset). The Cosine similarity algorithm is returning -1 as its maximum value instead of the expected 1. This affects all cosine similarity calculations and causes them to return…
The task
The Cosine similarity algorithm is returning -1 as its maximum value instead of the expected 1. This affects all cosine similarity calculations and causes them to return incorrect results.
Part of harness-hub/harness-adapters.