soul
.py
v2.0
RAG + RLM hybrid โ automatic query routing
๐ฆ PyPI
v0.1 demo
โ GitHub
Architecture
Retrieval mode:
โก Auto (router decides)
๐ RAG only
๐ RLM only
Session 1
โป New Session
Query routing in action
Auto mode uses a lightweight LLM classifier to route each query. Watch the Router panel to see why.
Step 1
โ Tell the agent several things about yourself
Step 2
โ Ask a specific question โ routes to RAG
Step 3
โ Ask for a summary/pattern โ routes to RLM
Step 4
โ Try forcing RAG/RLM mode to compare
My name is Prahlad and I run an AI research lab in Pittsburgh.
โ RAG
I enjoy driving fast cars and flying small planes.
โ RAG
What car do I own?
โ RAG
Summarize everything you know about me across all our conversations.
โ RLM
What patterns appear in the things I've told you?
โ RLM
Send
โก Router Decision
waiting for query...
Query classified as
โ
Router
โ
Retrieval
โ
Total
โ
RLM sub-summaries
Retrieved Context
Full MEMORY.md
Ask something to see what was retrieved...
# MEMORY.md (No memories yet)
โบ Reset everything