Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pages/querying/vector-search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,16 @@ for the metric is `l2sq` (squared Euclidean distance).
| `sorensen` | Sørensen-Dice coefficient |
| `jaccard` | Jaccard index |

### Cosine similarity

You can calculate cosine similarity directly in queries using the `vector_search.cosine_similarity()` function. This is useful when you need to compute similarity between vectors without creating a vector index.

{<h3 className="custom-header"> Usage: </h3>}

```cypher
RETURN vector_search.cosine_similarity([1.0, 2.0], [1.0, 3.0]) AS similarity;
```

### Scalar type

Properties are stored as 64-bit values in the property store. However, for efficiency, vector elements in the vector index are stored using 32-bit values by default.
Expand Down