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] ]