Skip to content

Commit

Permalink
Add SearXNG documentation link.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaoyijia authored Aug 19, 2024
1 parent 1c23baf commit 70c9ea1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions knowledge_storm/rm.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,12 +544,12 @@ def forward(self, query_or_queries: Union[str, List[str]], exclude_urls: List[st

class SearXNG(dspy.Retrieve):
def __init__(self, searxng_api_url, searxng_api_key=None, k=3, is_valid_source: Callable = None):
"""
Initialize the SearXNG search retriever.
"""Initialize the SearXNG search retriever.
Please set up SearXNG according to https://docs.searxng.org/index.html.
Args:
searxng_api_url (str): The URL of the SearXNG API.
searxng_api_key (str, optional): The API key for the SearXNG API. Defaults to None.
searxng_api_url (str): The URL of the SearXNG API. Consult SearXNG documentation for details.
searxng_api_key (str, optional): The API key for the SearXNG API. Defaults to None. Consult SearXNG documentation for details.
k (int, optional): The number of top passages to retrieve. Defaults to 3.
is_valid_source (Callable, optional): A function that takes a URL and returns a boolean indicating if the
source is valid. Defaults to None.
Expand Down

0 comments on commit 70c9ea1

Please sign in to comment.