change recreate_collection function to create_collection (#16212)

pull/16227/head
Jyong 1 year ago committed by GitHub
parent 732c506e27
commit c3c957bb80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -119,7 +119,7 @@ class QdrantVector(BaseVector):
max_indexing_threads=0, max_indexing_threads=0,
on_disk=False, on_disk=False,
) )
self._client.recreate_collection( self._client.create_collection(
collection_name=collection_name, collection_name=collection_name,
vectors_config=vectors_config, vectors_config=vectors_config,
hnsw_config=hnsw_config, hnsw_config=hnsw_config,

@ -129,7 +129,7 @@ class TidbOnQdrantVector(BaseVector):
max_indexing_threads=0, max_indexing_threads=0,
on_disk=False, on_disk=False,
) )
self._client.recreate_collection( self._client.create_collection(
collection_name=collection_name, collection_name=collection_name,
vectors_config=vectors_config, vectors_config=vectors_config,
hnsw_config=hnsw_config, hnsw_config=hnsw_config,

Loading…
Cancel
Save