Giter VIP home page Giter VIP logo

Comments (5)

neubig avatar neubig commented on August 22, 2024 4

We're developing a library that makes it possible to validate generated text according to different criteria:

  • summary quality
  • translation quality
  • factual consistency
  • fluency
  • toxicity

I sent one PR here, and if that looks useful I could add other ones too!
#48

from guardrails.

ShreyaR avatar ShreyaR commented on August 22, 2024

@neubig that's a great suggestion, having a deeper integration between Guardrails and Critique would be awesome! Happy to offer any support as you're adding demos. I'll also start hacking on adding a few pieces in.

from guardrails.

neubig avatar neubig commented on August 22, 2024

Great! That'd be awesome. It might be nice if it was possible to have a somewhat more generalized way to call the various Critique metrics (without re-implementing the boilerplate in every notebook). I can think about that more, but any pointers are welcome too.

from guardrails.

krandiash avatar krandiash commented on August 22, 2024

Just added a PR #61 that shows an example of a validator that uses embeddings to do a semantic check. The Critique validators sound super cool @neubig, maybe one way is to subclass Validator (CritiqueValidator(Validator)), do the boilerplate setup in the superclass and then implement all the downstream ones?

from guardrails.

smohiuddin avatar smohiuddin commented on August 22, 2024

we've added a number of validators that are more probabilistic in nature like provenance, etc. resolving this now.

from guardrails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.