fix db engine config
This commit is contained in:
parent
89c254fb28
commit
6918ff86be
1 changed files with 12 additions and 11 deletions
|
|
@ -7,6 +7,7 @@ async def main():
|
||||||
from os import path
|
from os import path
|
||||||
import pathlib
|
import pathlib
|
||||||
import cognee
|
import cognee
|
||||||
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
|
|
||||||
# print("Working dir: ", str(pathlib.Path(__file__).parent))
|
# print("Working dir: ", str(pathlib.Path(__file__).parent))
|
||||||
# data_directory_path = str(pathlib.Path(path.join(pathlib.Path(__file__).parent, "../../.data")).resolve())
|
# data_directory_path = str(pathlib.Path(path.join(pathlib.Path(__file__).parent, "../../.data")).resolve())
|
||||||
|
|
@ -23,9 +24,9 @@ async def main():
|
||||||
|
|
||||||
dataset_name = "cs_explanations"
|
dataset_name = "cs_explanations"
|
||||||
|
|
||||||
explanation_file_path = "test_data/Natural_language_processing.txt"
|
# explanation_file_path = "test_data/Natural_language_processing.txt"
|
||||||
|
#
|
||||||
await cognee.add([explanation_file_path], dataset_name)
|
# await cognee.add([explanation_file_path], dataset_name)
|
||||||
|
|
||||||
# dataset_name = "short_stories"
|
# dataset_name = "short_stories"
|
||||||
# # data_directory_path is defined above
|
# # data_directory_path is defined above
|
||||||
|
|
@ -46,14 +47,14 @@ async def main():
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
# dataset_name = "cs_explanations"
|
dataset_name = "cs_explanations"
|
||||||
# await cognee.add(
|
await cognee.add(
|
||||||
# [
|
[
|
||||||
# text_1,
|
text_1,
|
||||||
# text_2
|
text_2
|
||||||
# ],
|
],
|
||||||
# dataset_name
|
dataset_name
|
||||||
# )
|
)
|
||||||
|
|
||||||
await cognee.cognify([ "cs_explanations"])
|
await cognee.cognify([ "cs_explanations"])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue