Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit 19a0fab

Browse files
authored
Nicer MathTeX
1 parent afa0952 commit 19a0fab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/usage-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ Valid options for `hnsw:space` are "l2", "ip, "or "cosine". The **default** is "
307307
308308
| Distance | parameter | Equation |
309309
| ----------------- | :-------: | -------------------------------------------------------: |
310-
| Squared L2 | 'l2' | d = sum((Ai-Bi)^2) |
311-
| Inner product | 'ip' | d = 1.0 - sum(Ai\*Bi) |
312-
| Cosine similarity | 'cosine' | d = 1.0 - sum(Ai\*Bi) / sqrt(sum(Ai\*Ai) \* sum(Bi\*Bi)) |
310+
| Squared L2 | 'l2' | $d = \sum\left(A_i-B_i\right)^2$ |
311+
| Inner product | 'ip' | $d = 1.0 - \sum\left(A_i \times B_i\right) $ |
312+
| Cosine similarity | 'cosine' | $d = 1.0 - \frac{\sum\left(A_i \times B_i\right)}{\sqrt{\sum\left(A_i^2\right)} \cdot \sqrt{\sum\left(B_i^2\right)}}$ |
313313
314314
### Adding data to a Collection
315315

0 commit comments

Comments
 (0)