Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Commit 1a206e9

Browse files
committed
correct hsnw typo
1 parent 3a83594 commit 1a206e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/dql/predicate-indexing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Types `int`, `float`, `bool` and `geo` have only a default index each: with toke
2626

2727
Types `string` and `dateTime` have a number of indices.
2828

29-
Type `float32vector` supports `hsnw` index.
29+
Type `float32vector` supports `hnsw` index.
3030

3131
## String Indices
3232
The indices available for strings are as follows.
@@ -51,12 +51,12 @@ The indices available for `float32vector` are as follows.
5151

5252
| Dgraph function | Required index / tokenizer | Notes |
5353
| :----------------------- | :------------ | :--- |
54-
| `similar_to` | `hsnw` | HSNW index supports parameters `metric` and `exponent`. |
54+
| `similar_to` | `hnsw` | HSNW index supports parameters `metric` and `exponent`. |
5555

5656

5757
#
5858

59-
`hsnw` (**Hierarchical Navigable Small World**) index supports the following parameters
59+
`hnsw` (**Hierarchical Navigable Small World**) index supports the following parameters
6060
- metric : indicate the metric to use to compute vector similarity. One of `cosine`, `euclidean`, and `dotproduct`. Default is `euclidean`.
6161

6262
- exponent : An integer, represented as a string, roughly representing the number of vectors expected in the index in power of 10. The exponent value,is used to set "reasonable defaults" for HSNW internal tuning parameters. Default is "4" (10^4 vectors).

0 commit comments

Comments
 (0)