HDDS-14818. Recon: Add AI Assistant chat UI for natural-language cluster queries.#10441
Draft
ArafatKhan2198 wants to merge 1 commit into
Draft
HDDS-14818. Recon: Add AI Assistant chat UI for natural-language cluster queries.#10441ArafatKhan2198 wants to merge 1 commit into
ArafatKhan2198 wants to merge 1 commit into
Conversation
…ter queries. Generated-by: Cursor (Gemini 3.1 Pro / Claude 3.5 Sonnet)
276f484 to
814893f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR adds a new AI Assistant page to the Recon web UI. It lets an operator ask questions about the cluster in plain English (for example, "How many unhealthy containers are there?" or "List keys in /vol1/bucket1") and get back a readable answer, instead of clicking through screens or calling APIs by hand.
The backend for this (added separately) takes a question, calls the right Recon APIs, and returns a single Markdown answer. This PR is the frontend that talks to that backend and presents it as a modern chat experience.
What it does:
/Assistantpage and a nav entry, shown only when the feature is enabled./api/v1/chatbot/healthfirst and shows the right state:/api/v1/chatbot/chatand renders the Markdown reply (including tables, lists, code)./api/v1/chatbot/modelsand offers a provider + model picker.Why: Recon already exposes a lot of cluster data, but finding it takes effort. This gives operators a faster, friendlier way to get answers, while staying inside Recon's existing look and feel (teal/green theme, rounded panels, custom Recon AI mark).
Notes / current limits:
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-14818
How was this patch tested?
UI Manual Testing Results Document - https://docs.google.com/document/d/1Ex3L9eY8oNm-73TwdDr6ZO2eDd2kQZ2WOo_8vsk45ic/edit?tab=t.0#heading=h.onx3qjujbc5t