pip install cognee
, dependencies for other databases should be installed from the optional-dependencies. For example, if you choose to run cognee with neo4j, pgvector, and postgres, this would look like pip install cognee[neo4j,postgres]
. You can find all the optional dependencies here.
After you make sure that all necessary dependencies are installed, you can configure your database variables.
SQLite
does not need much (it can be omitted as well):
Postgres
instance requires a bit more. Add the following to your .env
file:
LanceDB
is the default vector database, it is a file-based vector store.
To use it, add the following to your .env
file (it can be omitted as well):
Postgres
, PGVector
is a natural choice.
CREATE EXTENSION vector;
before first use.
See official AWS docs
.env
file:
Example with Mistral:
.env
file:
.cognee_system/databases/cognee_graph.pkl
directory.
Neo4J
needs a bit more setup, a default for a locally hosted Neo4j instance would look like this:
Neo4J
manually, don’t forget to install apoc
and graph-data-science
plugins.
.env
file:
NetworkX
is a file-based graph storage.
For NetworkX graph database, add the following to your .env
file:
.cognee_system/databases/cognee_graph.pkl
JSON file.
.env
file:
.env
file:
text-embedding-3-small
).