feat: Create Collections of Document Files #213

Closed
opened 2025-11-11 14:11:29 -06:00 by GiteaMirror · 9 comments
Owner

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!

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!
GiteaMirror added the core label 2025-11-11 14:11:29 -06:00
Author
Owner

@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.

@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.
Author
Owner

@tjbck commented on GitHub (Feb 4, 2024):

image

You can now tag documents to create document collections, let me know if you encounter any issues!

image

@tjbck commented on GitHub (Feb 4, 2024): ![image](https://github.com/ollama-webui/ollama-webui/assets/25473318/4f91e8c9-2f32-448b-a67a-16482342aedf) You can now tag documents to create document collections, let me know if you encounter any issues! ![image](https://github.com/ollama-webui/ollama-webui/assets/25473318/0b856b49-8ddf-48d1-8b11-1052e4a0cc95)
Author
Owner

@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.

image

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?

@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. ![image](https://github.com/ollama-webui/ollama-webui/assets/6076456/c6ea7f27-9b9b-46ff-9222-9fe7046a62ee) 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?
Author
Owner

@tjbck commented on GitHub (Feb 4, 2024):

@davidamacey Good catch! #646 fixes it!

@tjbck commented on GitHub (Feb 4, 2024): @davidamacey Good catch! #646 fixes it!
Author
Owner

@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.

@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.
Author
Owner

@tjbck commented on GitHub (Feb 4, 2024):

No worries, appreciate the feedback!

@tjbck commented on GitHub (Feb 4, 2024): No worries, appreciate the feedback!
Author
Owner

@DocMAX commented on GitHub (Feb 17, 2024):

Please add feature to add EXISTING document folders from disk (no upload!)

@DocMAX commented on GitHub (Feb 17, 2024): Please add feature to add EXISTING document folders from disk (no upload!)
Author
Owner

@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.
image

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.
image

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:
image

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

Now this error is preventing me from creating a collection.

Help is requested please.

@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. ![image](https://github.com/user-attachments/assets/aa25fba9-c7fb-4ba7-be4f-ed0b371ea675) 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. ![image](https://github.com/user-attachments/assets/886d76da-2f2a-46d7-aecf-e0508d353a51) 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: ![image](https://github.com/user-attachments/assets/e6802fb1-3fad-4e56-8be8-013b29010a78) However, when i try to edit the other document and give it the same tag (ie, Data-Center), it give me the following error: ![image](https://github.com/user-attachments/assets/5a7959df-7633-4516-8161-0834e23d8071) Now this error is preventing me from creating a collection. Help is requested please.
Author
Owner

@KelvinDenhoff commented on GitHub (Oct 21, 2024):

The above issue was resolved by updating to the latest version of open webui.

@KelvinDenhoff commented on GitHub (Oct 21, 2024): The above issue was resolved by updating to the latest version of open webui.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#213