feat: move prompts to versioned template files
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start by reading the inline prompts in detection_workflow.py and llm_replace_workflow.py, then inspect the surrounding src/anonymizer/engine structure. Compare how each workflow performs placeholder substitution and handles Jinja blocks. Done means the prompts are in versioned files under src/anonymizer/engine/prompts/ and both workflows preserve their existing behavior without inline prompt strings.
Written by the indexing model from the issue text.
Description
Priority Level
Medium
Task Summary
Detection and replacement prompts are currently inline Python strings in detection_workflow.py and llm_replace_workflow.py. Move them to versioned template files for easier review, diffing, and iteration without touching Python code.
Technical Details & Implementation Plan
Create src/anonymizer/engine/prompts/ directory with template files (e.g. validation.txt, augmentation.txt, latent_detection.txt, replacement.txt). Load at module level or lazily. Keep <<PLACEHOLDER>> tag convention for variable substitution. Consider whether Jinja blocks should stay inline or move to the template files.
Suggested by @andreatgretel in PR #3 review.
Dependencies
No response
- Dominant language
- Python
- Stars
- 133
- Forks
- 22
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 23
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA-NeMo/Anonymizer
-
Use context to recognize personal initials and lowercase namesPossibly taken @lipikaramaswamy claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
NVIDIA-NeMo/Anonymizer#340 ·
Maintainers usually reply within 1 day
-
Clarify date validation for months, years, and partial datesPossibly taken @lipikaramaswamy claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA-NeMo/Anonymizer#334 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NVIDIA-NeMo/Anonymizer#327 ·
Maintainers usually reply within 1 day
-
Replacement-map generation can silently omit a requested entity, causing the rewrite to be marked unavailablePossibly taken @dundysm claimed this 35 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA-NeMo/Anonymizer#278 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NVIDIA-NeMo/Anonymizer#6 · 1 comment ·
Maintainers usually reply within 1 day
All issues in NVIDIA-NeMo/Anonymizer
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
[oblt-aw][autodoc] Document obs-aw-automerge contract and fix automerge doc inconsistenciesPossibly taken @github-actions claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
admission-deferred priority: medium status: ready work-class: scoped
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melodic-software/claude-code-plugins#10887 · 4 comments ·
Maintainers usually reply within 1 day
-
backend bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
PoCInnovation/Distribox#255 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
google/langextract#598 ·
Maintainers usually reply within 1 day