Spaces:
Running
Running
Score de contrôle > 5
Browse files
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 >=
|
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 |
|