Skip to content

Improve implicit context in chat #251624

Open
@isidorn

Description

@isidorn

My suggestion:

  1. When Chat is EMPTY - whatever the user sees visually, the chat will get as context automatically, and we render it (this means if users has two groups side by side we add both editors as context).
  2. When Chat is not EMPTY, or the user manually edited the context in any way we stop automatically adding stuff.
  3. In whatever situation: if an active editor is not part of the context we render it grayed out / italic as we do today. There is only one active editor (even for multiple groups)
  4. If user has selection in any of the files in context, we render the selection in context (as before) and pass that to the LLM

My proposal makes a difference between EMPTY chat and non empty. The reason for that is that EMPTY chat the user is starting, and we need to automatically help them fill out the context. As soon as they already started the conversation there is context. And we should train users to start a new chat for new topics (they will get a better result with crisp context).

It is also important to track as soon as user makes any manual edit to the context. By doing that the user is saying "I want to be in control and will figure out context" - so in that case we also stop auto adding active file.

fyi @roblourens @bpasero @jo-oikawa

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions