Browse Source

fix: update mismatch vector type (#9462)

tags/0.10.0
ice yao 1 year ago
parent
commit
2155bba5b0
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/core/rag/datasource/vdb/pgvecto_rs/pgvecto_rs.py

+ 1
- 1
api/core/rag/datasource/vdb/pgvecto_rs/pgvecto_rs.py 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(

Loading…
Cancel
Save