ArchitectureDeployment

Deploying cognee

cognee is a standalone tool that can be deployed easily on-prem or in the cloud It comes with a docker image and the library can be run as a pod with connections to the external Postgres database, vector, and graph stores

Let’s deploy cognee on Modal

Modal is a cloud-function platform that lets you run any code remotely within seconds.

Step 1: Create Modal account

If you haven’t used Modal yet, just go to their website and create an account.

Step 2: Clone cognee repo
  git clone https://github.com/topoteretes/cognee.git
Step 3: Install with poetry

Navigate to cognee repo

cd cognee

Install with poetry

poetry install 
Step 4: Run modal example
The file modal_deployment in the cognee repo contains a set of statements that will be turned into semantic memory by launching a set of modal containers that process and turn the data into graph/vector representation.

Run

python modal_deployment.py

Now navigate to your modal account to see your jobs and results


If you need help with deploying cognee, we have the following:

  1. Helm charts for k8 deployment
  2. AWS Lambda or Google Cloud deployments

Join the Conversation!

Have questions? Join our community now to connect with professionals, share insights, and get your questions answered!