Closed marek-mihok closed 4 months ago
First 2 points are done:
https://github.com/h2oai/wave/assets/23740173/feabd35c-41c3-40d6-9fd3-781e1860b749
https://github.com/h2oai/wave/assets/23740173/826238cb-bd9a-4fd6-a598-ea20212b885f
The example could use some polish as well, it's very rough at the moment.
@mturoci what do you mean by rough? In terms of code quality or the use case relevance? Can you give me some thoughts about what you consider a proper example?
what do you mean by rough?
Would that demo persuade you to use Wave? Probably not. Would be better to append the suggestion right away, but add a slight timeout on suggestion selection to emulate computation, hide suggestions in the meantime, then append the response.
First 2 points are done:
Looks better, the border radius is off though. Try to use the same as used in the rest of our cards/components.
The PR fulfills these requirements: (check all the apply)
main
branch.feat: Add a button #xxx
, where "xxx" is the issue number).Closes #xxx
, where "xxx" is the issue number.ui
folder, unit tests (make test
) still pass.This PR brings
suggestions: ChatSuggestion[]
attribute to show clickable prompt suggestions under the last response in ui.chatbot component. When the suggestion is clicked, it firessuggestion
event which can subsequently be handled by the user.The user input can be limited to prompt suggestions only by specifying
disabled
prop which disables user input or it can be used in a combination with text input as well.Updated API is as follows:
The same API update also applies to
ui.chatbot_card
component.Closes #2250