- Refinement of the chat client to have better visible clues for user vs chatbot messages
- Introduction of interview_phase and normal phase in TRAICIE_SELECTION_SPECIALIST to make interaction with bot more human. - More and random humanised messages to TRAICIE_SELECTION_SPECIALIST
This commit is contained in:
@@ -17,4 +17,13 @@ LANGUAGE_LEVEL = [
|
||||
"cefr_level": "C1",
|
||||
"ideal_audience": "Management, HR, technical profiles"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
def get_language_level_context(language_level:str) -> str:
|
||||
selected_language_level = next(
|
||||
(item for item in LANGUAGE_LEVEL if item["name"] == language_level),
|
||||
None
|
||||
)
|
||||
language_level_context = (f"{selected_language_level['description']}, "
|
||||
f"corresponding to CEFR level {selected_language_level['cefr_level']}")
|
||||
return language_level_context
|
||||
|
||||
@@ -29,4 +29,13 @@ TONE_OF_VOICE = [
|
||||
"description": "Direct, efficient, pragmatic.",
|
||||
"when_to_use": "Technical, logistics, blue-collar jobs, production environments"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
def get_tone_of_voice_context(tone_of_voice: str) -> str:
|
||||
selected_tone_of_voice = next(
|
||||
(item for item in TONE_OF_VOICE if item["name"] == tone_of_voice),
|
||||
None # fallback indien niet gevonden
|
||||
)
|
||||
tone_of_voice_context = f"{selected_tone_of_voice["description"]}"
|
||||
|
||||
return tone_of_voice_context
|
||||
|
||||
Reference in New Issue
Block a user