Nothing above was special about Wikipedia articles. Any two chunks of text become vectors the same way, so the same cosine compares them. Paste or type into both boxes and watch the score. (A search query is just an extreme case: a document one line long.)
Fill both boxes (or load an example) to compare them.
Every word both texts use adds weightA × weightB to the score: