Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Columns must be same length as key #87

Open
dongliccc opened this issue Feb 25, 2025 · 0 comments
Open

ValueError: Columns must be same length as key #87

dongliccc opened this issue Feb 25, 2025 · 0 comments

Comments

@dongliccc
Copy link

I changed the txt in ragtest/input to my own and it happened. How can I solve it?

openai.NotFoundError: Error code: 404 - {'error': {'message': 'model "mistral" not found, try pulling it first', 'type': 'api_error', 'param': None, 'code': None}}
15:25:51,936 graphrag.index.reporting.file_workflow_callbacks INFO Entity Extraction Error details={'doc_index': 0, 'text': 'all things are not born yet." At this point, the sky begins to have roots. After another 5,400 years, at the Zi meeting, the light and clear rises, and there are sun and moon, stars and constellations. The sun, moon, stars and constellations are called the four images, so it is said that the sky opens at Zi. After another 5,400 years, the Zi meeting will end, close to the Chou meeting, and it will gradually become solid. The Book of Changes says: "Great is the Qian Yuan, great is the Kun Yuan, all things are born, and they follow the will of heaven." At this point, the earth begins to solidify. Another 5,400 years later, at the time of the Chou meeting, the heavy turbidity condensed downward, and there were water, fire, mountains, rocks, and soil. Water, fire, mountains, rocks, and soil were called the five forms, so it is said that the earth was created in Chou. After another 5,400 years, the Chou meeting ended, and at the beginning of the Yin meeting, all things came into being. The calendar says: "The sky descends, the earth's air rises, the heaven and the earth meet, and all things come into being." At this point, the sky is clear and the earth is refreshing, and yin and yang meet. Another 5,'}
15:25:51,941 datashaper.workflow.workflow INFO executing verb snapshot
15:25:51,946 datashaper.workflow.workflow INFO executing verb merge_graphs
15:25:51,953 datashaper.workflow.workflow INFO executing verb snapshot_rows
15:25:51,955 graphrag.index.emit.parquet_table_emitter INFO emitting parquet table create_base_extracted_entities.parquet
15:25:52,48 graphrag.index.run INFO Running workflow: create_summarized_entities...
15:25:52,48 graphrag.index.run INFO dependencies for create_summarized_entities: ['create_base_extracted_entities']
15:25:52,48 graphrag.index.run INFO read table from storage: create_base_extracted_entities.parquet
15:25:52,60 datashaper.workflow.workflow INFO executing verb summarize_descriptions
15:25:52,67 datashaper.workflow.workflow INFO executing verb snapshot_rows
15:25:52,70 graphrag.index.emit.parquet_table_emitter INFO emitting parquet table create_summarized_entities.parquet
15:25:52,164 graphrag.index.run INFO Running workflow: create_base_entity_graph...
15:25:52,164 graphrag.index.run INFO dependencies for create_base_entity_graph: ['create_summarized_entities']
15:25:52,165 graphrag.index.run INFO read table from storage: create_summarized_entities.parquet
15:25:52,178 datashaper.workflow.workflow INFO executing verb cluster_graph
15:25:52,179 graphrag.index.verbs.graph.clustering.cluster_graph WARNING Graph has no nodes
15:25:52,180 datashaper.workflow.workflow ERROR Error executing verb "cluster_graph" in create_base_entity_graph: Columns must be same length as key
Traceback (most recent call last):
File "D:\ProgramData\anaconda3\envs\graphrag-ollama-local\lib\site-packages\datashaper\workflow\workflow.py", line 410, in _execute_verb
result = node.verb.func(**verb_args)
File "D:\Github\graphrag-local-ollama\graphrag\index\verbs\graph\clustering\cluster_graph.py", line 102, in cluster_graph
output_df[[level_to, to]] = pd.DataFrame(
File "D:\ProgramData\anaconda3\envs\graphrag-ollama-local\lib\site-packages\pandas\core\frame.py", line 4299, in setitem
self._setitem_array(key, value)
File "D:\ProgramData\anaconda3\envs\graphrag-ollama-local\lib\site-packages\pandas\core\frame.py", line 4341, in _setitem_array
check_key_length(self.columns, key, value)
File "D:\ProgramData\anaconda3\envs\graphrag-ollama-local\lib\site-packages\pandas\core\indexers\utils.py", line 390, in check_key_length
raise ValueError("Columns must be same length as key")
ValueError: Columns must be same length as key
15:25:52,182 graphrag.index.reporting.file_workflow_callbacks INFO Error executing verb "cluster_graph" in create_base_entity_graph: Columns must be same length as key details=None
15:25:52,182 graphrag.index.run ERROR error running workflow create_base_entity_graph
Traceback (most recent call last):
File "D:\Github\graphrag-local-ollama\graphrag\index\run.py", line 323, in run_pipeline
result = await workflow.run(context, callbacks)
File "D:\ProgramData\anaconda3\envs\graphrag-ollama-local\lib\site-packages\datashaper\workflow\workflow.py", line 369, in run
timing = await self._execute_verb(node, context, callbacks)
File "D:\ProgramData\anaconda3\envs\graphrag-ollama-local\lib\site-packages\datashaper\workflow\workflow.py", line 410, in _execute_verb
result = node.verb.func(**verb_args)
File "D:\Github\graphrag-local-ollama\graphrag\index\verbs\graph\clustering\cluster_graph.py", line 102, in cluster_graph
output_df[[level_to, to]] = pd.DataFrame(
File "D:\ProgramData\anaconda3\envs\graphrag-ollama-local\lib\site-packages\pandas\core\frame.py", line 4299, in setitem
self._setitem_array(key, value)
File "D:\ProgramData\anaconda3\envs\graphrag-ollama-local\lib\site-packages\pandas\core\frame.py", line 4341, in _setitem_array
check_key_length(self.columns, key, value)
File "D:\ProgramData\anaconda3\envs\graphrag-ollama-local\lib\site-packages\pandas\core\indexers\utils.py", line 390, in check_key_length
raise ValueError("Columns must be same length as key")
ValueError: Columns must be same length as key
15:25:52,182 graphrag.index.reporting.file_workflow_callbacks INFO Error running pipeline! details=None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant