KAG icon indicating copy to clipboard operation
KAG copied to clipboard

knext project create --config_path ./example_config.yaml 'openie_llm: &openie_llm\n'

Open ryzn0518 opened this issue 11 months ago • 4 comments

Search before asking

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

Operating system information

Linux

What happened

升级到最新版本以后,在 Kag/examples中,期望通过 knext 创建新项目

knext project create --config_path ./example_config.yaml

报错 configparser.MissingSectionHeaderError: File contains no section headers. file: './example_config.yaml', line: 2 'openie_llm: &openie_llm\n'

我的 knext 版本是 openspg-knext 0.5.2b2

How to reproduce

knext 无法创建新项目

Are you willing to submit PR?

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

ryzn0518 avatar Jan 08 '25 10:01 ryzn0518

Search before asking

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

Operating system information

Linux

What happened

升级到最新版本以后,在 Kag/examples中,期望通过 knext 创建新项目

knext project create --config_path ./example_config.yaml

报错 configparser.MissingSectionHeaderError: File contains no section headers. file: './example_config.yaml', line: 2 'openie_llm: &openie_llm\n'

我的 knext 版本是 openspg-knext 0.5.2b2

How to reproduce

knext 无法创建新项目

Are you willing to submit PR?

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

Knext has been incorporated into KAG in v0.6, you can using conda to create a new virtual env to experience latest version, or just uninstall old version of knext.

caszkgui avatar Jan 08 '25 10:01 caszkgui

我已经卸载了,然后的确看到kag 项目中有 knext,应该怎么使用呢

ryzn0518 avatar Jan 08 '25 15:01 ryzn0518

Please refer to the quick start documentation: https://openspg.yuque.com/ndx6g9/docs_en/tx0gd5759hg4xi56

If you need further assistance or additional context, feel free to ask!

zhuzhongshu123 avatar Jan 09 '25 02:01 zhuzhongshu123

I guess the official guide is not updated so it still use the v0.5 knext tutorial to create a new project. The problem was solved by installation with venv rather than Conda in my case. Conda can't update the OpenSpg-knext from v0.5 to v0.7. I hope the authors can review and update the quick start.

Etoile04 avatar May 06 '25 14:05 Etoile04

I guess the official guide is not updated so it still use the v0.5 knext tutorial to create a new project. The problem was solved by installation with venv rather than Conda in my case. Conda can't update the OpenSpg-knext from v0.5 to v0.7. I hope the authors can review and update the quick start.

You can find latest OpenSpg QuickStart here.

caszkgui avatar Aug 16 '25 00:08 caszkgui