graphrag_api icon indicating copy to clipboard operation
graphrag_api copied to clipboard

疑问

Open twicenikou opened this issue 1 year ago • 5 comments

Traceback (most recent call last): File "/root/graphrag_api/tests/index_test.py", line 112, in output_dir=args.ourput, ^^^^^^^^^^^ AttributeError: 'Namespace' object has no attribute 'ourput'. Did you mean: 'output'? (GraphRAG) root@autodl-container-9e9d4cad19-3b00a504:~/graphrag_api/tests# python index_test.py --init --root rag

Traceback (most recent call last): File "/root/graphrag_api/tests/index_test.py", line 99, in indexer = GraphRagIndexer( ^^^^^^^^^^^^^^^^ File "/root/miniconda3/envs/GraphRAG/lib/python3.11/site-packages/graphrag_api/index.py", line 77, in init self.emit = [TableEmitterType(value.strip()) for value in emit.split(",")] ^^^^^^^^^^ AttributeError: 'list' object has no attribute 'split'

你好这些是还没完善吗,还是我不太会用这个的缘故

twicenikou avatar Dec 16 '24 15:12 twicenikou

等上班了我看一下。。我都跑过之后提交的。。

| | seven_nighter | | @.*** | ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2024年12月16日 23:46 | | 收件人 | nightzjp/graphrag_api @.> | | 抄送人 | Subscribed @.***> | | 主题 | [nightzjp/graphrag_api] 疑问 (Issue #2) |

Traceback (most recent call last): File "/root/graphrag_api/tests/index_test.py", line 112, in output_dir=args.ourput, ^^^^^^^^^^^ AttributeError: 'Namespace' object has no attribute 'ourput'. Did you mean: 'output'? (GraphRAG) @.***:~/graphrag_api/tests# python index_test.py --init --root rag

Traceback (most recent call last): File "/root/graphrag_api/tests/index_test.py", line 99, in indexer = GraphRagIndexer( ^^^^^^^^^^^^^^^^ File "/root/miniconda3/envs/GraphRAG/lib/python3.11/site-packages/graphrag_api/index.py", line 77, in init self.emit = [TableEmitterType(value.strip()) for value in emit.split(",")] ^^^^^^^^^^ AttributeError: 'list' object has no attribute 'split'

你好这些是还没完善吗,还是我不太会用这个的缘故

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

nightzjp avatar Dec 16 '24 18:12 nightzjp

我刚刚看了下,test这个文件里emit这个默认参数没改导致的。

https://github.com/nightzjp/graphrag_api/blob/main/test.py 可以参考这个,别穿太多参数。

官方0.5版本有一个bug。等他们修复之后这些我都改一下(graphrap官方现在支持api了..但是感觉不太好用,之前提交的pr可能由于版本太老改动太大一直没被合并。)

| | seven_nighter | | @.*** | ---- 回复的原邮件 ---- | 发件人 | @.> | | 发送日期 | 2024年12月16日 23:46 | | 收件人 | nightzjp/graphrag_api @.> | | 抄送人 | Subscribed @.***> | | 主题 | [nightzjp/graphrag_api] 疑问 (Issue #2) |

Traceback (most recent call last): File "/root/graphrag_api/tests/index_test.py", line 112, in output_dir=args.ourput, ^^^^^^^^^^^ AttributeError: 'Namespace' object has no attribute 'ourput'. Did you mean: 'output'? (GraphRAG) @.***:~/graphrag_api/tests# python index_test.py --init --root rag

Traceback (most recent call last): File "/root/graphrag_api/tests/index_test.py", line 99, in indexer = GraphRagIndexer( ^^^^^^^^^^^^^^^^ File "/root/miniconda3/envs/GraphRAG/lib/python3.11/site-packages/graphrag_api/index.py", line 77, in init self.emit = [TableEmitterType(value.strip()) for value in emit.split(",")] ^^^^^^^^^^ AttributeError: 'list' object has no attribute 'split'

你好这些是还没完善吗,还是我不太会用这个的缘故

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

nightzjp avatar Dec 16 '24 18:12 nightzjp

image 0.3.6这个版本各种接口都是正常的。以上的版本搜索接口有bug。等官方修复了我同步更新。 直接按照readme.md里面的方法调用是没问题的。我本地验证过了~

nightzjp avatar Dec 17 '24 02:12 nightzjp

感谢方便加一下联系方式吗我还有一些问题想请教一下😁

twicenikou avatar Dec 17 '24 02:12 twicenikou

感谢方便加一下联系方式吗我还有一些问题想请教一下😁

17343037825

nightzjp avatar Dec 17 '24 08:12 nightzjp