feat: Weaviate supports Chinese bm25 #12223

This commit is contained in:
nut 2024-12-31 15:06:40 +08:00
parent 9709df1ed7
commit 23c80f8ef3
2 changed files with 2 additions and 6 deletions

View File

@ -252,11 +252,7 @@ class WeaviateVector(BaseVector):
return { return {
"class": index_name, "class": index_name,
"properties": [ "properties": [
{ {"name": "text", "dataType": ["text"], "tokenization": dify_config.WEAVIATE_TOKENIZATION}
"name": "text",
"dataType": ["text"],
"tokenization": dify_config.WEAVIATE_TOKENIZATION
}
], ],
} }
else: else: