Original PR: https://github.com/open-webui/open-webui/pull/18206 Author: @lokiee0 Created: 10/10/2025 Status: ❌ Closed
Base: main ← Head: fix-web-search-memory-leak-nul-chars
main
fix-web-search-memory-leak-nul-chars
5f584ab
66e1360
924c849
11 files changed (+804 additions, -560 deletions)
➕ FIX_MEMORY_LEAK_AND_NUL_CHARS.md (+57 -0) ➕ PULL_REQUEST_TEMPLATE.md (+86 -0) ➕ SETUP_STATUS.md (+125 -0) 📝 backend/open_webui/retrieval/vector/dbs/pgvector.py (+6 -2) 📝 backend/open_webui/retrieval/vector/utils.py (+30 -3) 📝 backend/open_webui/routers/retrieval.py (+49 -22) ➕ litellm_config.yaml (+23 -0) 📝 package-lock.json (+113 -533) 📝 package.json (+1 -0) ➕ test_backend.py (+95 -0) ➕ test_web_search_fix.py (+219 -0)
FIX_MEMORY_LEAK_AND_NUL_CHARS.md
PULL_REQUEST_TEMPLATE.md
SETUP_STATUS.md
backend/open_webui/retrieval/vector/dbs/pgvector.py
backend/open_webui/retrieval/vector/utils.py
backend/open_webui/routers/retrieval.py
litellm_config.yaml
package-lock.json
package.json
test_backend.py
test_web_search_fix.py
Google PSE web search has critical issues:
1. Fixed NUL Character Errors
\x00
2. Fixed Memory Leak
3. Improved Stability
Resolves #18201
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/18206
Author: @lokiee0
Created: 10/10/2025
Status: ❌ Closed
Base:
main← Head:fix-web-search-memory-leak-nul-chars📝 Commits (3)
5f584abAdd setup documentation and configuration files66e1360Fix memory leak and NUL character issues in web search924c849Add comprehensive pull request template for web search fix📊 Changes
11 files changed (+804 additions, -560 deletions)
View changed files
➕
FIX_MEMORY_LEAK_AND_NUL_CHARS.md(+57 -0)➕
PULL_REQUEST_TEMPLATE.md(+86 -0)➕
SETUP_STATUS.md(+125 -0)📝
backend/open_webui/retrieval/vector/dbs/pgvector.py(+6 -2)📝
backend/open_webui/retrieval/vector/utils.py(+30 -3)📝
backend/open_webui/routers/retrieval.py(+49 -22)➕
litellm_config.yaml(+23 -0)📝
package-lock.json(+113 -533)📝
package.json(+1 -0)➕
test_backend.py(+95 -0)➕
test_web_search_fix.py(+219 -0)📄 Description
Problem
Google PSE web search has critical issues:
Solution
1. Fixed NUL Character Errors
\x00and control characters2. Fixed Memory Leak
3. Improved Stability
Files Changed
backend/open_webui/retrieval/vector/utils.py- Text cleaningbackend/open_webui/retrieval/vector/dbs/pgvector.py- Database fixbackend/open_webui/routers/retrieval.py- Memory managementTesting
Impact
Resolves #18201
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.