MCPcopy Create free account
hub / github.com/TIGER-AI-Lab/LongRAG / load_json_file

Function load_json_file

utils/load_data_util.py:9–14  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

7
8
9def load_json_file(file_path):
10 data = []
11 with open(file_path, "r", encoding="utf-8") as f:
12 for line in f:
13 data.append(json.loads(line))
14 return data
15
16
17def load_dpr_wiki(file_path):

Callers 3

predict_close_bookMethod · 0.90
predict_close_bookMethod · 0.90
predict_close_bookMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected