validmind.ai_powered_test
call_model
defcall_model(system_prompt:str,user_prompt:str,temperature:float=0.0,seed:int=42,judge_llm=None,judge_embeddings=None):
Call LLM with the given prompts and return the response
get_explanation
defget_explanation(response:str):
Get just the explanation from the response string TODO: use json response mode instead of this
e.g. "Score: 8 Explanation:
get_score
defget_score(response:str):
Get just the score from the response string TODO: use json response mode instead of this
e.g. "Score: 8 Explanation: