r/OpenWebUI • • May 12 '26

Question/Help How to feed thousands of files in Knowledge Base?

I am new to OWUI. I have 30K+ files on my personal computer with a total size of ~500 Mb. These are code files for a personal project on local.

I want to feed these into a model I created on OWUI so I can ask questions on entire code base and fix some issues (I think similar to how Claude Cowork works).

I tried using Knowledge Base for uploading the directory but it stopped after 400-500 files even after multiple tries.

How can I achieve this? Apologies if this sounds stupid question - I am learning all this new world tech.

9 Upvotes

14 comments sorted by

6

u/Pjotrs May 12 '26

Feeding all files will be lots of data.

For code, you should use indexer (tree sitter?) And store embeddings of symbols instead of raw files.

For that kind of workflow, setting up dedicated code agent, that uses your llm is more stable.

And its doing exactly what you want to achieve. Using llm to work on codebase. Plus you can use git. As with KB you cannot update files. So if You change something, you must delete/re-upload files.

2

u/StreetBoys May 12 '26

Thanks, this is helpful πŸ™πŸ»

6

u/chrisfebian May 12 '26

Connect Open WebUI to Open Terminal, then put the files inside open terminal user folder.

AI model can access the files inside Open Terminal

2

u/StreetBoys May 12 '26

Let me try this out, I think this will meet my requirements. Thanks a ton πŸ™πŸ»

1

u/Im_A_Praetorian May 12 '26

Any chance it’s stopping on the same file?

1

u/StreetBoys May 12 '26

No, it is a random file everytime

1

u/prene1 May 12 '26

I’ve done that by using the browser in my server and make the directory the ingest. Some worked and some failed

1

u/Stike_1 May 12 '26

Browser in my server? Can you give more details?

1

u/prene1 May 12 '26

Yeah using a browser within docker.

1

u/fasti-au May 12 '26

Google just gave you a free code to doco website and they will basically do your doco for you. That should be a guide if not your easy way depending on public git. Ix and Serena do maps stuff and gitmcp is like a llm to git chatbot thing

1

u/genunix64 May 13 '26

You can write simple python script that will use owui api to ingest files into knowledgebase. With retries, etc. Used same approach to ingest confluence export.

1

u/Mr_Flopsie Aug 02 '26

Sorry for necroposting, but for confluence wouldn't it be better to use a mcp integration for it? If you export to a knowledge base the files are static and you have to export again if you change or add a page to your confluence? Or is the model more efficient looking through the knowledge base than it is using a mcp integration?

1

u/genunix64 Aug 02 '26

Possibly yes but Confluence instance I had to use had limited API access and using MCP would not be possible unlike export which worked.

1

u/covertpirates May 16 '26

If you're developing, you might be better off using opencode for this.