Skip to content

Commit

Permalink
qdrant migrate issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong committed Sep 20, 2023
1 parent 127d602 commit b247335
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions api/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,20 +538,6 @@ def deal_dataset_vector(flask_app: Flask, dataset: Dataset, normalization_count:
index.restore_dataset_in_one(dataset, dataset_collection_binding)
else:
click.echo('passed.')
if not dataset.collection_binding_id:
original_index = QdrantVectorIndex(
dataset=dataset,
config=QdrantConfig(
endpoint=current_app.config.get('QDRANT_URL'),
api_key=current_app.config.get('QDRANT_API_KEY'),
root_path=current_app.root_path
),
embeddings=embeddings
)
if original_index:
original_index.delete_original_collection(dataset, dataset_collection_binding)
else:
click.echo('passed.')
normalization_count.append(1)
except Exception as e:
click.echo(
Expand Down

0 comments on commit b247335

Please sign in to comment.