Colang v2 Interaction Loop with Query Rewriting #866
Unanswered
niels-garve
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Update: I'm currently trying input rails for user message rephrasing, with no luck. It feels like the correct place to do that, though:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Opened a PR: #869 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am creating an AI solution based on the interaction loop of Colang v2. To improve the intent detection for user messages like confirmations ("yes", "no", etc.) I'd like to add Query Rewriting; basically an LLM call prompting to rephrase the user message with context from the conversation.
Example
User: Show me some bikes
Bot: Sure! Are you looking for some mountain bikes
User: yes
Now, query rewriting would transform the "yes" into "Show me some mountain bikes".
I don't find a solution; I tried with a custom action, but from where do I get the conversation. I could use the default prompt for intent detection, but I also would like to reduce cognitive load on LLM calls. Intent detection is one thing, rephrasing another.
Here's what I have so far:
main.co
config.py
I use a default config.yml
I'd appreciate your help!
Thanks and cheers,
Niels
Beta Was this translation helpful? Give feedback.
All reactions