severian42 / GraphRAG-Local-UI

GraphRAG using Local LLMs - Features robust API and multiple apps for Indexing/Prompt Tuning/Query/Chat/Visualizing/Etc. This is meant to be the ultimate GraphRAG/KG local LLM app.
MIT License
1.51k stars 173 forks source link

ValueError: Shape of passed values is (1, 1), indices imply (1, 2) #81

Open Haiker-hub opened 1 month ago

Haiker-hub commented 1 month ago

Hi, I'm a newbie, and while using a directive like "python -m graphrag.index --root./indexing", I get the error described in the title at the "create_base_entity_graph" step. In the code is "cluster_graph.py" in line 101 "output_df[[level_to, to]] = pd.DataFrame(output_df[to].tolist(), index=output_df.index, columns=[level_to, to]). indexing's input folder is the default.txt provided by the source code. How to solve this problem?

shaoqing404 commented 1 month ago

这个问题似乎是模型导致的。请注意你的default.txt必须是utf8且不能有特殊的意外字符