Skip to main content

Configuration

Dewy will read env vars from an .env file if provided. You can also set these directly in the environment, for example when configuring an instance running in docker / kubernetes.

~/.env
ENVIRONMENT=LOCAL
DB=postgresql://dewydbuser:dewydbpwd@localhost/dewydb
OPENAI_API_KEY=...

The following config keys are available (see config.py for additional details)

KeyTypeDefaultDescription
SERVE_ADMIN_UIboolTrueIf true, serve the admin UI.
DBPostgresDsn`NoneThe Postgres database to connect to.
APPLY_MIGRATIONSboolTrueWhether migrations should be applied to the database.
ENVIRONMENTEnvironmentPRODUCTIONThe environment the application is running in.
OPENAI_API_KEYstrNoneThe OpenAI API Key to use for OpenAI models (if using OpenAI models).
LLAMA_INDEX_CACHE_DIRstrNoneThe path for caching artifacts used by LlamaIndex.
HF_HOMEstrNoneThe path for caching artifacts used by HuggingFace.