[Bug] [Module Name] 在前端配置嵌入模型时报错
Search before asking
- [x] I had searched in the issues and found no similar issues.
Operating system information
Linux
What happened
在网页前端可以正确配置chat模型,但是配置embedding模型会报错 PemjaUtils.invoke Exception:pemja.core.PythonException: <class 'RuntimeError'>: invalid vectorizer config: object of type 'NoneType' has no len()
How to reproduce
在网页前端选择配置模型,进行嵌入模型配置(来自siliconflow的api),填好base url ,api key, model 后进行配置,就会报错PemjaUtils.invoke Exception:pemja.core.PythonException: <class 'RuntimeError'>: invalid vectorizer config: object of type 'NoneType' has no len()
Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
base url 填的是啥呢
Thank you for your feedback. We have recently resolved this issue. Please pull the updated image with: docker pull spg-registry.cn-hangzhou.cr.aliyuncs.com/spg/openspg-server:latest
前端配置向量化模型还是会报错:PemjaUtils.invoke Exception:pemja.core.PythonException: <class 'RuntimeError'>: invalid vectorizer config: object of type 'NoneType' has no len()
我也遇到了相同的问题
我也遇到了相同的问题
https://openspg.github.io/v2/docs_ch
请问解决了吗?我也遇到同样的问题
我也遇到相同的我问题
我也遇到了这个问题
换了杭州的镜像,一样有错呢,ollama的错误
根据用户手册2.1
发送测试请求
$ curl http://127.0.0.1:11434/v1/embeddings -d ' { "model": "bge-m3:latest", "input": [ "work" ] }' 我试了下在base_url加上/v1就可以成功添加了。
遇到同样的问题
我在开发者模式创建一个项目后,随后到产品模式进入这个项目下创建一个知识库会出现:PemjaUtils.invoke Exception:pemja.core.PythonException: <class 'RuntimeError'>: invalid vectorizer config: 'No configuration setting found for key name。但是正常的产品模式下创建项目,并在该项目创建知识库就不会出错,有人知道怎么解决吗
base_url需要修改为: http://<Ollama服务器IP>:11434/v1
这个issue可以关闭了