Skip to content

Commit c3c957b

Browse files
authored
change recreate_collection function to create_collection (#16212)
1 parent 732c506 commit c3c957b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/core/rag/datasource/vdb/qdrant/qdrant_vector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def create_collection(self, collection_name: str, vector_size: int):
119119
max_indexing_threads=0,
120120
on_disk=False,
121121
)
122-
self._client.recreate_collection(
122+
self._client.create_collection(
123123
collection_name=collection_name,
124124
vectors_config=vectors_config,
125125
hnsw_config=hnsw_config,

api/core/rag/datasource/vdb/tidb_on_qdrant/tidb_on_qdrant_vector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def create_collection(self, collection_name: str, vector_size: int):
129129
max_indexing_threads=0,
130130
on_disk=False,
131131
)
132-
self._client.recreate_collection(
132+
self._client.create_collection(
133133
collection_name=collection_name,
134134
vectors_config=vectors_config,
135135
hnsw_config=hnsw_config,

0 commit comments

Comments
 (0)