Repository navigation
v0.7.0 — Advanced Rules, LangChain, LlamaIndex, Axiom Studio
What's New
Advanced Rule Types
- ComparisonRule — cross-relation arithmetic with multiplier (e.g.,
loan_amount <= 5 * salary) - CardinalityRule —
at_most/at_leastconstraints (e.g., max 2 primary diagnoses) - CompositionRule — AND/OR/NOT logic via
all_of,any_of,none_of
LangChain Integration
pip install "axiomguard[langchain]"AxiomGuardChain— Runnable wrapping generate_with_guard()AxiomGuardRetriever— filter/annotate retrieved documentsAxiomGuardOutputParser— verify LLM output against rules
LlamaIndex Integration
pip install "axiomguard[llamaindex]"AxiomGuardPostprocessor— node postprocessor (filter/annotate/strict modes)AxiomGuardQueryEngine— query engine with self-correction loop
Axiom Studio
pip install "axiomguard[studio]"
streamlit run axiom_studio.py- Visual rule editor with live YAML preview
- Claim testing with live Z3 verification
- YAML import/export + download
Stats
- Test count: 246 → 309 (+63 new tests)
- 14 files changed, 2,200+ lines added
Full Changelog: v0.6.3...v0.7.0