<!-- .github/pull_request_template.md --> ## Description Add how to use postgres with Cognee docker compose ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin.
81 lines
2.3 KiB
Text
81 lines
2.3 KiB
Text
ENV="local"
|
|
TOKENIZERS_PARALLELISM="false"
|
|
|
|
# Default User Configuration
|
|
DEFAULT_USER_EMAIL=""
|
|
DEFAULT_USER_PASSWORD=""
|
|
|
|
# LLM Configuration
|
|
LLM_API_KEY=""
|
|
LLM_MODEL="openai/gpt-4o-mini"
|
|
LLM_PROVIDER="openai"
|
|
LLM_ENDPOINT=""
|
|
LLM_API_VERSION=""
|
|
LLM_MAX_TOKENS="16384"
|
|
|
|
GRAPHISTRY_USERNAME=
|
|
GRAPHISTRY_PASSWORD=
|
|
|
|
SENTRY_REPORTING_URL=
|
|
|
|
# Embedding Configuration
|
|
EMBEDDING_PROVIDER="openai"
|
|
EMBEDDING_API_KEY=""
|
|
EMBEDDING_MODEL="openai/text-embedding-3-large"
|
|
EMBEDDING_ENDPOINT=""
|
|
EMBEDDING_API_VERSION=""
|
|
EMBEDDING_DIMENSIONS=3072
|
|
EMBEDDING_MAX_TOKENS=8191
|
|
|
|
# "neo4j", "networkx", "kuzu" or "memgraph"
|
|
GRAPH_DATABASE_PROVIDER="networkx"
|
|
# Only needed if using neo4j or memgraph
|
|
GRAPH_DATABASE_URL=
|
|
GRAPH_DATABASE_USERNAME=
|
|
GRAPH_DATABASE_PASSWORD=
|
|
|
|
# "qdrant", "pgvector", "weaviate", "milvus", "lancedb" or "chromadb"
|
|
VECTOR_DB_PROVIDER="lancedb"
|
|
# Not needed if using "lancedb" or "pgvector"
|
|
VECTOR_DB_URL=
|
|
VECTOR_DB_KEY=
|
|
|
|
# Relational Database provider "sqlite" or "postgres"
|
|
DB_PROVIDER="sqlite"
|
|
|
|
# Database name
|
|
DB_NAME=cognee_db
|
|
|
|
# Postgres specific parameters (Only if Postgres or PGVector is used). Do not use for cognee default simplest setup of SQLite-NetworkX-LanceDB
|
|
# DB_USERNAME=cognee
|
|
# DB_PASSWORD=cognee
|
|
# To use Postgres with the Cognee backend in Docker compose use the following instead: DB_HOST=host.docker.internal
|
|
# DB_HOST=127.0.0.1
|
|
# DB_PORT=5432
|
|
|
|
|
|
|
|
# Params for migrating relational database data to graph / Cognee ( PostgreSQL and SQLite supported )
|
|
# MIGRATION_DB_PATH="/path/to/migration/directory"
|
|
# MIGRATION_DB_NAME="migration_database.sqlite"
|
|
# MIGRATION_DB_PROVIDER="sqlite"
|
|
# Postgres specific parameters for migration
|
|
# MIGRATION_DB_USERNAME=cognee
|
|
# MIGRATION_DB_PASSWORD=cognee
|
|
# MIGRATION_DB_HOST="127.0.0.1"
|
|
# MIGRATION_DB_PORT=5432
|
|
|
|
# LITELLM Logging Level. Set to quiten down logging
|
|
LITELLM_LOG="ERROR"
|
|
|
|
# Set this environment variable to disable sending telemetry data
|
|
# TELEMETRY_DISABLED=1
|
|
|
|
# Set this variable to True to enforce usage of backend access control for Cognee
|
|
# Note: This is only currently supported by the following databases:
|
|
# Relational: SQLite, Postgres
|
|
# Vector: LanceDB
|
|
# Graph: KuzuDB
|
|
#
|
|
# It enforces LanceDB and KuzuDB use and uses them to create databases per Cognee user + dataset
|
|
ENABLE_BACKEND_ACCESS_CONTROL=False
|