Sending follow up options with response for chat message #8950
Unanswered
paulGeoghegan
asked this question in
Help
Replies: 1 comment
-
@paulGeoghegan check https://www.aihero.dev/streaming-in-next-question-suggestions-with-the-ai-sdk |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm setting up a chat bot using the AI SDK and the svelte package for handeling the chat.
I'm using Ollama for local testing but will probably deploy to Deepinfra for prod.
As part of the project I want to generate follow up prompts for the bot as the bot is meant for educators so they can learn more about a particular topic.
I have tried a few different approaches to this:
Is there a better way to approach this? I have considered other alternatives like trying to have it generate a structured text response e.g.:
I also don't think that's a good idea as if it deviates from the prompt at all they would be displayed in the body of the response and wouldn't be clickable action buttons.
Beta Was this translation helpful? Give feedback.
All reactions