From f1edb1f3eb39a8a86768533b87f5c5306394b915 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Tue, 29 Oct 2024 18:27:29 +0100 Subject: [PATCH 1/3] docs: Add installing of cognee with postgres support Add info on how to install cognee with postgres support Docs #COG-457 --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 55a01092e..88f9e7a6c 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,10 @@ If you have questions, join our Discord pip install cognee ``` +### With pip with postgres support +```bash +pip install cognee[postgres] +``` ### With poetry @@ -36,6 +40,11 @@ pip install cognee poetry add cognee ``` +### With poetry with postgres support + +```bash +poetry add cognee -E postgres +``` ## 💻 Basic Usage From 0e9b8108a08cd3847e05fa14b6526f9f44ecc6a7 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Tue, 29 Oct 2024 19:00:42 +0100 Subject: [PATCH 2/3] docs: Add PostgreSQL usage instructions for UI Added steps on how to use PostgreSQL for the UI Docs #COG-457 --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 88f9e7a6c..04c1c2ef9 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ If you have questions, join our Discord pip install cognee ``` -### With pip with postgres support +### With pip with PostgreSQL support ```bash pip install cognee[postgres] ``` @@ -40,7 +40,7 @@ pip install cognee[postgres] poetry add cognee ``` -### With poetry with postgres support +### With poetry with PostgreSQL support ```bash poetry add cognee -E postgres @@ -82,6 +82,18 @@ docker-compose up ``` Then navigate to localhost:3000 +If you want to use the UI with PostgreSQL through docker-compose make sure to set the following values in the .env file: +``` +DB_PROVIDER=postgres + +DB_HOST=postgres +DB_PORT=5432 + +DB_NAME=cognee_db +DB_USERNAME=cognee +DB_PASSWORD=cognee +``` + ### Simple example Run the default cognee pipeline: From 8fa7c4616154cf11ff71751eb34f5cd740391938 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Tue, 29 Oct 2024 19:08:09 +0100 Subject: [PATCH 3/3] fix: Add installing of all extras to cognee Dockerfile Added installing of all extras to Dockerfile Fix #COG-457 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ec3dd8119..cec626c86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ RUN pip install poetry RUN poetry config virtualenvs.create false # Install the dependencies -RUN poetry install --no-root --no-dev +RUN poetry install --all-extras --no-root --no-dev # Set the PYTHONPATH environment variable to include the /app directory