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

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

Open
dipakmeher opened this issue Nov 22, 2024 · 0 comments

Comments

@dipakmeher
Copy link

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.

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