flyrae / trumprag

本文介绍了一个使用GraphRAG和通义千问API分析川普枪击事件的方法。由于GraphRAG目前只支持OpenAI API,采用OneApi将通义转成了OpenAI API风格的接口。
8 stars 1 forks source link

Errors in create_base_entity_graph #1

Open Astronaut323 opened 4 months ago

Astronaut323 commented 4 months ago

你好,我直接下载的你的配置并运行,但是报错: 🚀 Reading settings from trumprag\settings.yaml E:\Anaconda3\envs\graphRAG\Lib\site-packages\numpy\core\fromnumeric.py:59: FutureWarning: 'DataFrame.swapaxes' is deprecated and will be removed in a future version. Please use 'DataFrame.transpose' instead. return bound(*args, **kwds) 🚀 create_base_text_units id ... n_tokens 0 30712106af318516139b00cbd4fcc8f8 ... 300 1 ef77c593cdcec08be53596ca9272a731 ... 300 2 5506a4e7efeaace4a3120f6973464e46 ... 300 3 d53114c8c2a04c0d831271e43de22430 ... 300 4 e8c8f7abb25a72fae802d4b23a95379a ... 300 5 b79aecc6e3db3d216a0d23e07243a558 ... 289 6 eb13e6f218ad80a659f0af02721f3d38 ... 89

[7 rows x 5 columns] 🚀 create_base_extracted_entities entity_graph 0 <graphml xmlns="http://graphml.graphdrawing.or... 🚀 create_summarized_entities entity_graph 0 <graphml xmlns="http://graphml.graphdrawing.or... ❌ create_base_entity_graph None ⠹ GraphRAG Indexer ├── Loading Input (InputFileType.text) - 1 files loaded (0 filtered) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 0:00:00 ├── create_base_text_units ├── create_base_extracted_entities ├── create_summarized_entities └── create_base_entity_graph ❌ Errors occurred during the pipeline run, see logs for more details. 或许你遇到过这种问题吗?

zhangyanli-pro commented 4 months ago

同问。。。 感觉好多人都是有这个问题 ValueError: Columns must be same length as key

zihaozhu93 commented 4 months ago

遇到同样报错,修改.env文件中的 GRAPHRAG_API_KEY=,去掉<>正常运行