소스 검색

chore: skip deprecated field_schema param in creating payload index on Qdrant (#3903)

Bowen Liang 11 달 전
부모
커밋
142814d451
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      api/core/rag/datasource/vdb/qdrant/qdrant_vector.py

+ 1 - 2
api/core/rag/datasource/vdb/qdrant/qdrant_vector.py

@@ -117,8 +117,7 @@ class QdrantVector(BaseVector):
 
                 # create payload index
                 self._client.create_payload_index(collection_name, Field.GROUP_KEY.value,
-                                                  field_schema=PayloadSchemaType.KEYWORD,
-                                                  field_type=PayloadSchemaType.KEYWORD)
+                                                  field_schema=PayloadSchemaType.KEYWORD)
                 # creat full text index
                 text_index_params = TextIndexParams(
                     type=TextIndexType.TEXT,