mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-01 08:48:19 +00:00
enhanced scraper
This commit is contained in:
parent
2fa5068047
commit
79be597f03
@ -2802,10 +2802,8 @@ The AI should respond in this format using data from actions_list:
|
|||||||
choices = "\n".join([f"{i}. {possible_answer}" for i, possible_answer in enumerate(possible_answers)])
|
choices = "\n".join([f"{i}. {possible_answer}" for i, possible_answer in enumerate(possible_answers)])
|
||||||
elements = [conditionning] if conditionning!="" else []
|
elements = [conditionning] if conditionning!="" else []
|
||||||
elements += [
|
elements += [
|
||||||
"!@>instructions:",
|
"!@>system:",
|
||||||
"Answer this multi choices question.",
|
"Answer this multi choices question.",
|
||||||
"Answer with an id from the possible answers.",
|
|
||||||
"Do not answer with an id outside this possible answers.",
|
|
||||||
f"!@>question: {question}",
|
f"!@>question: {question}",
|
||||||
"!@>possible answers:",
|
"!@>possible answers:",
|
||||||
f"{choices}",
|
f"{choices}",
|
||||||
@ -2815,7 +2813,11 @@ The AI should respond in this format using data from actions_list:
|
|||||||
"!@>Context:",
|
"!@>Context:",
|
||||||
f"{context}",
|
f"{context}",
|
||||||
]
|
]
|
||||||
|
elements +=[
|
||||||
|
"Answer with an id from the possible answers.",
|
||||||
|
"Do not answer with an id outside this possible answers.",
|
||||||
|
"Do not explain your reasons or add comments."
|
||||||
|
]
|
||||||
elements += ["!@>answer:"]
|
elements += ["!@>answer:"]
|
||||||
prompt = self.build_prompt(elements)
|
prompt = self.build_prompt(elements)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user