KAG icon indicating copy to clipboard operation
KAG copied to clipboard

[Bug] [Module Name] 在前端配置嵌入模型时报错

Open Shiyaoa opened this issue 6 months ago • 12 comments

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!

Shiyaoa avatar Jul 02 '25 07:07 Shiyaoa

base url 填的是啥呢

northmachine avatar Jul 03 '25 06:07 northmachine

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

northmachine avatar Jul 04 '25 02:07 northmachine

前端配置向量化模型还是会报错:PemjaUtils.invoke Exception:pemja.core.PythonException: <class 'RuntimeError'>: invalid vectorizer config: object of type 'NoneType' has no len()

UoToGK avatar Jul 10 '25 02:07 UoToGK

我也遇到了相同的问题

Ka-mate-ka-ora avatar Jul 17 '25 09:07 Ka-mate-ka-ora

我也遇到了相同的问题

https://openspg.github.io/v2/docs_ch

Image

caszkgui avatar Jul 20 '25 14:07 caszkgui

请问解决了吗?我也遇到同样的问题

syriacus99 avatar Jul 31 '25 05:07 syriacus99

我也遇到相同的我问题

zhubingbing avatar Aug 29 '25 05:08 zhubingbing

Image 我也遇到了这个问题

ren596938857-png avatar Sep 14 '25 06:09 ren596938857-png

换了杭州的镜像,一样有错呢,ollama的错误

WildDogDeveloper avatar Sep 22 '25 09:09 WildDogDeveloper

根据用户手册2.1

发送测试请求

$ curl http://127.0.0.1:11434/v1/embeddings -d ' { "model": "bge-m3:latest", "input": [ "work" ] }' 我试了下在base_url加上/v1就可以成功添加了。

sundayisthebest avatar Oct 21 '25 09:10 sundayisthebest

遇到同样的问题

a67793581 avatar Oct 24 '25 10:10 a67793581

我在开发者模式创建一个项目后,随后到产品模式进入这个项目下创建一个知识库会出现:PemjaUtils.invoke Exception:pemja.core.PythonException: <class 'RuntimeError'>: invalid vectorizer config: 'No configuration setting found for key name。但是正常的产品模式下创建项目,并在该项目创建知识库就不会出错,有人知道怎么解决吗

kuang1216 avatar Nov 12 '25 02:11 kuang1216

base_url需要修改为: http://<Ollama服务器IP>:11434/v1

RichardASimon avatar Dec 18 '25 07:12 RichardASimon

这个issue可以关闭了

RichardASimon avatar Dec 18 '25 07:12 RichardASimon