22 lines
394 B
Python
22 lines
394 B
Python
from __future__ import annotations
|
|
|
|
import typing as t
|
|
|
|
|
|
def test_import():
|
|
import ragas
|
|
from ragas.testset import TestsetGenerator
|
|
|
|
assert TestsetGenerator is not None
|
|
assert ragas is not None
|
|
|
|
|
|
def test_type_casting():
|
|
t.cast(t.List[int], [1, 2, 3])
|
|
|
|
|
|
def test_import_metrics():
|
|
from ragas.metrics._aspect_critic import harmfulness
|
|
|
|
assert harmfulness is not None
|