mirror of
https://github.com/marvinscham/masterthesis-playground.git
synced 2026-03-22 08:22:43 +01:00
RAFT shenanigans
This commit is contained in:
@@ -31,6 +31,8 @@ When answering:
|
||||
Maintain consistency with this identity across all responses.
|
||||
"""
|
||||
|
||||
TRAINER_PROMPT = "Create ONE realistic question from the perspective of a touristic marketer they might ask a culturally and spiritually interested traveler in Bali considered to be a lead user that can be answered using ONLY the CONTEXT.\n\n"
|
||||
|
||||
|
||||
def load_docstore(path):
|
||||
docs = []
|
||||
@@ -118,8 +120,7 @@ def main():
|
||||
{"role": "system", "content": SYSTEM_PERSONA},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Create ONE realistic question from the perspective of a culturally and spiritually interested traveler in Bali that can be answered using ONLY the CONTEXT.\n\n"
|
||||
f"CONTEXT:\n{gold_text}\n\n"
|
||||
"content": TRAINER_PROMPT + f"CONTEXT:\n{gold_text}\n\n"
|
||||
"Return only the question.",
|
||||
},
|
||||
]
|
||||
@@ -173,8 +174,7 @@ def main():
|
||||
{"role": "system", "content": SYSTEM_PERSONA},
|
||||
{
|
||||
"role": "user",
|
||||
"content": f"QUESTION: {question}\n\nCONTEXT:\n{context_blob}\n"
|
||||
"Please answer as a culturally versed Bali traveler and include 1-2 short direct quotes from CONTEXT.",
|
||||
"content": f"QUESTION: {question}\n\nCONTEXT:\n{context_blob}",
|
||||
},
|
||||
{"role": "assistant", "content": answer},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user