https://discord.gg/botpress logo
How to Isolate Knowledge Base per Workflow + HITL?...
# 🤝help
s
Problem: I'm building a consultant bot for bicycles. The bike models are very similar. When all data is in one Knowledge Base (or even if multiple KBs are globally available), the RAG system mixes up details between models when answering user questions. Accuracy is critical for this use case. Desired Flow: User asks about Model A. Bot switches to Workflow_A. CRUCIAL: Inside Workflow_A, the bot must ONLY search for answers within KnowledgeBase_A (containing data only for Model A). It MUST NOT see or search in any other KBs (KB_B, KB_C, etc.). If the bot cannot find the information within KnowledgeBase_A or is uncertain about the answer's relevance/accuracy, it should trigger a Human-in-the-Loop (HITL) / Agent Handoff. If the user then asks about Model B, the bot switches to Workflow_B and uses ONLY KnowledgeBase_B, again falling back to HITL if needed within that specific context. Question: How can I technically implement this strict KB isolation per workflow in Botpress? How do I force an active Workflow to use only one specific, assigned Knowledge Base for its RAG lookups and completely ignore all others, before deciding to escalate to HITL? Standard Agent/Knowledge Base configurations don't seem to offer this level of isolation – it feels like RAG might still access other KBs, or the HITL trigger might be too broad. Any ideas on how to achieve this? Maybe via custom code, actions, variables, or specific configurations? Looking for Development Help: We are struggling to implement this specific dynamic KB switching and isolation logic correctly. If you have experience with this type of advanced Botpress setup and can help us build this functionality, we are ready to pay for your development services. Please reach out if you're interested. Thanks a lot!
a
Have you considered AI transitions?
f
You can select the knowledge bases in an autonomous node or in a query knowledge base card
I replied here