khoj-ai / khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
https://khoj.dev
GNU Affero General Public License v3.0
15.92k stars 785 forks source link

Use Turnstyle UX pattern to group Khoj chats into conversation turns #875

Closed debanjum closed 2 months ago

debanjum commented 3 months ago

A conversation turn is defined as a single back and forth between the user and AI agent.

A typical user - agent chat interaction is more strongly coupled into as request - response pair than a typical chat message interaction between humans.

Turnstyle pattern emphasizes this natural coupling of the request, response pairs by grouping a conversation turn more strongly together than the older, more typical chat bubble UX.

In this UX paradigm, we render each user's query and AI's response into a section heading, section content respectively for a cleaner, more natural demarcation of a single interaction

Note: This is an experimental new UX pattern