Update app.py
Browse files
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
|
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)
|