Comments (5)
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.
@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.
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.
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.
we've added a number of validators that are more probabilistic in nature like provenance, etc. resolving this now.
from guardrails.
Related Issues (20)
- Remove support for pydantic < 2
- [feat] Move async workflows to AsyncGuard class HOT 1
- Sequential Execution and Duplicate Validation in guardrails Library HOT 3
- [bug] DetectPromptInjection validator asking for pinecone_environment HOT 4
- Make auth tokens expire in 30 days instead of 7
- Auth token fails config on some versions of windows
- [bug]
- [Feature Request] Offline Support for Hub Validators that use HuggingFace Models HOT 6
- [bug] OpenTelemetry Version Pinning Dependency Conflict HOT 4
- v0.4.4 Release Tracker
- Edit guardrails from the hub HOT 3
- Separate task, but we should do an existence check on the validator directories and add the --upgrade flag in the cli when necessary to avoid this.
- v0.4.5 release tracker HOT 1
- Rebuff Error while downloading prompt injection validator from hub HOT 1
- Latency while using GEMINI 1.5 PRO as the model and using sensitive topics guard from hub HOT 3
- Support langchain 0.2.* HOT 3
- Guards do not support LiteLLM Router API HOT 2
- [bug] Guardrails Hub Install results in a 500 CLI error HOT 1
- [feat] Support offline ML based Validators HOT 1
- [bug] Guardrails Hub Install Path Mismatch with PDM Environment in Docker HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guardrails.