Grade 11 curriculum
Rank passages for a search
Dot product adds the products of matching coordinates. Cosine divides that dot product by the two vector lengths, so it compares direction. For a query (1, 0), a candidate (4, 3) scores 4 by dot product and 0.80 by cosine. A high score helps you choose what to read. The source and its exact words determine what you can report.
- Build
- Revise
- New task
Find evidence for a tool return
Can a visitor return a borrowed tool at 6 p.m. after the service desk closes? Use the current equipment rules. The query vector is (1, 0). Compare dot product and cosine, predict the full ranking for your chosen method, then run a search that returns one source.
| ID | Source | Vector |
|---|---|---|
| A | Borrowing counter | (5, 5) |
| B | Return instructions | (2, 0) |
| C | Woodshop talk | (0, 3) |