Session Search
Let users search across all their Kai chat sessions to quickly find past conversations, questions, and answers.
Problem
Users build up a history of chat sessions over time as they explore their district's data. There's no way to find a specific conversation or answer without manually scrolling through session lists and opening them one by one. This is especially painful when a user remembers asking a question weeks ago but can't recall which session it was in. The more sessions a user accumulates, the harder it becomes to retrieve valuable past insights.
Proposed Solution
Add a search experience that lets users find messages across all their sessions:
A search input accessible from the session sidebar (or a dedicated search view)
As the user types, the main content area replaces the current chat with a list of matching results
Results show matched snippets from both user messages and agent responses, grouped by session with session title visible
Search covers session titles/names and full message content (both user and agent messages)
Selecting a result loads that session and scrolls directly to the matching message, with the match highlighted
Clearing the search or pressing escape returns to the previous view
User Stories
As a district admin, I want to search my past sessions so that I can find the enrollment numbers I asked about last month without re-asking the question.
As a data team member, I want to search agent responses so that I can locate a specific chart or data point the agent provided across dozens of sessions.
As a school leader, I want to quickly find a conversation where I discussed attendance trends so that I can reference it in a staff meeting.
Success Criteria
Users can search across all their sessions from the main chat interface
Search matches against session titles, user messages, and agent responses
Results appear in the main content area as the user types
Selecting a result navigates to the session and scrolls to the exact matching message
Search performs well for users with 100+ sessions
Priority Context
As Kai adoption grows within districts, power users are accumulating significant session history. The value of past conversations compounds over time, but only if users can retrieve them. Without search, users will re-ask questions they've already answered, wasting agent compute and their own time. This is a foundational UX feature for any chat-based product with persistent history.
Open Questions
None
Out of Scope
Cross-user or cross-organization search (search is always scoped to the current user's sessions)
Semantic/vector search (searching by meaning rather than keywords)
Search within agent-generated charts or images
Saved searches or search history