Spaces:
Sleeping
Sleeping
Upload embeddings.py
Browse files288 unmodified lines289290291292293294295296297298299300288 unmodified linesreturn AnswerOutput(question=question,formulation=best_candidate.formulation,answer=best_candidate.response,theme=best_candidate.theme,similarity_score=round(best_candidate.similarity_score or 0.0, 4),cross_encoder_score=round(best_candidate.cross_encoder_score or 0.0, 4),list_candidates=candidates,confidence=True,)best_score = best_candidate.cross_encoder_score or 0.0288 unmodified lines289290291292293294295296297298299300301288 unmodified linesreturn AnswerOutput(question=question,formulation=best_candidate.formulation,answer="Je ne dispose pas d'une réponse suffisamment pertinente pour cette question.",theme=best_candidate.theme,similarity_score=round(best_candidate.similarity_score or 0.0, 4),cross_encoder_logit=round(best_candidate.cross_encoder_logit or 0.0, 4),cross_encoder_score=round(best_candidate.cross_encoder_score or 0.0, 4),list_candidates=candidates,confidence=False,)best_score = best_candidate.cross_encoder_score or 0.0
embeddings.py+3-2