Open wwwy3y3 opened 1 week ago
@wwwy3y3 This looks interesting to me. Can I give it a shot? I am not sure whether I would be able to get it to work or not but I want to try this. Are you able to assign this issue for me so that I can start working on it?
@AryanK1511 of course! thanks a lot.
We implemented this feature before, but it seems not working as expected right now.
As you could see from the UI logics here: https://github.com/Canner/WrenAI/blob/8f618418316826df13ad7c78c890da08a8000d8a/wren-ui/src/components/pages/home/promptThread/AnswerResult.tsx#L129-L157
it should show Generated from saved view ${view name}
and clicking the view name will redirect users to the view page.
We suspect that since we change the flow of asking questions, we might break sth here.
If the answer comes from a view, the thread response here should have a view property: https://github.com/Canner/WrenAI/blob/8f618418316826df13ad7c78c890da08a8000d8a/wren-ui/src/apollo/server/schema.ts#L601-L606
@cyyeh, Jimmy you could share more about how AI service API works here. Might help @AryanK1511 solving this issue.
@AryanK1511 assigned to you. Let us know if you have any questions
@AryanK1511 Hi, for AskResult type, you could get AskCandidateType inside, there are two types of value: view or llm. if it's view, you could also get viewId in the AskResult.
Cool! I'll look into this. Thank you so much for assigning this issue to me
Describe the bug In version 0.10.0, after creating a view, the answer generated does not indicate that it originates from a view.
To Reproduce Steps to reproduce the behavior:
Expected behavior The response should clearly indicate if it originates from a view to provide transparency about the data source.
Desktop (please complete the following information):
Wren AI Information