mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-10 07:49:04 +08:00
add the index field for elasticsearch (#10592)
This commit is contained in:
parent
ef8022f715
commit
0b2d51d859
@ -178,6 +178,7 @@ class ElasticSearchVector(BaseVector):
|
||||
Field.VECTOR.value: { # Make sure the dimension is correct here
|
||||
"type": "dense_vector",
|
||||
"dims": dim,
|
||||
"index": True,
|
||||
"similarity": "cosine",
|
||||
},
|
||||
Field.METADATA_KEY.value: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user