alignmenter 0.0.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. alignmenter/__init__.py +14 -0
  2. alignmenter/cli.py +1815 -0
  3. alignmenter/config.py +99 -0
  4. alignmenter/data/configs/demo_config.yaml +15 -0
  5. alignmenter/data/configs/judges/safety_prompt.txt +2 -0
  6. alignmenter/data/configs/persona/default.yaml +15 -0
  7. alignmenter/data/configs/run.yaml +12 -0
  8. alignmenter/data/configs/safety_keywords.yaml +7 -0
  9. alignmenter/data/datasets/demo_conversations.jsonl +60 -0
  10. alignmenter/providers/__init__.py +47 -0
  11. alignmenter/providers/anthropic.py +87 -0
  12. alignmenter/providers/base.py +57 -0
  13. alignmenter/providers/classifiers.py +83 -0
  14. alignmenter/providers/embeddings.py +126 -0
  15. alignmenter/providers/judges.py +105 -0
  16. alignmenter/providers/local.py +102 -0
  17. alignmenter/providers/openai.py +151 -0
  18. alignmenter/reporting/__init__.py +6 -0
  19. alignmenter/reporting/html.py +721 -0
  20. alignmenter/reporting/json_out.py +33 -0
  21. alignmenter/run_config.py +106 -0
  22. alignmenter/runner.py +410 -0
  23. alignmenter/scorers/__init__.py +7 -0
  24. alignmenter/scorers/authenticity.py +337 -0
  25. alignmenter/scorers/safety.py +231 -0
  26. alignmenter/scorers/stability.py +104 -0
  27. alignmenter/scripts/__init__.py +1 -0
  28. alignmenter/scripts/bootstrap_dataset.py +142 -0
  29. alignmenter/scripts/calibrate_persona.py +196 -0
  30. alignmenter/scripts/run_openai_demo.py +74 -0
  31. alignmenter/scripts/sanitize_dataset.py +185 -0
  32. alignmenter/utils/__init__.py +7 -0
  33. alignmenter/utils/io.py +47 -0
  34. alignmenter/utils/tokens.py +46 -0
  35. alignmenter/utils/yaml.py +15 -0
  36. alignmenter-0.0.4.dist-info/METADATA +681 -0
  37. alignmenter-0.0.4.dist-info/RECORD +41 -0
  38. alignmenter-0.0.4.dist-info/WHEEL +5 -0
  39. alignmenter-0.0.4.dist-info/entry_points.txt +2 -0
  40. alignmenter-0.0.4.dist-info/licenses/LICENSE +201 -0
  41. alignmenter-0.0.4.dist-info/top_level.txt +1 -0
@@ -0,0 +1,14 @@
1
+ """Alignmenter package scaffold."""
2
+
3
+ import os
4
+
5
+ # Hugging Face tokenizers will warn loudly when forked after parallelism is enabled.
6
+ # Default to disabling parallel threads unless the user explicitly overrides it.
7
+ os.environ.setdefault("TOKENIZERS_PARALLELISM", "false")
8
+
9
+ from .cli import app # re-export for convenience
10
+ from .config import get_settings
11
+
12
+ __version__ = "0.0.4"
13
+
14
+ __all__ = ["app", "get_settings", "__version__"]