mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
change recreate_collection function to create_collection (#16212)
This commit is contained in:
@ -119,7 +119,7 @@ class QdrantVector(BaseVector):
|
||||
max_indexing_threads=0,
|
||||
on_disk=False,
|
||||
)
|
||||
self._client.recreate_collection(
|
||||
self._client.create_collection(
|
||||
collection_name=collection_name,
|
||||
vectors_config=vectors_config,
|
||||
hnsw_config=hnsw_config,
|
||||
|
||||
@ -129,7 +129,7 @@ class TidbOnQdrantVector(BaseVector):
|
||||
max_indexing_threads=0,
|
||||
on_disk=False,
|
||||
)
|
||||
self._client.recreate_collection(
|
||||
self._client.create_collection(
|
||||
collection_name=collection_name,
|
||||
vectors_config=vectors_config,
|
||||
hnsw_config=hnsw_config,
|
||||
|
||||
Reference in New Issue
Block a user