Skip to content

Commit

Permalink
Fix innerproduct function to match Dot Product (#1004) (#1086)
Browse files Browse the repository at this point in the history
* Fix innerproduct function to match Dot Product

Signed-off-by: Naarcha-AWS <[email protected]>

* Fix formatting

Signed-off-by: Naarcha-AWS <[email protected]>

* Use dot instead

Signed-off-by: Naarcha-AWS <[email protected]>

* Remove parenthesies

Signed-off-by: Naarcha-AWS <[email protected]>

* Remove space

Signed-off-by: Naarcha-AWS <[email protected]>

Signed-off-by: Naarcha-AWS <[email protected]>
(cherry picked from commit d65b56f)

Co-authored-by: Naarcha-AWS <[email protected]>
  • Loading branch information
1 parent 8a306d5 commit f7f9a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _search-plugins/knn/knn-score-script.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ A space corresponds to the function used to measure the distance between two poi
</tr>
<tr>
<td>innerproduct</td>
<td>\[ Distance(X, Y) = \sum_{i=1}^n (X_i - Y_i) \]</td>
<td>\[ Distance(X, Y) = \sum_{i=1}^n X_iY_i \]</td>
<td>1 / (1 + Distance Function)</td>
</tr>
<tr>
Expand Down

0 comments on commit f7f9a84

Please sign in to comment.