From ce216139059a192588a3789ea0c28a03b3816fb5 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 16 Jun 2026 19:06:49 +0200 Subject: [PATCH] Add _is_probably_html_url utility function --- backend/websearch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/websearch.py b/backend/websearch.py index fd47ac8..13adc77 100644 --- a/backend/websearch.py +++ b/backend/websearch.py @@ -171,6 +171,7 @@ def fallback_rerank( print(f"[web] embedding rerank unavailable ({reason}); using lexical fallback over {len(docs)} docs") return scored + def _is_probably_html_url(url: str) -> bool: try: path = urlparse(url).path.lower()