o
    /if                     @   sz   d dl Z d dlmZ d dlmZ d dlmZ d dlZe jjdddd Z	e jjddd	d
 Z
e jjdddd ZdS )    N)LLMTestCase)HallucinationMetric)assert_testzopenai is expensive)reasonc                  C   .   t dd} tdddgddd}t|| g d S )	Ng      ?	thresholdplaceholderz!A blond drinking water in public.zQA man with blond-hair, and a brown shirt drinking out of a public water fountain.g?   inputactual_outputcontextcostlatencyr   r   r   metric	test_case r   Q/var/www/html/corbot_env/lib/python3.10/site-packages/tests/test_hallucination.pytest_hallucination_metric   s   
	r   c                  C   r   )	N333333?r   r	   !Python is a programming language.z%Python is NOT a programming language.   g?r   r   r   r   r   r   test_hallucination_metric_2   s   
r   c                  C   s0   t dd} tddddgddd	}t|| g d S )
Nr   r   r	   r   zPython is a snake.z$Pythons like to lurk in the forests.g?g      *@r   r   r   r   r   r   test_hallucination_metric_3$   s   
r   )pytestdeepeval.test_caser   deepeval.metricsr   deepevalr   markskipr   r   r   r   r   r   r   <module>   s    

