From fc6a2f14e422a5862346e68e8675b625b62e0d56 Mon Sep 17 00:00:00 2001 From: Chris Coutinho Date: Sun, 16 Nov 2025 07:54:20 +0100 Subject: [PATCH] fix: Update vizApp to use bm25_hybrid algorithm and remove deprecated weights MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The visualization UI was still using the old 'hybrid' algorithm name and weight parameters that were replaced by the BM25 hybrid search refactor. This caused "Unknown algorithm: hybrid" errors when using the search & visualize feature. Changes: - Update default algorithm from 'hybrid' to 'bm25_hybrid' - Update default scoreThreshold from 0.7 to 0.0 to match backend - Remove deprecated semanticWeight, keywordWeight, fuzzyWeight parameters - Remove weight parameters from search request Fixes the visualization search functionality after BM25 hybrid refactor. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- nextcloud_mcp_server/auth/userinfo_routes.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/nextcloud_mcp_server/auth/userinfo_routes.py b/nextcloud_mcp_server/auth/userinfo_routes.py index ca33e2b..6e14f1f 100644 --- a/nextcloud_mcp_server/auth/userinfo_routes.py +++ b/nextcloud_mcp_server/auth/userinfo_routes.py @@ -676,14 +676,11 @@ async def user_info_html(request: Request) -> HTMLResponse: function vizApp() {{ return {{ query: '', - algorithm: 'hybrid', + algorithm: 'bm25_hybrid', showAdvanced: false, docTypes: [''], // Default to "All Types" limit: 50, - scoreThreshold: 0.7, - semanticWeight: 0.5, - keywordWeight: 0.3, - fuzzyWeight: 0.2, + scoreThreshold: 0.0, loading: false, results: [], @@ -697,9 +694,6 @@ async def user_info_html(request: Request) -> HTMLResponse: algorithm: this.algorithm, limit: this.limit, score_threshold: this.scoreThreshold, - semantic_weight: this.semanticWeight, - keyword_weight: this.keywordWeight, - fuzzy_weight: this.fuzzyWeight, }}); // Add doc_types parameter (filter out empty string for "All Types")