mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #23140] [CLOSED] feat(firecrawl): migrate web retrieval to Firecrawl v2 #27048
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/23140
Author: @RomualdYT
Created: 3/27/2026
Status: ❌ Closed
Base:
dev← Head:firecrawl/v2webretrieval📝 Commits (1)
6a04226feat(firecrawl): migrate web retrieval to Firecrawl v2📊 Changes
7 files changed (+853 additions, -155 deletions)
View changed files
📝
backend/open_webui/config.py(+24 -0)📝
backend/open_webui/main.py(+8 -0)📝
backend/open_webui/retrieval/web/firecrawl.py(+373 -19)📝
backend/open_webui/retrieval/web/utils.py(+172 -84)📝
backend/open_webui/routers/retrieval.py(+114 -27)📝
src/lib/components/admin/Settings/WebSearch.svelte(+155 -20)📝
uv.lock(+7 -5)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
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.Changelog Entry
Description
Added
Only Main ContentParse PDFProxy ModeCache Max Age (ms)Changed
batch_scrapetoscrapefor improved latency.batch_scrapeonly for multi-URL workloads where batching is beneficial.Firecrawl/AsyncFirecrawl).firecrawl-py==4.18.0.Deprecated
batch_scrapefor single-URL fetches.Removed
Fixed
fetch_urllatency issue caused by routing single-URL fetches throughbatch_scrape.Security
Breaking Changes
Additional Information
only main content = trueparse PDF = trueproxy mode = basiccache max age = 3600000 msFIRECRAWL_TIMEOUTremains configured in seconds in the admin UI for compatibility, and is converted at the Firecrawl integration boundary based on the SDK call being used.firecrawl-py==4.18.0to match the implementation and current Firecrawl v2 usage.python -m py_compileWEB_LOADER_ENGINE=firecrawlfetch_urlrequests are noticeably faster than beforeWEB_SEARCH_ENGINE=firecrawlwithBYPASS_WEB_SEARCH_WEB_LOADER=falseuses the native Firecrawl search pathBYPASS_WEB_SEARCH_WEB_LOADER=truekeeps the previous behaviorParse PDFdisabled does not inject empty/unusable PDF contentScreenshots or Videos
N/A — backend-only change with no UI impact.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.