fix: update mismatch vector type (#9462)

This commit is contained in:
ice yao 2024-10-18 08:21:41 +08:00 committed by GitHub
parent a53fdc7126
commit 2155bba5b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -216,7 +216,7 @@ class PGVectoRSFactory(AbstractVectorFactory):
else:
dataset_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.WEAVIATE, collection_name))
dataset.index_struct = json.dumps(self.gen_index_struct_dict(VectorType.PGVECTO_RS, collection_name))
dim = len(embeddings.embed_query("pgvecto_rs"))
return PGVectoRS(