generalize the generation of new collection name by dataset id (#2620)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user