Installation¶
Basic Install¶
This installs the core library with openai and pydantic as dependencies.
Extras¶
RuleChef provides optional extras for additional features:
# Regex pattern suggestions from examples (recommended)
pip install rulechef[grex]
# spaCy token/dependency matcher patterns
pip install rulechef[spacy]
# LLM-powered coordinator for adaptive learning loops
pip install rulechef[agentic]
# Everything
pip install rulechef[all]
Extra Details¶
| Extra | What It Adds | When You Need It |
|---|---|---|
grex |
grex regex inference | Improves regex rule quality by suggesting patterns from examples |
spacy |
spaCy NLP | Linguistic patterns using POS, dependency, lemma attributes |
agentic |
pydantic-ai | LLM-driven coordinator that guides refinement loops |
all |
All of the above | Full feature set |
Development Extras¶
# Run tests
pip install rulechef[dev]
# Build documentation
pip install rulechef[docs]
# Run benchmarks
pip install rulechef[benchmark]
Requirements¶
- Python 3.10+
- An OpenAI-compatible API key (OpenAI, Groq, Together, etc.)
Verify Installation¶
Using with Other LLM Providers¶
RuleChef uses the OpenAI client, which works with any OpenAI-compatible API: