Examples Portfolio
34 Production-Quality Examples in Multiple Languages Real-World Solutions
Every example runs out of the box in Rust, Go, or Python.
20 patterns also ship as CLI/Bash implementations for shell automation and CI.
From basic chat to multi-engine orchestration — pick a pattern, choose your language, and launch.
LLM Patterns
Core patterns for working with cloud and local language models — chat, streaming, structured output, retries, cost routing, and more.
- Customer support chatbot, FAQ assistant
- Real-time chat interface, live transcription display
- Multi-vendor AI gateway, provider comparison tool
- Rapid prototyping, scripting with LLM capabilities
- CLI tools, batch processing scripts
- Adaptive AI middleware, feature-gated UX
- Cost-optimized inference, budget-aware model selection, prompt complexity tiering
- Plugin architecture, provider-agnostic application layer
- High-availability AI service, resilient inference pipeline
- Data extraction, form auto-fill, API response generation
- Latency-sensitive services, SLA-bound AI endpoints
- Usage metering, per-user quota enforcement
- Image captioning, visual QA, document understanding
-
statusList provider authentication status and stored credentials -
setStore an API key for a specific provider -
removeRemove a stored API key for a provider -
dashboardOpen provider credential dashboard in browser
- Developer tooling, credential management, multi-provider auth setup
- On-premise AI deployment, air-gapped inference
- Developer local testing, offline prototyping
- SOC alert triage, IT incident management
- Developer productivity tool, command-line copilot
- Explainable AI decisions, regulated industry automation
-
car-washCatch the classic car-wash walk-vs-drive failure with CLIPS rules and optional Solver/Z3 feasibility -
coupon-stackReject promotion stacking that violates eligibility and margin policy, with optional ZEN validation and BN risk scoring -
pallet-doorBlock unsafe warehouse advice that ignores dimensional clearance, with optional Solver/Z3 feasibility -
cold-chainPrevent cheaper logistics recommendations that violate handling requirements, with optional ZEN validation and BN review-risk scoring
- LLM answer validation Catch plausible recommendations that fail physical, operational, or policy preconditions before they reach users
- Policy enforcement Turn free-form answers into facts, apply deterministic rules, and produce auditable repair context
- Operational decision support Preserve fast LLM drafting while requiring concrete feasibility evidence for workflow-critical recommendations
-
basic-ticket-routingRun a credentials-free support ticket classification research smoke -
promptfoo-importImport a Promptfoo config and run the converted nxusKit harness matrix -
software-devEvaluate code analysis, bug finding, patching, generation, refactoring, and review outputs
- Model evaluation Score model candidates against task-specific outputs and report confidence instead of relying on ad hoc impressions
- Provider comparison Compare local and cloud providers through one provider-neutral workflow while keeping capability claims honest
- Lifecycle policy Generate dry-run pull, pin, keep, or retest recommendations bounded by deterministic policy
- Software development workflow research Exercise code analysis, bug finding, bugfixing, generation, refactoring, and review scenarios with public-safe fixtures
-
seatingWedding dinner seating — 12 guests across 3 tables with constraints -
dungeonDungeon layout — 5 rooms with boss and treasure placement rules -
road-tripRoad trip planning — 14 days across 5 national parks with preferences
- Natural language optimization, conversational planning
-
sudokuSolve Sudoku puzzles using CLIPS constraint propagation -
set-gameFind valid SET card combinations using CLIPS pattern matching -
compareSide-by-side comparison of CLIPS, LLM, and hybrid solvers
- AI strategy comparison, constraint vs neural solving benchmarks, educational puzzle platforms
-
raceHead-to-head CLIPS vs LLM race on a single problem -
benchmarkStatistical benchmarking with multiple runs and timing -
listList all available problems with difficulty ratings -
describeShow detailed description of a specific problem
- AI approach comparison, rule engine vs LLM benchmarking, hybrid strategy selection
-
analyzeAnalyze a music sequence for key, intervals, and rhythm patterns -
scoreScore a sequence on six musical dimensions -
transformTransform a sequence — transpose, invert, or retrograde -
convertConvert between MIDI and MusicXML formats
- Music theory analysis, algorithmic composition assistance, MIDI/MusicXML processing
-
generateGenerate CLIPS rules from natural language descriptions -
validateValidate CLIPS rule syntax and semantic correctness -
saveSave generated rules to a file for later use -
loadLoad previously saved rules from a file -
examplesRun progressive complexity examples demonstrating rule generation
- Low-code rule authoring, natural language business logic, automated CLIPS code generation
-
classificationCategorize input text into specified categories -
extractionExtract structured information from unstructured text -
reasoningPerform logical inference and multi-step reasoning
- Reliable AI answers with deterministic validation, LLM output verification, hybrid rule+LLM pipelines
Rule Engines & Decision Tables
Deterministic reasoning with CLIPS rules and ZEN decision tables — alone or combined with LLMs for hybrid AI pipelines.
- Business rules engine, compliance checking
-
festivalMusic festival staging — crowd predictions drive band scheduling and safety -
rescueSearch and rescue — survivor probability drives team assignment and safety checks -
bakeryBakery scheduling — demand forecasts drive oven allocation and allergen separation
- Event planning Predict attendance, optimize resource allocation, enforce safety codes
- Emergency response Estimate survival windows, deploy rescue assets, enforce operational protocols
- Manufacturing Forecast demand, schedule production, enforce quality and safety standards
- Logistics Predict delivery volumes, optimize fleet routing, enforce regulatory compliance
- Healthcare Predict patient load, optimize staff scheduling, enforce clinical safety protocols
-
maze-ratFirst Hit Policy — route a maze runner through personality-driven decisions -
potionCollect Hit Policy — match ingredient lists against brewing recipes -
food-truckExpression Nodes — compute dynamic pricing with conditional logic
- Pricing rules, eligibility determination, policy evaluation
Constraint Solvers
Z3-based constraint solving for optimization, scheduling, and what-if analysis through the nxusKit solver API.
-
theme-parkBudget and space planning for a theme park with rides, food courts, and entertainment zones -
space-colonyResource allocation for a space colony dealing with solar storm what-if scenarios -
fantasy-draftFantasy sports draft optimization under salary cap with injury what-if analysis
- Theme Park Planning Facility layout, capital budgeting, resource allocation
- Space Colony Planning Infrastructure sizing, capacity planning, disaster recovery modeling
- Fantasy Sports Draft Portfolio optimization, team composition, auction bidding strategies
-
weddingWedding budget planning with $25k constraint and vendor what-if scenarios -
marsMars colony resource allocation with dust storm what-if disruptions -
recipeRecipe scaling with vegan substitution — may be UNSAT
- Wedding Budget Planning Event planning, capital budgeting, portfolio allocation
- Mars Colony Planning Infrastructure sizing, supply chain planning, disaster preparedness
- Recipe Scaling Manufacturing scaling, formulation optimization, process engineering
Probabilistic Reasoning
Bayesian networks for inference, structure learning, and probabilistic modeling integrated into application workflows.
-
haunted-houseInvestigate a haunted house — is it a ghost or a raccoon? -
coffee-shopDiagnose bad espresso from grind size, temperature, and bean age -
plant-doctorDiagnose a sick plant from overwatering, nutrient, and disease evidence
- Haunted House Fault diagnosis, anomaly detection, sensor fusion from multiple noisy sensors pointing to hidden causes
- Coffee Shop Manufacturing quality control, process parameter tuning, root cause analysis in production
- Plant Doctor Medical diagnosis, agricultural advisory systems, multi-symptom differential diagnosis
-
golfGolf course conditions — weather, soil, and maintenance factor learning -
bmxBMX performance — skill level, technique, and jump factor learning -
sourdoughSourdough baking — feeding schedule, flour type, and temperature factor learning
- Epidemiology Discover disease risk factor relationships from patient records
- Manufacturing Identify root causes of defects from production data
- Finance Map causal relationships between economic indicators
- Genomics Learn gene regulatory networks from expression data
- Quality control Find which process parameters affect product quality