Skip to content

Commit 4b786ed

Browse files
Apply suggestions from code review
Co-authored-by: David Dougherty <[email protected]>
1 parent 328e218 commit 4b786ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/develop/clients/redis-py/vecsearch.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ that uses the
5454
model for the embeddings. This model generates vectors with 384 dimensions, regardless
5555
of the length of the input text, but note that the input is truncated to 256
5656
tokens (see
57-
[Word piece tokenization](https://huggingface.co/learn/nlp-course/en/chapter6/6).
57+
[Word piece tokenization](https://huggingface.co/learn/nlp-course/en/chapter6/6)
5858
at the [Hugging Face](https://huggingface.co/) docs to learn more about how tokens
5959
are related to the original text).
6060

@@ -99,8 +99,8 @@ index = SearchIndex.from_dict({
9999
"attrs": {
100100
"algorithm": "HNSW",
101101
"dims": 384,
102-
"distance_metric": "l2",
103-
"datatype": "float32",
102+
"distance_metric": "L2",
103+
"datatype": "FLOAT32",
104104
},
105105
},
106106
],
@@ -112,7 +112,7 @@ server using the
112112
[`connect()`](https://docs.redisvl.com/en/stable/api/searchindex.html#redisvl.index.SearchIndex.connect)
113113
method and then use the
114114
[`create()`](https://docs.redisvl.com/en/stable/api/searchindex.html#redisvl.index.SearchIndex.create)
115-
method to actually create the index in the database. The `overwrite` parameter for `create()`
115+
method to create the index in the database. The `overwrite` parameter for `create()`
116116
ensures that the index you create replaces any existing index with
117117
the same name. The `drop` parameter deletes any objects that were
118118
indexed by the index you are replacing.

0 commit comments

Comments
 (0)