KAG icon indicating copy to clipboard operation
KAG copied to clipboard

[Bug] [illegal params ] illegal params graphStore is null

Open 123132456456454 opened this issue 11 months ago • 7 comments

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Operating system information

Linux

What happened

无法成功设置api模型,点确定抛出illegal params g

Image

aphStore is null

How to reproduce

illegal params gaphStore is null

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

123132456456454 avatar Jan 23 '25 00:01 123132456456454

抽取会用到向量配置和模型配置,所以都需要配,请先配置向量,在配置模型

zivh26 avatar Jan 23 '25 03:01 zivh26

可是我先输入向量配置都有问题啊。每次创建知识库就拦截

oqwn avatar Jan 30 '25 11:01 oqwn

+1

928871247 avatar Feb 17 '25 06:02 928871247

@123132456456454 @13535048320 @oqwn 跟执行顺序有关:

  1. 先执行 spg快速开始文档 到第2步完成
    • 但此时 知识库列表 是 空的,别急着添加 模型
    • 但初始密码一定要改
  2. 再执行 KAG安装文档
    • py要3.10 (我试过3.12一堆报错)
    • 此时可以准备 LLM 的服务了(可以本地,或用MAAS服务
    • 安装好后,步骤1中 spg 服务也是启动的,可以验证下 knext --version
  3. 初始化 第一个 案例 kag/examples/musique
    • 进入目录先改配置 kag_config.yaml 把 LLM 的各种参数填好
    • 其中 向量配置建议用硅基流动的 免费模型: BAAI/bge-large-zh-v1.5
    • 按文档执行初始化知识库,期间可以看模型 可视化展示页面 动态效果
    • 案例文档 执行完后,回到 spg服务首页 会看到知识库列表多了个 MuSiQue
  4. 打开 项目高级配置说明全局配置 中的图存储、向量、提示词都配置好
    • 向量配置建议用 硅基流动的 免费模型 同上面3.2步骤
    • 全局的模型配置也建议用 硅基流动
    • 此时不会再报错 illegal params: graphStore is null
  5. 选择 知识库问答 开始玩吧

附图: 我的环境 和 最终效果

Image Image Image Image Image

highsea avatar Feb 28 '25 03:02 highsea

@highsea 不好意思,我用的 docker compose,仍有几个问题

  1. spg-registry.cn-hangzhou.cr.aliyuncs.com/spg/openspg-server:latest 的 python 版本是 3.8.10
  2. knext --version 输出如下
(openspg_venv) root@8442cb0abea2:/# knext --version
Done initialize project config with host addr http://127.0.0.1:8887 and project_id 1
No config found.
knext, version 0.6-beta3
  1. 容器中没有初始案例,所以也同样没有 kag_config.yaml
  2. 这种项目配置都是不能在 Web UI 上面完成的吗?以为文档里面提供的基本都是 json 格式,但也没提到配置在哪个位置
  3. 而且文档中的 “KAG 安装” 是已经过时了

928871247 avatar Feb 28 '25 03:02 928871247

@13535048320 我也是docker-compose 方式,

  • 但是它只是帮你启动了 SPG server,
  • 知识库初始化还是得 KAG ,
  • 你可以参考 我上文的步骤 3:“初始化 第一个 案例 kag/examples/musique

文档都会过时 ^_^ ,我也是 通过 KAG 仓库 踩的坑,试试

  • clone kag 仓库,环境按我的版本
  • 修改 kag_config.yaml ,然后 看kag文档 初始化

highsea avatar Feb 28 '25 06:02 highsea

@highsea 好的,感谢回复

928871247 avatar Feb 28 '25 06:02 928871247

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Operating system information

Linux

What happened

无法成功设置api模型,点确定抛出illegal params g

Image

aphStore is null

How to reproduce

illegal params gaphStore is null

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

This bug has been fixed. And the latest User Manual is: https://openspg.github.io/v2/docs_ch

caszkgui avatar Aug 16 '25 07:08 caszkgui