mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-06 08:16:00 +00:00
modify prompt
This commit is contained in:
parent
d21d4f3101
commit
8853aa4d2c
1 changed files with 1 additions and 5 deletions
|
|
@ -318,8 +318,7 @@ class StepContextGenerator(BaseContextGenerator, PromptMixin):
|
|||
if not experiences:
|
||||
return ""
|
||||
|
||||
context = "Previous Experience\n"
|
||||
|
||||
context = "Historical Experience\n"
|
||||
for exp in experiences:
|
||||
condition = exp.content
|
||||
experience_content = exp.metadata.get("experience", "")
|
||||
|
|
@ -328,9 +327,6 @@ class StepContextGenerator(BaseContextGenerator, PromptMixin):
|
|||
continue
|
||||
|
||||
context += f"- {condition} {experience_content}\n"
|
||||
|
||||
context += "Please consider the helpful parts from these in answering the question, to make the response more comprehensive and substantial."
|
||||
|
||||
return context.strip()
|
||||
|
||||
def _parse_json_response(self, response: str, key: str) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue