lightrag运行错误
这是我的报错。
这是我的config 请问我是哪里出了问题 谢谢您
faiss-gpu==1.9.0.post1 您好 您的版本是这个吗 我显示不兼容
this is my bug:2025-04-07 23:40:34.429 | WARNING | Core.Common.CostManager:update_cost:49 - Model Qwen/Qwen2.5-7B-Instruct not found in TOKEN_COSTS.
传递参数内容1: {'seed': 'Cryptocurrency industry, Criminal trial, Fraud, Conspiracy charges, Personal gain'}
传递参数内容2: {'seed': 'Cryptocurrency industry, Criminal trial, Fraud, Conspiracy charges, Personal gain'}
2025-04-07 23:40:34.647 | ERROR | Core.Query.BasicQuery:_retrieve_relevant_contexts_global_keywords:175 - edge_datas is None. Checking relations_vdb...
2025-04-07 23:40:34.648 | ERROR | Core.Query.BasicQuery:_retrieve_relevant_contexts_global_keywords:180 - relations_vdb not found in retriever
Traceback (most recent call last):
File "/home/yanshiqi/GraphRAG-master2/main.py", line 90, in
---------------------------------------------------------------------------------------------------------------------------------------------------调试发现这个图里的edge_datas = None , 请问您有办法解决吗万分感谢
请给我看一下允许的指令和方法的config?
这是我的报错。
这是我的config 请问我是哪里出了问题 谢谢您
想问下这个问题解决了嘛?
From the traceback, the key issue is:
TypeError: 'NoneType' object is not iterable
This happens inside EntityRetriever.py when it tries to loop over entities_by_relationships. That means the entity extraction step returned None instead of a valid list/dict.
Typical reasons for this:
- The retriever didn’t find any entities in the text (empty result, not handled properly).
- The config for the retriever is pointing to a wrong or uninitialized embedding / model API (so the entity extractor never returns structured data).
- If the API call fails silently, the pipeline still proceeds but passes
Nonedownstream.
So the real problem isn’t in the query itself, but in the retriever pipeline returning None where the code expects an iterable.
Just delete the entity_vdb and relations_vdb in rkg_graph, then regenerate them. :D