Question about Knowledge base for slots - Rasa CALM - Rasa Community Forum

👋 Introducing the Rasa Playground

Question about Knowledge base for slots

post by Elliot94 on Jun 5, 2024

From what I understand of the docs, the Knowledge base document is only used when pattern_search is triggered, and these are usually for answering questions. I was wondering if there was anyway we can use a DB as vector store and then use the values to set slots. Suppose, I say to the conversation agent to transfer money to James, then it can use the DB to find the corresponding account number or something and set the slot.


post by l2nguyen on Jun 6, 2024

Suppose, I say to the conversation agent to transfer money to James, then it can use the DB to find the corresponding account number or something and set the slot.

That’s not a good use case for pattern_search. pattern_search is meant for FAQ related questions.

For what you’re describing, you should use a custom action to query your DB with account information and then set the slots with whatever the DB query returns.


post by Elliot94 on Jun 6, 2024

That is my current approach, but I just wanted to know if there was any way I can get the LLM to do it for me.