LaurentTRIPIED commited on
Commit
291a445
·
verified ·
1 Parent(s): 670b234

Score de contrôle > 5

Browse files
Files changed (1) hide show
  1. rag.py +1 -1
rag.py CHANGED
@@ -111,7 +111,7 @@ def verify_response(response:str,answers:list[str],question:str) -> bool:
111
  structured_llm = llm.with_structured_output(verification_score)
112
  llm_chain = prompt | structured_llm
113
  score = llm_chain.invoke({"response":response,"answers":answers,"initial_question":question})
114
- if score.score >= 0:
115
  return True
116
 
117
 
 
111
  structured_llm = llm.with_structured_output(verification_score)
112
  llm_chain = prompt | structured_llm
113
  score = llm_chain.invoke({"response":response,"answers":answers,"initial_question":question})
114
+ if score.score >= 5:
115
  return True
116
 
117