Add "Similar Chats" panel for exploring related conversations
Goal
Help users discover and group related chats by showing a list of chats that are textually similar to the currently selected chat.
This is complementary to category suggestions and useful even without categories.
UI Behavior
When a user selects or opens a chat, display a panel:
Similar Chats
• Fixing React state bug (89%)
• Streamlit session state issue (84%)
• Debugging Vite build error (78%)
How It Works
- Take the selected chat
- Compare it against other chats in the dataset
- Return the top N most similar matches
Scope (MVP)
- Compare against:
- Chat title
- User prompts (default)
- Exclude:
- The current chat
- Very low similarity results (threshold-based)
Interaction Ideas (Optional, later)
- Click a similar chat to open it
- “Assign same category” shortcut
- Multi-select for batch categorization
Implementation Notes
- Use the same similarity method as category scoring (TF-IDF + cosine)
- No caching required for MVP (can add later if needed)
- Limit comparisons to:
- Recent chats
- Or a capped dataset (e.g. last 500 chats) for performance
Acceptance Criteria
- Displays top 3–5 similar chats
- Updates when a different chat is selected
- Does not noticeably slow down UI
- Handles edge cases:
- Very small datasets
- Highly unique chats (shows fewer results)
Future Enhancements (NOT in this issue)
- Add caching layer for similarity results
- Cluster similar chats automatically
- Visual grouping (e.g. “conversation clusters” view)
- Cross-category similarity insights
Why This Matters
- Helps users rediscover past work
- Makes large chat histories more navigable
- Provides an intuitive bridge into categorization workflows
Add "Similar Chats" panel for exploring related conversations
Goal
Help users discover and group related chats by showing a list of chats that are textually similar to the currently selected chat.
This is complementary to category suggestions and useful even without categories.
UI Behavior
When a user selects or opens a chat, display a panel:
Similar Chats
• Fixing React state bug (89%)
• Streamlit session state issue (84%)
• Debugging Vite build error (78%)
How It Works
Scope (MVP)
Interaction Ideas (Optional, later)
Implementation Notes
Acceptance Criteria
Future Enhancements (NOT in this issue)
Why This Matters