From 4068a421bfc837743a605d55aa3464f9690d98c9 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 3 Jun 2024 17:00:35 -0700 Subject: [PATCH] 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] ]