marcusschiesser / unc

Enterprise-ready, privacy-first ChatGPT platform
https://unc.de
GNU Affero General Public License v3.0
7 stars 1 forks source link

[Feature] Support file upload in a bot's context #16

Closed marcusschiesser closed 8 months ago

marcusschiesser commented 11 months ago

Is your feature request related to a problem? Please describe. Users usually have documents in their file system and not as URLs available. Support adding files to enhance a bot's context.

Describe the solution you'd like Add the option to upload files to a bot's context. In the edit bot dialog, add a new option called file. If selected, a file can be uploaded that is added to the context.

The edit dialog:

image
LaDoger commented 11 months ago

Yes, there is huge demand for this feature from researchers. And ChatGPT and Poe both have this. image image

LaDoger commented 11 months ago

Will need to (at least) support these file types:

We can consider audio files as well later on.

marcusschiesser commented 10 months ago

@LaDoger yes, you're right. We should first add the feature to upload a document in the chat (not in the bot's context as originally specified by me).

I also think it's a good time to clean up the UI a bit: image

What do you think of this one?

LaDoger commented 10 months ago

@marcusschiesser yeah this looks about right. although if the "clear" button is right next to the "upload files" button, maybe that would cause misclicks? not sure but I think its alright

marcusschiesser commented 10 months ago

@LaDoger yes that was also my concern. Any better idea? How about we:

  1. Move the settings button to the upper right corner (this feels right)
  2. Keep the chat actions line and add the file upload button there?

I anyhow think that a UI designer should have a look at this UI.

LaDoger commented 10 months ago

@marcusschiesser poe puts the upload button on the right side. can just copy what they did image

marcusschiesser commented 10 months ago

yes I agree, they have the best UI. @thucpn lets do this layout, but of course use free icons

marcusschiesser commented 8 months ago

done in https://github.com/marcusschiesser/unc-llamaindex