mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-11 13:59:04 +08:00
fix: update mismatch vector type (#9462)
This commit is contained in:
parent
a53fdc7126
commit
2155bba5b0
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user