mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-25 20:47:57 -05:00
feat: Create Collections of Document Files #213
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @davidamacey on GitHub (Jan 19, 2024).
Originally assigned to: @tjbck on GitHub.
Is your feature request related to a problem? Please describe.
I would like the ability to select multiple documents without having to select each file individually.
Describe the solution you'd like
I would like a feature that allows for the documents to be grouped by user defined collections.
For example, I have the following folders, Personal, Work, Taxes, News, Journals. Each of those folders has numerous pdf files, but I don't want to have to select them individual or worse mix topics accidentally.
Describe alternatives you've considered
Add database and UI features to group document files by a named category. Then allow the user to select a file or collection from the chat box to query against.
Additional context
Great work on this project!
@jannikstdl commented on GitHub (Jan 27, 2024):
For this a citation feature (Like in AnythingLLM) would be helpful as you are looking for collections of docs.
You could show the name of the doc and the chunks of text received from the chromadb after sending your question in the ui as a citation.
@tjbck commented on GitHub (Feb 4, 2024):
You can now tag documents to create document collections, let me know if you encounter any issues!
@davidamacey commented on GitHub (Feb 4, 2024):
@tjbck This looks great, thank you for doing all the backend to support this feature!
Testing chat with the documents: individual, tagged, and all documents, appear to work as intended! This is great!
Question:
Asking for clarification about the UI. I am adding tags to a document, but the new tag now appears above all the documents. It kind of looks confusing.
Not sure if I missed something on the UI.
For testing I did the following: #gov for Declaration, #research for attention paper #programming for sveltetxt
When I click the tag chips the Documents UI filters properly according to the tagged documents.
Is it possible the tags are not filtering when displaying above each item in the UI?
@tjbck commented on GitHub (Feb 4, 2024):
@davidamacey Good catch! #646 fixes it!
@davidamacey commented on GitHub (Feb 4, 2024):
@tjbck Thanks for your hard work and quick responses!
I hope you do not think I am nit-picking. I am here to assist where I can. Hopefully I can support with a PR or a feature when you need an extra dev.
@tjbck commented on GitHub (Feb 4, 2024):
No worries, appreciate the feedback!
@DocMAX commented on GitHub (Feb 17, 2024):
Please add feature to add EXISTING document folders from disk (no upload!)
@KelvinDenhoff commented on GitHub (Oct 18, 2024):
Hey there,
i am trying to create a collection called 'Data-Center' and want to make 2 documents part of this collection. However the issue i am facing is that whenever i try to give the same tag to multiple documents, it gives me an error. Details below:-
Here i upload the first document and give it the tag 'Data Center' and then save it.

The UI overrides the given tag and saves it with name of the file, instead of the give tag name (ie, Data-Center)
I then upload another document and it does the exact same thing.

Afterwards, when i try to edit both files and rename the tag to 'Data-Center' it allows me to do so for the first file, as shown below:

However, when i try to edit the other document and give it the same tag (ie, Data-Center), it give me the following error:

Now this error is preventing me from creating a collection.
Help is requested please.
@KelvinDenhoff commented on GitHub (Oct 21, 2024):
The above issue was resolved by updating to the latest version of open webui.