dromerosm commited on
Commit
6bb718e
·
verified ·
1 Parent(s): 06f96a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def search_results(search_query: str) -> dict:
36
  Args:
37
  - search_query (str): The query string that specifies the information to be searched on the web. This should be a clear and concise expression of the user's information needs.
38
  Returns:
39
- - list: A list of dictionaries, where each dictionary represents a search result. Each dictionary includes at least the 'title' of the page and the 'url' linking to it. Additional information such as a brief summary or snippet from the page might also be included depending on the specifics of the DuckDuckGo API response.
40
  """
41
  search = DuckDuckGoSearchResults(max_results=10)
42
  results = search.runrun(search_query)
 
36
  Args:
37
  - search_query (str): The query string that specifies the information to be searched on the web. This should be a clear and concise expression of the user's information needs.
38
  Returns:
39
+ - list: A list of dictionaries, where each dictionary represents a search result. Each dictionary includes 'snippet' of the page and the 'link' with the url linking to it.
40
  """
41
  search = DuckDuckGoSearchResults(max_results=10)
42
  results = search.runrun(search_query)