Closed asith-w closed 1 month ago
If your prompts cover a wide range of scenarios, a custom API call can help in accurately matching user intent to the appropriate prompt. However, if the intents are relatively straightforward, simpler methods like keyword matching or rule-based approaches might suffice.
Question
I have 2 prompts and I'm trying to select a default prompt based on user intent. I decided to make a custom OpenAI API call to detect the default prompt in ActionPlanner. Is this approach a bad idea?
Code snippets
.