ArafatKhan2198 commented on code in PR #609:
URL: https://github.com/apache/ozone-site/pull/609#discussion_r4730879933


##########
docs/05-administrator-guide/03-operations/09-observability/02-recon/03-recon-ai-assistant.mdx:
##########


Review Comment:
   The feature is marked **Alpha** in the Recon UI and may change between 
releases.
   



##########
docs/05-administrator-guide/03-operations/09-observability/02-recon/03-recon-ai-assistant.mdx:
##########
@@ -9,8 +9,7 @@ and get answers assembled from the data Recon already collects. 
It is an optiona
 default**, experimental feature of the Recon service.

Review Comment:
   These two lines still say "experimental" and "Beta", but the Recon UI shows 
an Alpha tag. Since this PR is about matching the current code, please use 
"Alpha" in both places
   
   



##########
docs/05-administrator-guide/03-operations/09-observability/02-recon/03-recon-ai-assistant.mdx:
##########


Review Comment:
   This says "open the assistant panel in the Recon UI", but the page now has a 
menu item. Suggest: open **Recon AI** from the Recon navigation menu.
   
   



##########
docs/05-administrator-guide/03-operations/09-observability/02-recon/03-recon-ai-assistant.mdx:
##########
@@ -598,11 +667,11 @@ The shipped versions are tuned for Recon - change them 
deliberately.
 
 | Symptom | Likely cause / fix |
 |---|---|
-| Empty answer from a reasoning model (e.g. `gemini-2.5-pro`) | The model 
spent its token budget "thinking". Prefer a fast model (flash), or raise token 
limits. |
+| Empty answer from a reasoning model (e.g. `gemini-2.5-pro`) | The model 
spent its token budget "thinking". Prefer a fast model (flash), or raise 
`max.tokens`. |
 | Answered by an unexpected model/provider | Routing fallback - the requested 
provider/model was not configured. See 
[routing](#provider--model-routing-fallback-behavior). |
 | "No API key configured" | Check the provider, the key, and 
`hadoop.security.credential.provider.path`. |
 | `llmClientAvailable: false` after enabling `JCEKS` | Wrong/missing keystore 
password (`HADOOP_CREDSTORE_PASSWORD` or the password file), or the alias name 
does not match the config key. A bad password makes **all** aliases in that 
keystore unreadable. |
-| Chat works but you expected `JCEKS` to be in use | A plaintext `*.api.key` 
is still present and is used as fallback. Remove it; confirm `ozone getconf` 
returns empty for the key. |
+| Chat works but you expected `JCEKS` to be in use | A plaintext `*.api.key` 
is still present and is used as fallback. Remove it; confirm `ozone getconf` 
reports the key as missing. |
 | HTTP 504 (timeout) / HTTP 503 (overloaded) | Tune `thread.pool.size`, 
`max.queue.size`, `request.timeout.ms`. |

Review Comment:
   The PR now documents that a disabled feature returns 404, but the 
troubleshooting table has no row for it. Suggest adding:
   
   | HTTP 404 on /api/v1/chatbot/* | The feature is disabled. Recon registers 
these endpoints only when enabled is true; set it and restart Recon. |



##########
docs/05-administrator-guide/03-operations/09-observability/02-recon/03-recon-ai-assistant.mdx:
##########
@@ -188,6 +189,10 @@ cluster before enabling it.
 **Transmitted to the provider:**
 
 - The user's **question text**.
+- **Earlier turns of the conversation** - the chat window sends recent 
questions and answers with
+  each new question, and Recon includes up to the last 8 turns (within 
`history.max.chars`) in both
+  provider calls. Earlier answers can contain cluster metadata. Set 
`history.max.chars` to `0` to

Review Comment:
   History goes into the tool-selection call and the summarization call. It is 
not sent in the fallback reply used for off-topic questions. Suggest "in the 
tool-selection and summarization calls" instead of "in both provider calls".
   
   



##########
docs/05-administrator-guide/03-operations/09-observability/02-recon/03-recon-ai-assistant.mdx:
##########
@@ -360,6 +381,13 @@ All keys are under the prefix `ozone.recon.chatbot.`.
 |---|---|---|
 | `exec.require.safe.scope` | `true` | Require a bucket-scoped prefix for key 
listings. Keep enabled in production (see 
[Limits](#11-limits--boundary-conditions)). |
 | `max.tool.calls` | `5` | Maximum number of Recon reads a single question may 
trigger. |
+| `max.tokens` | `8192` | Maximum output tokens per provider call. Raise it 
for reasoning models (for example `gemini-2.5-pro`) that spend output tokens on 
internal thinking. |

Review Comment:
   max.tokens is a setting for each provider call, not an execution rule. It 
would fit better in the "Provider & model" table, next to default.model (line 
359), than in "Execution policy".
   
   



##########
docs/05-administrator-guide/03-operations/09-observability/02-recon/03-recon-ai-assistant.mdx:
##########
@@ -487,9 +540,12 @@ interpreting answers:
   about task/sync status (`api_v1_task_status`) to gauge freshness.
 - **Bounded concurrency and time.** Requests beyond pool + queue capacity get 
HTTP 503; requests
   exceeding `request.timeout.ms` get HTTP 504.
-- **No conversation memory.** Each query is independent - the assistant does 
not retain context from
-  previous questions in the same session. If a follow-up question relies on a 
prior answer, repeat
-  the relevant detail in the new query.
+- **Limited conversation memory.** The chat window sends recent turns with 
each question, so a

Review Comment:
   There's one more limit that isn't mentioned. Before the total 
history.max.chars limit is applied, each earlier turn is shortened: a question 
keeps its first 500 characters, an answer its first 1000 (ChatHistoryBuilder). 
So a follow-up that depends on detail deep inside a long answer won't see it. 
Please add one sentence to both places.
   
   Suggested for line 543: Each turn is also shortened first: a question keeps 
its first 500 characters and an answer its first 1000.
   
   Suggested for line 573: Recon ... shortens long turns (a question to 500 
characters, an answer to 1000), and trims the total to history.max.chars.
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to