Traceback (most recent call last):
File "xx\site-packages\langchain\vectorstores\hologres.py", line 227, in add_embeddings
self.storage.insert(embedding, metadata, text, id)
File "xxx\site-packages\langchain\vectorstores\hologres.py", line 84, in insert
self.cursor.execute(
psycopg2.errors.CheckViolation: check constraint "xxxx_embedding_check" is violated by some row
有人能帮忙解答一下Hologres这个问题么?
参考下这篇文档,这里把全过程都包起来了,自动建表的向量维度和embedding模型的是一个。
或者你手动改一下holo里的表,把维度改对
https://help.aliyun.com/zh/hologres/use-cases/build-an-enterprise-specific-q-a-knowledge-base,此回答整理自钉群“实时数仓Hologres交流群”
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
本技术圈将为大家分析有关阿里云产品Hologres的最新产品动态、技术解读等,也欢迎大家加入钉钉群--实时数仓Hologres交流群32314975