in evolve-instruct/evolve.py [0:0]
def run_question_only(self):
self.create_seed_prompts()
self.create_prompts()
list_q = []
for i in range(len(self.final_prompts)):
list_q.append(
{
'input': self.final_prompts[i],
}
)
with open(f"{self.seed_data.replace('.jsonl', '').replace('json', '')}.%s.json" % str(uuid.uuid4())[:4], "wt") as f:
f.write(json.dumps(list_q, indent=2, ensure_ascii=False))