Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Environment Variables

Server, embedding, extraction, and CLI/admin runtime variables.

VariableRequiredDefaultDescription
DATABASE_URLyesPostgreSQL connection string.
OPENAI_API_KEYconditionalRequired when OpenAI embeddings are used or OpenAI extraction is enabled.
PORTno3100HTTP/MCP server port.
LOG_LEVELnoinfoLogger level (fatal/error/warn/info/debug).
ENRICHMENT_POLL_INTERVAL_MSno1000Enrichment worker polling interval.
VariableRequiredDefaultDescription
EMBEDDING_PROVIDERnoopenaiopenai or ollama.
EMBEDDING_MODELnoper providerDefaults: text-embedding-3-small (OpenAI), bge-m3 (Ollama).
EMBEDDING_DIMENSIONSnoper providerMust match active embedding_models entry.
EMBEDDING_BASE_URLwhen ollamaOLLAMA_BASE_URL fallbackEmbedding host (can be different from LLM host).
EMBEDDING_API_KEYnoOptional bearer token for embedding endpoint.
VariableRequiredDefaultDescription
EXTRACTION_ENABLEDnofalseToggle extraction pass.
EXTRACTION_PROVIDERnoopenaiopenai, anthropic, ollama, openai-compatible.
EXTRACTION_MODELnoper providerControls model used by extraction worker.
EXTRACTION_AUTO_CREATE_ENTITIESnofalseAuto-create entity stubs referenced by extracted text.
EXTRACTION_AUTO_CREATE_TYPESnoperson,project,interactionAllowed entity types for auto-create.
EXTRACTION_AUTO_CREATE_MIN_CONFIDENCEno0.7Min confidence threshold for auto-create.
EXTRACTION_SEMANTIC_NEIGHBORS_ENABLEDnofalseEnable semantic-neighbor graph pass.
EXTRACTION_SEMANTIC_NEIGHBORS_MAXno10Max neighbors per entity.
EXTRACTION_SEMANTIC_NEIGHBORS_MIN_SIMILARITYno0.65Similarity threshold for semantic neighbor links.
EXTRACTION_BASE_URLwhen compatible providerOpenAI-compatible base URL including /v1 if needed.
EXTRACTION_API_KEYnoOptional bearer token for compatible extraction endpoint.
ANTHROPIC_API_KEYwhen anthropicAnthropic API key.
OLLAMA_BASE_URLnohttp://localhost:11434Ollama endpoint.
LLM_REQUEST_TIMEOUT_MSno120000Per-call timeout in milliseconds.
VariableRequiredDescription
PGM_API_URLyesAPI URL used by pgm.
PGM_API_KEYyesAPI key for user operations.
DATABASE_URL or PGM_DATABASE_URLadminDB access for pgm-admin.
PGM_BACKUP_PASSPHRASEwhen encryptPassphrase for encrypted backups.
  • For Docker + host-hosted Ollama, prefer http://host.docker.internal:11434.
  • The semantic-neighbor feature creates edges with source='semantic-neighbor'.