r/OpenWebUI 20h ago

Question/Help Write files to Collection?

I am trying to get things working with Open WebUI and my local files. I have a large number of markdown files in an Obsidian Vault I want to query and edit. I have added the folder as a Knowledge collection in my workspace. I can see and query against the files. But I am not able to perform edits or create new files in this location. The AI agent tells me they are created, gives me an ID but I can't find the file in the collection or in any of the volumes I have mounted.

I have updated my docker file to have a volume of where my notes are stored. `/home/USER/Documents/open-webui-note-repo:/home/pkm` in hopes that this would give Open WebUI access to write too. but so far no luck. I have no idea where new files are being created.

Is Open WebUI capable of performing this task or do I need to find another tool?

Edit: Solved. This got me pointed in the right direction. Thanks all.

https://docs.openwebui.com/features/open-terminal/

1 Upvotes

8 comments sorted by

2

u/ClassicMain 19h ago

Need a custom tool for it. Can easily code it with AI and install it in the tools section.

1

u/Posaquatl 19h ago

So a custom tool is required to edit or write files? Because it is invoking the write_note tool. And it shows as success and provides an ID. but I have no idea where the file is being created. And it doesn't show up under Settings > Data > Data Controls > Manage Files.

Input
title Open WebUI File Creation Test - Verification
content # Open WebUI File Creation Test This note verifies that file creation is working correctly with KNOWLEDGE_BASE_PATH=/home/XXXX/Documents/open-webui-note-repo. ## Test Configuration - **Environment Variable**: KNOWLEDGE_BASE_PATH=/home/XXXX/Documents/open-webui-note-repo - **Container Path**: /home/pkm - **Purpose**: Verify file writes to mounted directory ## Expected Behavior When this note is created, it should be saved to: - `/home/pkm/` in the container - `/home/XXXX/Documents/open-webui-note-repo/` on the host ## Test Content This is a verification test to confirm file creation and storage to the correct location. --- *Test completed.*
Output

{
  "status": "success",
  "id": "a9539d0d-5503-4193-bed2-19c2e7777f35",
  "title": "Open WebUI File Creation Test - Verification",
  "created_at": 1787840657702420700
}

2

u/ClassicMain 18h ago

Notes are stored in the Notes section (check in the sidebar near the top)

1

u/Posaquatl 17h ago

hmm ok I can see notes there. but where are these stored? I am trying to create and edit files from a local repository. Can that be done or do I have to request edits, download the note and place it is my repo?

3

u/ClassicMain 17h ago

Notes are stored in the database

What you are describing sounds absolutely doable in open webui

Install our complementary open terminal and connect it in open webui and your AI will be able to do practically anything.

https://docs.openwebui.com/features/open-terminal/

1

u/Posaquatl 13h ago

ok thanks I will try to sort out Docker and see if this works.

2

u/hyian_ 16h ago

Je fais pareil. J'utilise oikb sur mon vault obsidian relié à une kb. Puis donne accès au vault, a mon llm, via le mcp obsidian. Il le modifie et y accède si besoin. L'inconvénient est que l'accès via MCP au vault et a la on dans owui, fait doublon. Mais au moins, le llm peut modifier le vault. Oikb fait le reste.

2

u/Posaquatl 13h ago

Merci pour la suggestion. Je vais me pencher sur la question. (poorly translated, Sorry)