chore: reuse existing test functions with upstash vdb (#9679)

This commit is contained in:
ice yao
2024-10-23 10:42:11 +08:00
committed by GitHub
parent d5a93a6400
commit ceb2c4f3ef
3 changed files with 7 additions and 42 deletions

View File

@@ -117,7 +117,7 @@ class UpstashVectorFactory(AbstractVectorFactory):
collection_name = class_prefix.lower()
else:
dataset_id = dataset.id
collection_name = Dataset.gen_collection_name_by_id(dataset_id)
collection_name = Dataset.gen_collection_name_by_id(dataset_id).lower()
dataset.index_struct = json.dumps(self.gen_index_struct_dict(VectorType.UPSTASH, collection_name))
return UpstashVector(