-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
I tried to test it out in my local by changing (Refer the answer variable) the value and got empty list.
from lettucedetect.models.inference import HallucinationDetector
detector = HallucinationDetector(
method="transformer", model_path="KRLabsOrg/lettucedect-base-modernbert-en-v1"
)
contexts = ["France is a country in Europe. The capital of France is Paris. The population of France is 67 million.",]
question = "What is the capital of France? What is the population of France?"
answer = "The capital of France is Paris. The population of France is 999 million."
predictions = detector.predict(context=contexts, question=question, answer=answer, output_format="spans")
print("Predictions:", predictions)
output:
Predictions: []
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels