- 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:
Josako
2025-08-02 16:36:41 +02:00
parent 998ddf4c03
commit 9a88582fff
50 changed files with 2064 additions and 384 deletions

View File

@@ -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

View File

@@ -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