Add UI for Context Chat Multi: batch question input and output - #646
Add UI for Context Chat Multi: batch question input and output#646MichelleAntunes wants to merge 9 commits into
Conversation
Signed-off-by: MichelleAntunes <miichelleantunes@outlook.com>
Signed-off-by: MichelleAntunes <miichelleantunes@outlook.com>
Signed-off-by: MichelleAntunes <miichelleantunes@outlook.com>
Signed-off-by: MichelleAntunes <miichelleantunes@outlook.com>
…tch UI minimum Signed-off-by: MichelleAntunes <miichelleantunes@outlook.com>
…imum Signed-off-by: MichelleAntunes <miichelleantunes@outlook.com>
Signed-off-by: MichelleAntunes <miichelleantunes@outlook.com>
Signed-off-by: MichelleAntunes <miichelleantunes@outlook.com>
Signed-off-by: MichelleAntunes <miichelleantunes@outlook.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughAdds support for Merge Risk: ⚪ Minimal · up to The multi-question UI change has no remaining actionable merge risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi, thanks for the PR! Not sure we want 2 task types. We are discussing in the team how it's best to move forward. |
|
@julien-nc Thanks for the feedback! No worries at all — happy to adjust once you've settled on a direction. Let me know if you need any more context on the current approach in the meantime. |
UI implementation for #637.
Problem
Context Chat currently answers one question per task. For workflows that need answers to a fixed batch of related questions against the same knowledge base, this means submitting each question as a separate task and manually reassembling the results.
Solution
Adds the Assistant UI for the new "Context Chat Multi" task type (backend: nextcloud/context_chat_backend#351). Users can add/remove question fields (currently capped at 20, read from the backend's configured limit rather than hardcoded), and the output shows one block per question with its answer and sources, reusing existing output components where possible.
Changes
src/components/ContextChat/ContextChatMultiInputForm.vue: new input form, add/remove question fields, starts with the 2-question minimumsrc/components/ContextChat/ContextChatMultiOutputForm.vue: new output form, one block per question (question, answer, sources)src/components/AssistantFormInputs.vue/AssistantFormOutputs.vue: register the new components for the Multi task typesrc/components/TaskListItem.vue: show the first question and remaining count in the task list sidebar for Multi tasksTesting
Tested end-to-end on a real Nextcloud instance with the companion backend branch: submitted a batch of questions against real indexed documents and confirmed the UI returns correctly answered, source-attributed results for each question.
Companion PR
This is the UI half of the feature. Backend: nextcloud/context_chat_backend#351
🤖 AI (if applicable)