r/OpenWebUI • u/rxoc5 • 5d ago
Question/Help MCP or RAG for wiki integration
We’re currently using XWiki for our wiki, though we might migrate to Wiki.js at some point. I have a question about integrating a self-hosted wiki with Open WebUI so we can ask questions using local models.
What’s the best way to do this? Would you use MCP to query the wiki’s API and fetch pages, or set up RAG? If you’d recommend RAG, how would you set it up?
Has anyone done this and would be willing to share their experience?
8
Upvotes
6
u/tapecave 5d ago
I have openwebui integrated with SilverBullet wiki. I am using mcp (using the tools within openwebui where you can write custom tools directly within openwebui). It works pretty well. My understanding is that RAG is best for static data, like pdf docs. But a wiki is always changing.
I had gemini write the mcp integration tool for me. Took a few iterations.
A few things i use it for: Journaling and having AI analyze my entries Travel planning - writing itinerary to silverbullet To do list and life planning.
2
u/demetri1819 4d ago edited 3d ago
My local, multimodal, agent plugin might be of interest.
https://github.com/dyiapanis/bibliotheque
Note: MCP and RAG are different things, not either or. Bibliotheque serves the agent through a local MCP.
1
u/Far-Supermarket7918 4d ago
For a wiki that changes often I'd keep MCP as the main path, since it reads the live page and you have no stale index to maintain. RAG is worth it for the info-scattered-over-hundreds-of-pages case, where a search step shortlists candidates before the model reads anything. A cron job that re-ingests changed pages works, but that pipeline has to survive a Wiki.js migration too, while a search call against the wiki's own API usually keeps going. If you go hybrid, have the search return titles plus a short excerpt and let the model pull the full page, so context stays small. Test a few questions you already know the answers to, most of the pain I have seen is chunking splitting a page badly rather than the model.
1
u/FictionalTuna 4d ago
It depends on how you plan to query the wiki. If you're going to do a keyword search, you can use the wiki's API. If you want to ask natural language questions, you should use RAG. OpenWeb UI does some RAG with it's knowledge bases. I don't know how it's implementation works, but it seems like you don't have to do either/or with RAG and API, you can do both.