mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #24136] [CLOSED] feat(retrieval): migrate Brave Search to LLM Context API #98555
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24136
Author: @Yashh56
Created: 4/25/2026
Status: ❌ Closed
Base:
dev← Head:feat-brave-context📝 Commits (2)
0da58d7feat(retrieval): migrate Brave Search to LLM Context API636e13efeat(retrieval): add Brave Search configuration options and update search function📊 Changes
4 files changed (+170 additions, -6 deletions)
View changed files
📝
backend/open_webui/config.py(+55 -0)📝
backend/open_webui/main.py(+18 -0)📝
backend/open_webui/retrieval/web/brave.py(+52 -6)📝
backend/open_webui/routers/retrieval.py(+45 -0)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.feat: Introduces a new feature or enhancement to the codebaseChangelog Entry
Description
/res/v1/web/search) to their new LLM Context API (/res/v1/llm/context). The LLM Context API is specifically designed for RAG applications. Instead of returning plain search result descriptions, it provides richer grounding data with multiple relevant snippets extracted from the source pages, which provides much better context for the LLM.Added
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.