explodinggradients / ragas

Supercharge Your LLM Application Evaluations 🚀
https://docs.ragas.io
Apache License 2.0
7.18k stars 732 forks source link

reformat: Add pydantic for better error handling and debugging #253

Closed arm-diaz closed 5 months ago

arm-diaz commented 1 year ago

Pydantic is a library that provides data validation and settings management using type annotations.

Official documentation:

Why use Pydantic?

Pydantic can provide better error handling and more visibility of classes, methods, and dependencies across the project.

jjmachan commented 11 months ago

would you give a few examples of how pydantic would help with error handling and debugging with respect to ragas.

if it is for LLM output parsing I agree. We are working out json for this since models are more likely to understand json errors than pydantic