From 774e359dfc0b3a9a2f75321458f8aae37e3a4d93 Mon Sep 17 00:00:00 2001 From: phv2312 Date: Wed, 17 Jul 2024 17:11:17 +0700 Subject: [PATCH 1/2] fix: update import download_loader --- libs/kotaemon/kotaemon/loaders/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/kotaemon/kotaemon/loaders/base.py b/libs/kotaemon/kotaemon/loaders/base.py index eff70c8b..aebf9196 100644 --- a/libs/kotaemon/kotaemon/loaders/base.py +++ b/libs/kotaemon/kotaemon/loaders/base.py @@ -20,7 +20,7 @@ class AutoReader(BaseReader): """Init reader using string identifier or class name from llama-hub""" if isinstance(reader_type, str): - from llama_index import download_loader + from llama_index.core import download_loader self._reader = download_loader(reader_type)() else: From 79b8511cb06432faa7a37c437389b4a9a05fc9e2 Mon Sep 17 00:00:00 2001 From: phv2312 Date: Wed, 17 Jul 2024 17:20:40 +0700 Subject: [PATCH 2/2] refactor: codespell --- .../reasoning/prompt_optimization/rephrase_question_train.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ktem/ktem/reasoning/prompt_optimization/rephrase_question_train.json b/libs/ktem/ktem/reasoning/prompt_optimization/rephrase_question_train.json index 44f9dd7a..fbe6b310 100644 --- a/libs/ktem/ktem/reasoning/prompt_optimization/rephrase_question_train.json +++ b/libs/ktem/ktem/reasoning/prompt_optimization/rephrase_question_train.json @@ -5744,7 +5744,7 @@ "output": "What is the ratio of property, plant and equipment to the total estimated aggregate consideration on the balance sheet as of December 31, 2017?" }, { - "input": "What is the percentage change in other non currrent assets in 2018?", + "input": "What is the percentage change in other non current assets in 2018?", "output": "What was the percentage change in other non-current assets during the year 2018?" }, {