Skip to content

🚀 Feature: Attachment source doc #1036

@laronson

Description

@laronson

🔖 Feature description

Give users a method of selecting source documents that is integrated into the query writing process. To do this, add a hotkey to the input text box which opens a selection popup and allows users to select from a list of their available source documents. Once an option is selected, display the selection above the input text box to give users better insight into which documents they are using for their query.

doc_selection_demo.mov

🎤 Why is this feature needed ?

This feature provides a few benefits to the user:

  • The hot key doc selection mechanism may enhance the query writing workflow for some users as it allows user focus to remain closer to the input text box without needing to shift focus to the source docs dropdown on the left side of the page.
  • Highlighting the document that is being used for the current query closer to the input text box may reduce confusion for some users as to which document is selected for use with their current query.
  • This new selection mechanism could be used in the future to scale the number of document included in a search when/if the project moves to allow more than one document to be used in a single query.

✌️ How do you aim to achieve this?

  1. Add a popup selector to the project as a common component to use for document selection outside of the source docs dropdown.
  2. Add a source document pill list on top of the conversation input text box to show the user which document is selected for the query they are writing
  3. Refactor the conversation input text box to use the new popup selector and pill list components.
  • For a proposed hot key, I think ctrl + d could be a good selection.

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

Yes I am willing to submit a PR!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions