[Bug]: <title>运行graphrag index 经常会出现错误
Do you need to file an issue?
- [ ] I have searched the existing issues and this bug is not already filed.
- [ ] My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
- [ ] I believe this is a legitimate bug, not just a question. If this is a question, please use the Discussions area.
Describe the bug
GraphRagV1.2.0 PythonV3.12.8 运行graphrag index --root后 问题1 graphrag.utils.storage INFO reading table from storage: create_base_text_units.parquet graphrag.utils.storage INFO reading table from storage: create_base_text_units.parquet httpx INFO HTTP Request: POST http://localhost:11434/v1/chat/completions "HTTP/1.1 503 Service Unavailable" httpx INFO HTTP Request: POST http://localhost:11434/v1/chat/completions "HTTP/1.1 503 Service Unavailable" ...... 首先我确定http://localhost:11434/v1/chat/completions 是可以访问的 并且这个错误并不是一直存在 问题2 graphrag.index.operations.extract_entities.graph_extractor ERROR error extracting graph Traceback (most recent call last) KeyError: 'title' 如果问题1未出现 继续运行就会出现问题2
这是我的setting.yaml配置 我仅修改了截图里一些基本设置
Steps to reproduce
No response
Expected Behavior
No response
GraphRAG Config Used
# Paste your config here
Logs and screenshots
No response
Additional Information
- GraphRAG Version:
- Operating System:
- Python Version:
- Related Issues:
问题解决了吗,我也遇到第二个问题了
问题解决了吗,我也遇到第二个问题了
没有啊 毫无思路 我很纳闷那些视频里的是怎么能跑起来的
你是用的deepseek的推理模型吗?换成别的普通模型试试,这个框架应该是不兼容推理模型输出格式
用deepseek可能不太行,看了一下它把think也放到了输出里而且每次输出也不完整。 然后ollama的嵌入模型和openai不兼容恐怕你在嵌入模型上也不行可以改用lm studio来部署嵌入模型。
having the same issue here
我用的deepseek-r1:32b,调试一下源码,发现是graphrag(V1.2.0)在graphrag/index/operations/extract_entities/graph_extractor.py中使用promopt访问deepseek-r1:32b指定了相应的回复格式,但是deepseek-r1:32b的回答首先是有think标签,其次也未按照graphrag指定格式,导致graphrag解析错误,并报出keyerror title。我认为DeepSeek-r1与DeepSeek-V3不一样,可以换用DeepSeek-V3(亲测)没问题,以及其他的普通Chat模型(我没试过)试试,或者是不是因为DeepSeek-r1:32b能力不够,导致回答未按照相应格式,我没有试过671b满血版本,也未可知。
你是用的deepseek的推理模型吗?换成别的普通模型试试,这个框架应该是不兼容推理模型输出格式
是推理模型,正在尝试使用其他的
我用的deepseek-r1:32b,调试一下源码,发现是graphrag(V1.2.0)在graphrag/index/operations/extract_entities/graph_extractor.py中使用promopt访问deepseek-r1:32b指定了相应的回复格式,但是deepseek-r1:32b的回答首先是有think标签,其次也未按照graphrag指定格式,导致graphrag解析错误,并报出keyerror title。我认为DeepSeek-r1与DeepSeek-V3不一样,可以换用DeepSeek-V3(亲测)没问题,以及其他的普通Chat模型(我没试过)试试,或者是不是因为DeepSeek-r1:32b能力不够,导致回答未按照相应格式,我没有试过671b满血版本,也未可知。
谢谢,我来尝试一下
我用的deepseek-r1:32b,调试一下源码,发现是graphrag(V1.2.0)在graphrag/index/operations/extract_entities/graph_extractor.py中使用promopt访问deepseek-r1:32b指定了相应的回复格式,但是deepseek-r1:32b的回答首先是有think标签,其次也未按照graphrag指定格式,导致graphrag解析错误,并报出keyerror title。我认为DeepSeek-r1与DeepSeek-V3不一样,可以换用DeepSeek-V3(亲测)没问题,以及其他的普通Chat模型(我没试过)试试,或者是不是因为DeepSeek-r1:32b能力不够,导致回答未按照相应格式,我没有试过671b满血版本,也未可知。
我目前的环境可能带不动DeepSeek-V3 我换了qwen也是会出一样的问题
很可能是 大模型输出的结果导致的;可以在代码里添加大模型调用结果的日志,以排查问题。
same problem, any solution
建个微信群,交流下各种问题。
建个微信群,交流下各种问题。
请问有建立吗?可以拉一下交流一下吗
post error 猜测是没有做负载限制,应该是 timeout 时间设的太短,或者没有用 setting.yaml 中的sleep_on_rate_limit_recommendation,上一次的 generation 还没有完成就又 pending 了新的请求,或者是 batch / chunksize 太大,导致上次请求超时。不过默认会按照 setting 中的 max_retries 重新发送请求
没有 title 的问题,大概率是 deepsee-r1生成格式的问题。我曾经尝试过使用 r1 蒸馏的 32B 模型作为 base LM,出现的问题是生成的结果不是合法的 json 导致后面的 json parse error。后来将模型更换为了 QWen-2.5 72B 就没有问题了。可以尝试更换 base 模型,并使用更大参数量的模型。
btw 还有个问题,如果使用的是 vllm serve 部署模型的话,最新的 vllm(0.7.3) 可以正确支持 deepseek-r1 的结果解析了吗?(--enable_reasoning --resoning_type deepseek)之前 vllm 的 issue 下好像说最新的 vllm 已经修复的这个问题,但是我自己没尝试,如果是这么做的话望回复。
建个微信群,交流下各种问题。
请问有建立吗?可以拉一下交流一下吗
没有,谁建下拉下我
建个微信群,交流下各种问题。
麻烦也拉一下我
索引时不能用deepseek r1模型,不按格式来输出的
一样的问题,请问现在解决了嘛
希望能支持下
我用中文文档,能够出结果,但是用英文文档,就会出现上面的错误