You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
When the text is as simple as "Hello, world". We may not be able to extract any entities or relationships. This currently throws error as relevant keys are not extracted. Could we set a default value in such cases?
Steps to reproduce
Use a simple sentence like "Hello world"
Expected Behavior
2025-04-15 07:57:54,494|ERROR|graphrag.index.run.run_pipeline:156:error running workflow extract_graph
Traceback (most recent call last):
File "/home/abdul/data/GraphRAG/src/graphrag/index/run/run_pipeline.py", line 143, in _run_pipeline
result = await workflow_function(config, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/abdul/data/GraphRAG/src/graphrag/index/workflows/extract_graph.py", line 46, in run_workflow
entities, relationships = await extract_graph(
^^^^^^^^^^^^^^^^^^^^
File "/home/abdul/data/GraphRAG/src/graphrag/index/workflows/extract_graph.py", line 82, in extract_graph
extracted_entities, extracted_relationships = await extractor(
^^^^^^^^^^^^^^^^
File "/home/abdul/data/GraphRAG/src/graphrag/index/operations/extract_graph/extract_graph.py", line 133, in extract_graph
relationships = _merge_relationships(relationship_dfs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/abdul/data/GraphRAG/src/graphrag/index/operations/extract_graph/extract_graph.py", line 170, in _merge_relationships
.agg(
^^^^
File "/home/ubuntu/miniconda3/envs/graph/lib/python3.12/site-packages/pandas/core/groupby/generic.py", line 1432, in aggregate
result = op.agg()
^^^^^^^^
File "/home/ubuntu/miniconda3/envs/graph/lib/python3.12/site-packages/pandas/core/apply.py", line 190, in agg
return self.agg_dict_like()
^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/miniconda3/envs/graph/lib/python3.12/site-packages/pandas/core/apply.py", line 423, in agg_dict_like
return self.agg_or_apply_dict_like(op_name="agg")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/miniconda3/envs/graph/lib/python3.12/site-packages/pandas/core/apply.py", line 1608, in agg_or_apply_dict_like
result_index, result_data = self.compute_dict_like(
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/miniconda3/envs/graph/lib/python3.12/site-packages/pandas/core/apply.py", line 462, in compute_dict_like
func = self.normalize_dictlike_arg(op_name, selected_obj, func)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/miniconda3/envs/graph/lib/python3.12/site-packages/pandas/core/apply.py", line 663, in normalize_dictlike_arg
raise KeyError(f"Column(s) {list(cols)} do not exist")
KeyError: "Column(s) ['description', 'source_id', 'weight'] do not exist"
The text was updated successfully, but these errors were encountered:
basitanees
added
bug
Something isn't working
triage
Default label assignment, indicates new issue needs reviewed by a maintainer
labels
Apr 15, 2025
natoverse
added
backlog
We've confirmed some action is needed on this and will plan it
and removed
bug
Something isn't working
triage
Default label assignment, indicates new issue needs reviewed by a maintainer
labels
Apr 18, 2025
Do you need to file an issue?
Describe the bug
When the text is as simple as "Hello, world". We may not be able to extract any entities or relationships. This currently throws error as relevant keys are not extracted. Could we set a default value in such cases?
Steps to reproduce
Use a simple sentence like "Hello world"
Expected Behavior
GraphRAG Config Used
llm: gpt 4o
embedding_model: text-embedding-ada-002
Logs and screenshots
No response
Additional Information
The text was updated successfully, but these errors were encountered: