fix db engine config
This commit is contained in:
parent
7f43d12102
commit
2e7cfd8ab7
2 changed files with 3 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from cognee.infrastructure.databases.relational.config import get_relationaldb_config
|
||||
config = get_relationaldb_config()
|
||||
from cognee.infrastructure.InfrastructureConfig import infrastructure_config
|
||||
|
||||
def create_task_status_table():
|
||||
db_engine = config.db_engine
|
||||
db_engine = infrastructure_config.get_config("database_engine")
|
||||
|
||||
db_engine.create_table("cognee_task_status", [
|
||||
dict(name = "data_id", type = "STRING"),
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ async def main():
|
|||
dataset_name = "cs_explanations"
|
||||
|
||||
explanation_file_path = os.path.join(pathlib.Path(__file__).parent, "test_data/Natural_language_processing.txt")
|
||||
#
|
||||
await cognee.add([explanation_file_path], dataset_name)
|
||||
|
||||
# dataset_name = "short_stories"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue