Skip to content

v0.7.0 — Advanced Rules, LangChain, LlamaIndex, Axiom Studio

Choose a tag to compare

@witchwasin witchwasin released this 05 Apr 18:57
· 6 commits to main since this release

What's New

Advanced Rule Types

  • ComparisonRule — cross-relation arithmetic with multiplier (e.g., loan_amount <= 5 * salary)
  • CardinalityRule — at_most / at_least constraints (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 documents
  • AxiomGuardOutputParser — 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