Skip to content

Global Query Issue - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #1435

@dipakmeher

Description

@dipakmeher

I am getting an issue when performing a global query on my knowledge graph. The Knowledge Graph workflow runs successfully, but the global query results in an error. Any assistance in resolving this would be greatly appreciated.

Traceback (most recent call last):
File "/scratch/dmeher/custom_env/miniforge/envs/graphrag_env/lib/python3.12/site-packages/graphrag/llm/openai/utils.py", line 135, in try_parse_json_object
result = json.loads(input)
^^^^^^^^^^^^^^^^^
File "/scratch/dmeher/custom_env/miniforge/envs/graphrag_env/lib/python3.12/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/dmeher/custom_env/miniforge/envs/graphrag_env/lib/python3.12/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/dmeher/custom_env/miniforge/envs/graphrag_env/lib/python3.12/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Warning: All map responses have score 0 (i.e., no relevant information found from the dataset), returning a canned 'I do not know' answer. You can try enabling allow_general_knowledge to encourage the LLM to incorporate relevant general knowledge, at the risk of increasing hallucinations.

SUCCESS: Global Search Response:
I am sorry but I am unable to answer this question given the provided data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions