Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(quantic): Add option for rephrase buttons, remove citations numb…
…ers (#4277) 1. SFINT-5661: Add an option (default false), to show the rephrase buttons - We want to ultimately completely remove the rephrase buttons (with V3), but meanwhile we will simply hide them by default, customers can still bring them back with an option for now. - But the data proves very low usage, and most of the usage is to "try" and get an answer when there were no answer generated in the first place. - The display format will be markdown for everyone as it provides the best format of answer anyway. 2. SFINT-5660: Remove the numbers next to the citations in the RGA component. (They were judged not useful by product). ![image](https://github.com/user-attachments/assets/0e80ca15-3c8d-4b63-b260-07ccf3a8ecb9) I also re-organized a little bit the e2e tests for the quanticGeneratedAnswer component. The new logic is basically this: 1. When no streamID is returned 2. When a streamID is returned a. All the "happy path" tests here, completed event, markdown, end of stream, like/dislike, feedback, toggle button, collapsible, copyToClipboard, citations. b. All the options: fieldsToInclude, multilineFooter, collapsible, withRephraseButtons, answerStyle That way it's a lot more readable, I personally think. Feel free to comment on that if you'd make other changes to the format of tests. ![image](https://github.com/user-attachments/assets/14ff1950-691c-4b25-9d4e-81f0ba2eaf0a)
- Loading branch information