Skip to content

Commit

Permalink
Merge pull request open-webui#2795 from open-webui/dev
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
tjbck authored Jun 4, 2024
2 parents 8a94d8a + 61867c1 commit 11bb1a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions backend/apps/rag/search/searxng.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -81,5 +79,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]
]

0 comments on commit 11bb1a6

Please sign in to comment.