generalize the generation of new collection name by dataset id (#2620)

This commit is contained in:
Bowen Liang
2024-02-29 12:47:10 +08:00
committed by GitHub
parent 0428f44113
commit 801d135390
5 changed files with 12 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ class WeaviateVector(BaseVector):
return class_prefix
dataset_id = dataset.id
return "Vector_index_" + dataset_id.replace("-", "_") + '_Node'
return Dataset.gen_collection_name_by_id(dataset_id)
def to_index_struct(self) -> dict:
return {