Embedding that fits the budget — pick a model that matches your corpus — step 5 of 9
Cosine similarity has two pieces: the dot product of two vectors (numerator) divided by the product of their norms (denominator). Fill in the two expressions.
- The dot product is the sum over
iofa[i] * b[i]. - The norm of a vector is
sqrt(sum of squares).
Expected output:
0.9910
⌘↵ runs the editor.read, then continue.
Embedding that fits the budget — pick a model that matches your corpus — step 5 of 9
Cosine similarity has two pieces: the dot product of two vectors (numerator) divided by the product of their norms (denominator). Fill in the two expressions.
- The dot product is the sum over
iofa[i] * b[i]. - The norm of a vector is
sqrt(sum of squares).
Expected output:
0.9910
⌘↵ runs the editor.read, then continue.