Open Z-oo883 opened 1 month ago
The error you're encountering indicates that the ground_truth
field in the DataRow
model is not receiving the expected data type. The ground_truth
field should be a string [1].
Here are some steps to help resolve the issue:
Check Data Type: Ensure that the ground_truth
value you are passing to the DataRow
is a string. If it's currently a list or another type, convert it to a string.
Debugging: Add print statements or use a debugger to inspect the data being passed to the DataRow
to ensure it matches the expected format.
Review Code: Look at the part of your code where DataRow
instances are created, especially in the generate_datarow
function, and ensure the ground_truth
is correctly formatted as a string.
If you follow these steps and ensure the data types are correct, the validation error should be resolved.
To continue talking to Dosu, mention @dosu.
which version are you using?
ragas: 0.1.21 python: 3.9.19 pydantic : 2.9.2 pydantic_core: 2.23.4 pydantic-settings: 2.5.2
which version are you using?
code:
error:
please help me !