Skip to main content
Settings resolve in three layers: compiled-in defaults, environment variables, and anything you pass to the Cognee constructor or change later through c.config. Constructor and c.config values win over the environment.

Constructor

settings is an optional object (or JSON string) that overrides env-derived defaults. Keys are the canonical Settings field names (llmModel, embeddingProvider, vectorDbProvider, etc.). Absent keys keep their env-variable or compiled-in default.

Config

Use c.config to change settings after construction. Granular setters are synchronous and take effect immediately (the engines are lazily rebuilt on the next pipeline call).

Environment variables

The logging and telemetry variables are read by the setup functions described in Runtime and Observability.