AI Summary Shown by default? #25

Closed
opened 2026-02-09 03:49:02 +00:00 by mik-tf · 0 comments
Owner

Current Behavior

The AI Summary is hidden behind a toggle (off by default). Users must click the toggle to see it, then wait for the LLM to generate a summary.

Options

  1. Default to ON — toggle stays but is checked by default, summary auto-fetches on page load
  2. Remove toggle entirely — always fetch and show the summary inline above results, no special label

Considerations

  • LLM calls take 2-5 seconds, need graceful loading state
  • If always-on, every search triggers an LLM call (cost/latency)
  • Could show a loading skeleton while summary generates
  • Label "AI Summary" could be removed — just show the synthesized answer naturally

Location

  • Toggle: templates/library.html lines 192-213, templates/search.html lines 33-57
  • JS: templates/base.html lines 470-510 (toggleAISummary function)
  • API: src/web/server.rs lines 2617-2700 (/api/ai-summary endpoint)
## Current Behavior The AI Summary is hidden behind a toggle (off by default). Users must click the toggle to see it, then wait for the LLM to generate a summary. ## Options 1. **Default to ON** — toggle stays but is checked by default, summary auto-fetches on page load 2. **Remove toggle entirely** — always fetch and show the summary inline above results, no special label ## Considerations - LLM calls take 2-5 seconds, need graceful loading state - If always-on, every search triggers an LLM call (cost/latency) - Could show a loading skeleton while summary generates - Label "AI Summary" could be removed — just show the synthesized answer naturally ## Location - Toggle: `templates/library.html` lines 192-213, `templates/search.html` lines 33-57 - JS: `templates/base.html` lines 470-510 (toggleAISummary function) - API: `src/web/server.rs` lines 2617-2700 (`/api/ai-summary` endpoint)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_books#25
No description provided.