QAway-to commited on
Commit ·
7e14c8d
1
Parent(s): 97efcfb
New prompt
Browse files33 unmodified lines343536373839404142434433 unmodified linesprev_qs = " | ".join(history["questions"][-5:]) # последние 5 вопросовprompt = (f"User said: '{user_text}'. Previous questions: {prev_qs or 'None'}. ""Generate one natural, open-ended question starting with 'What', 'Why', 'How', or 'When'. ""Avoid repeating or rephrasing previous questions. ""Output only the question itself.")loop = asyncio.get_event_loop()result = await loop.run_in_executor(None, lambda: llm_pipe(prompt)[0]["generated_text"])cleaned = clean_question(result)33 unmodified lines343536373839404142434445464733 unmodified linesprev_qs = " | ".join(history["questions"][-5:]) # последние 5 вопросовprompt = (f"The following is an MBTI personality interview.\n"f"User: {user_text}\n"f"Interviewer: ask one new, open-ended question starting with 'What', 'Why', 'How', or 'When'. "f"Ask naturally and concisely, without instructions or explanations.\n"f"Previous questions: {prev_qs or 'None'}\n"f"Interviewer:")loop = asyncio.get_event_loop()result = await loop.run_in_executor(None, lambda: llm_pipe(prompt)[0]["generated_text"])cleaned = clean_question(result)
core/interviewer.py+7-4