mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
use keyword retriever for DataAnalyst
This commit is contained in:
parent
cbe9c9f872
commit
46e7c2c05c
2 changed files with 3 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue