Merge pull request #172 from topoteretes/COG-457-update-postgres-docs

Cog 457 update postgres docs
This commit is contained in:
Vasilije 2024-10-31 12:28:50 +01:00 committed by GitHub
commit a262f414df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 1 deletions

View file

@ -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

View file

@ -29,6 +29,10 @@ If you have questions, join our <a href="https://discord.gg/NQPKmU5CCg">Discord
pip install cognee
```
### With pip with PostgreSQL support
```bash
pip install cognee[postgres]
```
### With poetry
@ -36,6 +40,11 @@ pip install cognee
poetry add cognee
```
### With poetry with PostgreSQL support
```bash
poetry add cognee -E postgres
```
## 💻 Basic Usage
@ -73,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: