Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import re
|
3 |
from docx import Document
|
4 |
from ragas import evaluate, EvaluationDataset
|
5 |
-
from ragas.metrics import Faithfulness,
|
6 |
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
|
7 |
from ragas.llms import LangchainLLMWrapper
|
8 |
|
@@ -53,7 +53,7 @@ def evaluate_scdd(ai_scdd_file, human_scdd_file, user_input):
|
|
53 |
SemanticSimilarity(),
|
54 |
ResponseGroundedness(),
|
55 |
Faithfulness(),
|
56 |
-
|
57 |
FactualCorrectness(coverage="high", atomicity="high")
|
58 |
]
|
59 |
|
|
|
2 |
import re
|
3 |
from docx import Document
|
4 |
from ragas import evaluate, EvaluationDataset
|
5 |
+
from ragas.metrics import Faithfulness, FactualCorrectness, SemanticSimilarity, ResponseGroundedness, AnswerAccuracy
|
6 |
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
|
7 |
from ragas.llms import LangchainLLMWrapper
|
8 |
|
|
|
53 |
SemanticSimilarity(),
|
54 |
ResponseGroundedness(),
|
55 |
Faithfulness(),
|
56 |
+
AnswerAccuracy(),
|
57 |
FactualCorrectness(coverage="high", atomicity="high")
|
58 |
]
|
59 |
|