Spaces:
Sleeping
Sleeping
remove old test
Browse files
src/model/hallucination.py
CHANGED
|
@@ -32,10 +32,3 @@ hallucination_prompt = ChatPromptTemplate.from_messages(
|
|
| 32 |
)
|
| 33 |
|
| 34 |
hallucination_grader = hallucination_prompt | structured_llm_grader
|
| 35 |
-
|
| 36 |
-
hallucination_grader.invoke(
|
| 37 |
-
{
|
| 38 |
-
"document": "8",
|
| 39 |
-
"generation": 'The dataset contains information on the top 8 most popular pizza toppings, which directly relates to the query for "pizza." Users interested in pizza preferences or trends may find this dataset relevant for ana lyzing popular topping choices. This dataset can provide insights into consumer preferences and help businesses i n the food industry make informed decisions regarding their pizza offerings.',
|
| 40 |
-
}
|
| 41 |
-
)
|
|
|
|
| 32 |
)
|
| 33 |
|
| 34 |
hallucination_grader = hallucination_prompt | structured_llm_grader
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|