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
Description:
A JSONDecodeError occurs during the execution of the run_knowledge_curation_module in the knowledge_storm library. The error message indicates that the code attempted to parse an empty or invalid JSON response from an external API (likely Serper API). The error arises when trying to decode the response using response.json().
Steps to Reproduce:
Input Topic Name: [Provide the topic name used for the knowledge curation]
Execution Command: Run the script run_storm_wiki_deepseek.py with the appropriate arguments.
Error Encountered: The script fails with the following error traceback:
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Output Files: [Attach all output files generated for this topic as a zip file]
Expected Behavior:
The knowledge curation module should successfully retrieve and parse data from the external API without encountering JSON decoding errors.
Actual Behavior:
The script fails with a JSONDecodeError due to an empty or invalid JSON response.
Environment:
OS: macOS (as inferred from the file paths)
Python Version: 3.11
Libraries/Packages:
knowledge_storm
requests
dspy
External API: Serper API (or similar)
Additional Context:
The error occurs in the serper_runner method of the rm.py file, specifically when trying to parse the API response using response.json(). The issue seems to be related to the API returning an empty or invalid response.
Note: Please provide the input topic name and any generated output files to help further diagnose the issue. Additionally, include details about the external API being used (e.g., Serper API) and any relevant configuration settings.
The text was updated successfully, but these errors were encountered:
Description:
A
JSONDecodeError
occurs during the execution of therun_knowledge_curation_module
in theknowledge_storm
library. The error message indicates that the code attempted to parse an empty or invalid JSON response from an external API (likely Serper API). The error arises when trying to decode the response usingresponse.json()
.Steps to Reproduce:
Input Topic Name: [Provide the topic name used for the knowledge curation]
Execution Command: Run the script
run_storm_wiki_deepseek.py
with the appropriate arguments.Error Encountered: The script fails with the following error traceback:
Output Files: [Attach all output files generated for this topic as a zip file]
Expected Behavior:
The knowledge curation module should successfully retrieve and parse data from the external API without encountering JSON decoding errors.
Actual Behavior:
The script fails with a
JSONDecodeError
due to an empty or invalid JSON response.Environment:
knowledge_storm
requests
dspy
Additional Context:
The error occurs in the
serper_runner
method of therm.py
file, specifically when trying to parse the API response usingresponse.json()
. The issue seems to be related to the API returning an empty or invalid response.Note: Please provide the input topic name and any generated output files to help further diagnose the issue. Additionally, include details about the external API being used (e.g., Serper API) and any relevant configuration settings.
The text was updated successfully, but these errors were encountered: