Compounding Inference Swarm Engine
Multi-pass reasoning loop with exponential semantic “compounding,” self-reflection, and final synthesis.
Primary use-cases: technical Q&A, quick fact checks, light calculation, abstract problem breakdown.
How it Works
- Chat Trigger –
Query Inputnode exposes a public chat interface.- State Init –
Initialize Inference Stateseeds a global static object:
• uniquesessionId
• prompt, iteration 0, golden-ratio harmonic factor φ- Prompt Meta-Generation –
Build RAG Prompt→Prompt Generator Agent(LLM + Think tool) crafts a deeper, orthogonal prompt;Clean Agent Outputstrips any JSON/markdown.- Prompt Stacking –
Restore State After Promptpushes the new prompt into history.- Core Inference –
Prepare Inference Prompt→Core Inference Agent(LLM + Reflection + Memory window 20) performs analysis;Clean Inference Outputsanitises;Parse & Compoundupdates:
•depth = depth × φ
•dimensionality ++
•compoundingFactor = e^{π·depth/dimensionality}
•confidenceasymptotically → 0.95- Loop Control –
Continue Compounding?repeats steps 3-5 while
confidence < thresholdANDiteration < maxIterations (8).
Final Synthesis – when the loop exits,Prepare Synthesisbuilds a global recap;Synthesis Agentproduces the answer;Clean Synthesis Outputreturns raw text to the user.
Usage Tips
- Ask any question; the engine self-propagates deeper prompts until convergence.
- Plain-text only; structured output is stripped.
Limits & Errors
- Iterations: ≤ 8
- Confidence stop: 0.95
- Token limits: 3 k (synthesis/core), 1.5 k (prompt gen).
- Any tool/LLM error bubbles up as thrown JS error.
Permissions: Public
Login for demo
- user:
testuser- pass:
testuser1234
