Timothy J. Baek hai 11 meses
pai
achega
4068a421bf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      backend/apps/rag/search/searxng.py

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