From 8d0a4f3e038a067ac57d4039782f4c638fae576e Mon Sep 17 00:00:00 2001 From: katarinasupe Date: Thu, 19 Nov 2026 14:49:31 +0100 Subject: [PATCH] structured2graph: SQL2MG_* defaults work in .env from 0.4.0 --- .../knowledge-graph-creation/structured2graph.mdx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pages/ai-ecosystem/knowledge-graph-creation/structured2graph.mdx b/pages/ai-ecosystem/knowledge-graph-creation/structured2graph.mdx index ed9141bf6..f322987ee 100644 --- a/pages/ai-ecosystem/knowledge-graph-creation/structured2graph.mdx +++ b/pages/ai-ecosystem/knowledge-graph-creation/structured2graph.mdx @@ -107,14 +107,16 @@ OPENAI_API_KEY=sk-... # For GPT models # LLM_MODEL=gemini-2.0-flash-exp # Google default ``` -[`.env.example`](https://github.com/memgraph/ai-toolkit/blob/main/agents/sql2graph/.env.example) +[`.env.example`](https://github.com/memgraph/ai-toolkit/blob/main/agents/structured2graph/.env.example) in the AI Toolkit repository lists every variable, and you can copy it as a starting point. -The migration defaults `SQL2MG_MODE`, `SQL2MG_STRATEGY`, `SQL2MG_META_POLICY` -and `SQL2MG_LOG_LEVEL` have no effect in `.env`, because `structured2graph` -reads them before it loads the file. Set them in your shell, or pass the -matching [command-line options](#command-line-options). +You can also set the migration defaults `SQL2MG_MODE`, `SQL2MG_STRATEGY`, +`SQL2MG_META_POLICY` and `SQL2MG_LOG_LEVEL` in `.env`. Variables already set in +your shell take precedence over `.env`, and the matching +[command-line options](#command-line-options) take precedence over both. In +versions before 0.4.0, these defaults have no effect in `.env`, so set them in +your shell instead. ## Run a migration