Add user flag for previous-conversation context / RAG lookup #33

Closed
opened 2026-07-29 05:55:37 -07:00 by westfarn · 1 comment
Owner

Summary

Add a per-user account flag that controls whether previous conversations are used as context or for RAG lookup. When enabled, the user gets a more tailored experience based on their chat history.

Requirements

  • Add a boolean flag on the user account (e.g. use_conversation_context / use_history_rag) that enables using previous conversations as context or RAG lookup.
  • Default: off — opt-in only; do not enable for existing or new users unless they turn it on.
  • Expose the toggle in the relevant user/settings API so the frontend can read and update it.
  • When the flag is on, include prior conversation history (or RAG over it) in chat requests so responses can be more personalized.
  • When the flag is off, do not use previous conversations for context/RAG.

UX / frontend notes

  • Toggle should be off by default in the UI.
  • Provide a tooltip that explains: this will use previous conversations to better customize the experience.

Acceptance criteria

  • User model (or related settings) has a boolean field defaulting to false
  • Migration included for the new field
  • API supports getting/updating the flag
  • Chat/RAG path respects the flag (skip history context when off)
  • Documented for frontend: toggle + tooltip copy about using previous conversations to customize the experience
## Summary Add a per-user account flag that controls whether previous conversations are used as context or for RAG lookup. When enabled, the user gets a more tailored experience based on their chat history. ## Requirements - Add a boolean flag on the user account (e.g. `use_conversation_context` / `use_history_rag`) that enables using previous conversations as context or RAG lookup. - **Default: off** — opt-in only; do not enable for existing or new users unless they turn it on. - Expose the toggle in the relevant user/settings API so the frontend can read and update it. - When the flag is on, include prior conversation history (or RAG over it) in chat requests so responses can be more personalized. - When the flag is off, do not use previous conversations for context/RAG. ## UX / frontend notes - Toggle should be off by default in the UI. - Provide a tooltip that explains: this will use previous conversations to better customize the experience. ## Acceptance criteria - [ ] User model (or related settings) has a boolean field defaulting to `false` - [ ] Migration included for the new field - [ ] API supports getting/updating the flag - [ ] Chat/RAG path respects the flag (skip history context when off) - [ ] Documented for frontend: toggle + tooltip copy about using previous conversations to customize the experience
Author
Owner

Frontend counterpart: ai_ml_operations/chat_web_app#66

Frontend counterpart: https://git.aimloperations.com/ai_ml_operations/chat_web_app/issues/66
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_backend#33