Skip to content

Commit

Permalink
feat: Weaviate supports Chinese bm25 #12223
Browse files Browse the repository at this point in the history
  • Loading branch information
dajianguo committed Dec 31, 2024
1 parent 9709df1 commit 23c80f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/configs/middleware/vdb/weaviate_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ class WeaviateConfig(BaseSettings):
WEAVIATE_TOKENIZATION: Optional[str] = Field(
description="Tokenization for Weaviate",
default=None,
)
)
6 changes: 1 addition & 5 deletions api/core/rag/datasource/vdb/weaviate/weaviate_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,7 @@ def _default_schema(self, index_name: str) -> dict:
return {
"class": index_name,
"properties": [
{
"name": "text",
"dataType": ["text"],
"tokenization": dify_config.WEAVIATE_TOKENIZATION
}
{"name": "text", "dataType": ["text"], "tokenization": dify_config.WEAVIATE_TOKENIZATION}
],
}
else:
Expand Down

0 comments on commit 23c80f8

Please sign in to comment.