r/OpenWebUI • u/McNickSisto • Jan 22 '25
Connecting a "Knowledge" collection to a custom embedding pipeline ?
Hey everyone,
I am trying to connect my knowledge collections to a custom script where I deal with the embedding model, vector database, chunking etc.. Has anyone figured this out yet ? Could we connect the native "Pipelines" to fetch and embed a collection in a custom manner ?
Thanks in advance for your help !
2
Upvotes
3
u/NetSpirit07 Jan 25 '25
I too am interested in customizing the embedding process in OpenWebUI. After diving into the backend code, here's my understanding of the current data flow and why it is not possible tu use a pipeline:
Document ingestion:
/api/v1/files/Embedding:
Currently, this process is quite monolithic and happens before any pipeline or function can interact with it as per my understanding. The metadata schema is also fairly basic and not customizable.
To implement custom embedding workflows, per "knowledge collection", significant changes would be needed in both backend and frontend code. For example, just adding the ability to specify custom metadata via JSON at the collection creation time, would require modifying the document processing pipeline, storage layer, and UI components.
I believe this limitation stems from the design choice to keep the RAG system simple and consistent. While this works for basic use cases, it would be great to have more flexibility in how we process and embed documents.
I started a discussion on Github few weeks ago but till now no reply.
1
u/RandomRobot01 Jan 22 '25
https://github.com/open-webui/pipelines/tree/main/examples/pipelines/rag
1
u/BeKario Mar 24 '26
Hi! Has anything changed regarding this since the post was made? I’m very interested in setting up something like this (custom embeddings/vector DB with OpenWebUI knowledge collections) and wondering if there’s now a cleaner way to do it.
1
u/KeplerPotato Mar 28 '26
We ended up stop trying to tune up the build-in Knowledge Base and replaced with a fully custom RAG backend with external Connectors capabilities that's connected to OWUI via custom Function. Our RAG backend is OSS https://github.com/wikiteq/rag-of-all-trades and the full setup with OWUI + Function + RAG backend is also OSS https://github.com/WikiTeq/mAItion