File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
content/develop/clients/redis-py Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ that uses the
5454model for the embeddings. This model generates vectors with 384 dimensions, regardless
5555of the length of the input text, but note that the input is truncated to 256
5656tokens (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 )
5858at the [ Hugging Face] ( https://huggingface.co/ ) docs to learn more about how tokens
5959are 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 )
113113method 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() `
116116ensures that the index you create replaces any existing index with
117117the same name. The ` drop ` parameter deletes any objects that were
118118indexed by the index you are replacing.
You can’t perform that action at this time.
0 commit comments