Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform designed to operate entirely offline. It supports various LLM runners like Ollama and OpenAI-compatible APIs, with built-in inference engine for RAG, making it a powerful AI deployment solution.
Bocha AI Plugin for Ollama WebUI: Supercharge Your LLM with Real-Time Web Search
The Bocha AI Plugin seamlessly integrates Bocha AI Open Platform into Ollama's WebUI, empowering your large language models (LLMs) with real-time internet connectivity and advanced search capabilities. By leveraging Bocha AI's Search API, your AI applications can now access high-quality, up-to-date knowledge from billions of web pages and trusted content sources—including news, images, videos, encyclopedias, travel data, academic papers, and more.
We modified the Open WebUI code to support the Bocha search API,you can use this version to make the LLMs connect the Web.
-
🚀 Multi-Modal Hybrid Search: Combines keyword matching, semantic understanding, and multimodal analysis to deliver precise results across diverse content formats.
-
⚙️ Semantic Reranking: Enhances relevance by reordering search results using context-aware AI, ensuring your LLM receives the most authoritative and timely information.
-
🤝 Massive Knowledge Base: Taps into a curated index of nearly 10 billion web pages and ecosystem sources, optimized for AI-driven use cases.
More details about Open WebUI.
Don't forget to explore our sibling project, Bocha Community, where you can discover and explore customized resources. Bocha Community offers a wide range of exciting possibilities for enhancing your interaction experiences with Bocha! 🚀
Please refer to the ollama installation document for details and install the models you need.
Before proceeding, ensure you're using Python 3.11 to avoid compatibility issues.
-
:
git clone https://github.com/BochaAI/open-webui-Bocha.git cd open-webui-Bocha/ -
Copying required .env file:
cp -RPp .env.example .env
-
Serving Frontend with the Backend:
cd ./backend pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt -U -
Building Frontend Using Node:
npm i npm run build
Linux:
cd ./backend
bash start.shWindows:
cd ./backend
start_windows.batThis will start the Open WebUI server, which you can access at http://localhost:8080.
You need to set your account and password as administrator information when you use it for the first time. Then you can start using the service.
To access Web Search, Click on the + next to the message input field.
Here you can toggle Web Search On/Off.

If you want to change the search engine, let's change it to Bocha as an example.
- Navigate to Admin Panel -> Settings -> Web Search
- Toggle Enable Web Search
- Set Web Search Engine from dropdown menu to Bocha
- Fill Bocha Search API Key with the API key
- Click Save


