Skip to content

Releases: wayneworkman/emaillm

Release list

v0.1.1

Choose a tag to compare

@wayneworkman wayneworkman released this 07 May 23:23
4b9ae4a

fix: load all custom categories from config and fix classification bugs

Three bugs prevented custom categories (e.g., interviews,
application_confirmations) from working:

  1. load_config() only processed hardcoded category keys, silently
    dropping any custom categories added to the folders config
  2. classify_email_vllm() excluded 'prompt_injection' (wrong key)
    instead of 'prompt_attack', leaking prompt injection detection
    text into classification prompts and confusing the LLM
  3. main() crashed with KeyError when aggregating inbox stats that
    contained custom category keys not in the hardcoded total_stats dict

Fixes:

  • load_config() now iterates over all folders keys in config
  • classify_email_vllm() now excludes 'prompt_attack' correctly
  • main() uses dict.get(key, 0) for safe stats aggregation

Add 13 regression tests in tests/test_custom_categories.py

v0.1.0

Choose a tag to compare

@wayneworkman wayneworkman released this 29 Mar 21:51
797c97b

Initial release.