amazon-science/auto-rag-eval

json error when generating raw exam

Opened this issue · 0 comments

when running this command :
python -m ExamGenerator.question_generator --task-domain StackExchange
I get the following error

File "C:\auto-rag-eval\auto-rag-eval\auto-rag-eval\ExamGenerator\question_generator.py", line 121, in
raw_exam_generator.batch_generate_exam(
File "C:\auto-rag-eval\auto-rag-eval\auto-rag-eval\ExamGenerator\question_generator.py", line 41, in batch_generate_exam
data = json.load(f)
^^^^^^^^^^^^
File "C:\Users\c-hpatel\AppData\Local\Programs\Python\Python311\Lib\json_init_.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "C:\Users\c-hpatel\AppData\Local\Programs\Python\Python311\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\c-hpatel\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 2390518)