From 30c9e5f20fc8c23d4c7ba90fd215e8d0d5bac945 Mon Sep 17 00:00:00 2001 From: Vasilije <8619304+Vasilije1990@users.noreply.github.com> Date: Sat, 25 May 2024 19:27:05 +0200 Subject: [PATCH] fix db engine config --- cognee/tests/test_library.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cognee/tests/test_library.py b/cognee/tests/test_library.py index b501f1950..dba2bc5b1 100755 --- a/cognee/tests/test_library.py +++ b/cognee/tests/test_library.py @@ -3,21 +3,21 @@ async def main(): import pathlib import cognee - print("Working dir: ", str(pathlib.Path(__file__).parent)) - data_directory_path = str(pathlib.Path(path.join(pathlib.Path(__file__).parent, "../../.data")).resolve()) - print("Data dir: ", data_directory_path) - cognee.config.data_root_directory(data_directory_path) + # print("Working dir: ", str(pathlib.Path(__file__).parent)) + # data_directory_path = str(pathlib.Path(path.join(pathlib.Path(__file__).parent, "../../.data")).resolve()) + # print("Data dir: ", data_directory_path) + # cognee.config.data_root_directory(data_directory_path) + # + # cognee_directory_path = str(pathlib.Path(path.join(pathlib.Path(__file__).parent, "../../.cognee_system")).resolve()) + # print("System dir: ", cognee_directory_path) + # cognee.config.system_root_directory(cognee_directory_path) - cognee_directory_path = str(pathlib.Path(path.join(pathlib.Path(__file__).parent, "../../.cognee_system")).resolve()) - print("System dir: ", cognee_directory_path) - cognee.config.system_root_directory(cognee_directory_path) dataset_name = "cs_explanations" - explanation_file_path = path.abspath( - "/Users/stef/Documents/dev/cognee/cognee/tests/test_data/Natural_language_processing.txt" - ) + explanation_file_path = "test_data/Natural_language_processing.txt" + await cognee.add([explanation_file_path], dataset_name) # dataset_name = "short_stories"