commanddash icon indicating copy to clipboard operation
commanddash copied to clipboard

[Feat]: Display References in a Tree View. (Research)

Open samyakkkk opened this issue 1 year ago • 2 comments

Is your feature request related to a problem?

Large Language Models work the best when they have the right contextual code. While embedding matching and analyzer helps us automatically extract relevant contextual code from the project, it is not always reliable.

This is why FlutterGPT has an "Add to Reference" feature that allows users to manually mark certain selected code as reference. This reference will later be attached in the prompt.

However, the current way is not the best UX. References take up half of the editor window and are displayed in full.

Screenshot 2024-01-02 at 3 56 05 PM

Describe the solution that you'd like

The ideal experience would be to display the reference somewhere:

  1. Easily findable.
  2. Mentioned in summarised manner.
  3. Ability for user to visit the actual reference code when tapped.
  4. Ability for user to remove one or few references.

It looks like that the Tree View API offered by VSCODE comes quite close to this requirement. Screenshot 2024-01-02 at 3 58 09 PM

Describe alternatives that you have considered

No response

Additional Information

No response

Acceptance Criteria

The current acceptance criteria only require R&D to see if it's feasible to show references in the tree view and what does the final UX look like.

Once we have a clear idea, we can discuss and see if we want to proceed with this method or find other better options.

samyakkkk avatar Jan 02 '24 10:01 samyakkkk

Hi @samyakkkk I would like to take up this task

wadhia-yash avatar Jan 02 '24 10:01 wadhia-yash

Thanks, assigned.

samyakkkk avatar Jan 02 '24 10:01 samyakkkk