Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用医疗模板实现金融领域KAG,xlsx中包括7篇文章,但是indexer.py后只抽取并写入成功两篇,剩下5篇写入spo和chunk失败,请问怎么解决 #143

Open
1 of 2 tasks
JaDonghao opened this issue Dec 18, 2024 · 2 comments

Comments

@JaDonghao
Copy link

Search before asking

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

Operating system information

Linux

What happened

Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/kag/builder/component/extractor/kag_extractor.py", line 321, in invoke
sub_graph, entities = self.assemble_sub_graph_with_spg_records(entities)
File "/opt/conda/lib/python3.9/site-packages/kag/builder/component/extractor/kag_extractor.py", line 136, in assemble_s
if prop_name in spg_type.properties:
AttributeError: 'NoneType' object has no attribute 'properties'
INFO:kag.builder.component.extractor.kag_extractor: NoneType' object has no attribute 'properties'
使用医疗模板实现金融领域KAG,xlsx中包括7篇文章,但是indexer.py后只抽取并成功写入两篇,剩下5篇写入spo和chunk失败,后续重新抽取5篇文章,以一篇部分内容实现依旧没有写入本地知识库,抽取时会出现以上错误,回答问题时sub_answer: I don't know; docs: []; spo_retrieved:[]; exactly_match: False. 同时还会出现 query chunk failed: (400) , knext.common.rest.exceptions.ApiException: (400), Failed to invoke procedure 'db,index.fulltext.quermodes : caused by: org.apache.lucene.search.Indexsearcher$Tolanyclauses: maxclausecount is set to 1024

How to reproduce

代码没有开源,希望您根据我这边的问题,提出一个解决方案或者思路,拜托了

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@thundax-lyp
Copy link
Contributor

换个大模型试试

@JaDonghao
Copy link
Author

JaDonghao commented Dec 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants