Skip to content

Commit

Permalink
add the index field for elasticsearch (langgenius#10592)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong authored and jiangzhijie committed Nov 14, 2024
1 parent d61ba0c commit 8434593
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def create_collection(
Field.VECTOR.value: { # Make sure the dimension is correct here
"type": "dense_vector",
"dims": dim,
"index": True,
"similarity": "cosine",
},
Field.METADATA_KEY.value: {
Expand Down

0 comments on commit 8434593

Please sign in to comment.