Skip to content

Commit

Permalink
get config
Browse files Browse the repository at this point in the history
  • Loading branch information
vyokky committed Mar 3, 2024
1 parent 677fc06 commit 58a1fa0
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions ufo/rag/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,10 @@ def retrieve(self, query: str, top_k: int, filter=None):



def load_json_file(file_path):
"""
Load a JSON file.
:param file_path: The path to the file to load.
:return: The loaded JSON data.
"""

with open(file_path, 'r') as file:
data = json.load(file)
return data


def get_offline_config():
"""
Get the list of offline indexers.
:return: The list of offline indexers.
"""

if os.path.exists("learner/records.json"):
records = load_json_file("./learner/records.json")
else:
records = {}
return records



Expand Down

0 comments on commit 58a1fa0

Please sign in to comment.