From 4068a421bfc837743a605d55aa3464f9690d98c9 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 3 Jun 2024 17:00:35 -0700 Subject: [PATCH 1/2] fix --- backend/apps/rag/search/searxng.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/rag/search/searxng.py b/backend/apps/rag/search/searxng.py index bf38ce0d3..c92bfb7a1 100644 --- a/backend/apps/rag/search/searxng.py +++ b/backend/apps/rag/search/searxng.py @@ -81,5 +81,5 @@ def search_searxng( SearchResult( link=result["url"], title=result.get("title"), snippet=result.get("content") ) - for result in sorted_results + for result in sorted_results[:count] ] From 61867c15455013e68525d79cd71bb7a251d0404e Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 3 Jun 2024 17:02:50 -0700 Subject: [PATCH 2/2] Update searxng.py --- backend/apps/rag/search/searxng.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/apps/rag/search/searxng.py b/backend/apps/rag/search/searxng.py index c92bfb7a1..a62ab5089 100644 --- a/backend/apps/rag/search/searxng.py +++ b/backend/apps/rag/search/searxng.py @@ -44,10 +44,8 @@ def search_searxng( "q": query, "format": "json", "pageno": 1, - "results_per_page": count, "language": language, "time_range": time_range, - "engines": "", "categories": categories, "theme": "simple", "image_proxy": 0,