Skip to content

feat(config): add env var support for custom extraction/update/import…#911

Open
wayyoungboy wants to merge 1 commit intooceanbase:mainfrom
wayyoungboy:feat-custom-prompt-env-0424
Open

feat(config): add env var support for custom extraction/update/import…#911
wayyoungboy wants to merge 1 commit intooceanbase:mainfrom
wayyoungboy:feat-custom-prompt-env-0424

Conversation

@wayyoungboy
Copy link
Copy Markdown
Member

…ance prompts

Three custom prompts were only configurable via SDK dict config. Add env var support following the existing GraphStoreSettings pattern:

POWERMEM_CUSTOM_FACT_EXTRACTION_PROMPT
POWERMEM_CUSTOM_UPDATE_MEMORY_PROMPT
POWERMEM_CUSTOM_IMPORTANCE_EVALUATION_PROMPT

Adds CustomPromptsSettings class with POWERMEM_CUSTOM_ prefix. Keys are merged at top level of the config dict, matching where Memory.init reads them. Unset vars produce no keys — default prompts are preserved.

Also updates .env.example (section 16) and both docs guides (0003-configuration.md, 0004-custom_prompts_usage.md) to document the new env vars and usage.

…ance prompts

Three custom prompts were only configurable via SDK dict config. Add env var
support following the existing GraphStoreSettings pattern:

  POWERMEM_CUSTOM_FACT_EXTRACTION_PROMPT
  POWERMEM_CUSTOM_UPDATE_MEMORY_PROMPT
  POWERMEM_CUSTOM_IMPORTANCE_EVALUATION_PROMPT

Adds CustomPromptsSettings class with POWERMEM_CUSTOM_ prefix. Keys are
merged at top level of the config dict, matching where Memory.__init__
reads them. Unset vars produce no keys — default prompts are preserved.

Also updates .env.example (section 16) and both docs guides
(0003-configuration.md, 0004-custom_prompts_usage.md) to document
the new env vars and usage.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant