use keyword retriever for DataAnalyst

This commit is contained in:
lidanyang 2024-07-10 11:25:34 +08:00
parent cbe9c9f872
commit 46e7c2c05c
2 changed files with 3 additions and 8 deletions

View file

@ -638,6 +638,8 @@ class KeywordExpRetriever(ExpRetriever):
return DEPLOY_EXAMPLE
elif "issue" in context.lower():
return FIX_ISSUE_EXAMPLE
elif "https:" or "http:" in context.lower():
return WEB_SCRAPING_EXAMPLE
elif exp_type == "task":
if "diagnose" in context.lower():
return SEARCH_SYMBOL_EXAMPLE
@ -1018,10 +1020,3 @@ Here is the command to finish the current task and parse the html content:
...
"""
class WebExpRetriever(ExpRetriever):
"""A simple experience retriever that returns manually crafted examples."""
def retrieve(self, context: str = "") -> str:
return WEB_SCRAPING_EXAMPLE

View file

@ -33,7 +33,7 @@ NEWS_36KR_REQ = """从36kr创投平台https://pitchhub.36kr.com/financing-flash
"""
WIKIPEDIA_SEARCH_REQ = """
Search for `LLM` on Wikipedia and print all the meaningful significances of the entry.
Search for `LLM` on https://www.wikipedia.org/ and print all the meaningful significances of the entry.
"""
STACKOVERFLOW_CLICK_REQ = """