From 051c03c3c9e4f3cb61c63a680fcbf6c3d98ba8d3 Mon Sep 17 00:00:00 2001 From: Lei Xu Date: Thu, 29 Jun 2023 10:32:01 -0700 Subject: [PATCH] Add dot product support (#239) Closes #207 --- docs/src/search.md | 9 +++++---- node/src/index.ts | 7 ++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/src/search.md b/docs/src/search.md index 9414cdcb..14f1aced 100644 --- a/docs/src/search.md +++ b/docs/src/search.md @@ -17,7 +17,8 @@ Currently, we support the following metrics: | Metric | Description | | ----------- | ------------------------------------ | | `L2` | [Euclidean / L2 distance](https://en.wikipedia.org/wiki/Euclidean_distance) | - +| `Cosine` | [Cosine Similarity](https://en.wikipedia.org/wiki/Cosine_similarity)| +| `Dot` | [Dot Production](https://en.wikipedia.org/wiki/Dot_product) | ## Search @@ -29,7 +30,7 @@ If there is no [vector index is created](ann_indexes.md), LanceDB will just brut the vector column and compute the distance.