Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(weave): Public docs for MVP Guardrails #3344

Merged
merged 7 commits into from
Jan 14, 2025
Merged

Conversation

tssweeney
Copy link
Collaborator

@tssweeney tssweeney commented Jan 8, 2025

@circle-job-mirror
Copy link

circle-job-mirror bot commented Jan 8, 2025

Everything is built around the concept of a `Scorer`. A `Scorer` is an instance of a sublcass of the `Scorer` class - particularly one that exposes a `score` method. See [Evaluation Metrics](./scorers.md) for more information.

### Monitors
Now, many times you will want to apply a Scorer directly after calling an Op. This can be achieved by using the `apply_scorer` method on the `Call` object.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Often you...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may want to strip the outputs of this nb

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove me - i am now a notebook


![Feedback](./../../../static/img/guardrails_scorers.png)

Weave provides a robust framework for implementing safety controls and monitoring systems in LLM applications through a unified scoring system. This guide explains how to leverage Scorers as both guardrails for active intervention and monitors for passive evaluation in production environments.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To match casing elsewhere (unless you meant the class)

Suggested change
Weave provides a robust framework for implementing safety controls and monitoring systems in LLM applications through a unified scoring system. This guide explains how to leverage Scorers as both guardrails for active intervention and monitors for passive evaluation in production environments.
Weave provides a robust framework for implementing safety controls and monitoring systems in LLM applications through a unified scoring system. This guide explains how to leverage scorers as both guardrails for active intervention and monitors for passive evaluation in production environments.


## Monitors

While guardrails provide active intervention, monitors offer passive evaluation and tracking of LLM operations. They are crucial for long-term quality assurance and system improvement.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Is the term "Guardrails" or "guardrails"? I've seen both floating around.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll just keep it lower case for now

@J2-D2-3PO
Copy link
Contributor

J2-D2-3PO commented Jan 13, 2025

@tssweeney depending on timing, it might sense to merge this into #3066 and ship everything at once. With a little bit of modification, I think this PR would logically fit into the new structure. See #3066

@tssweeney tssweeney marked this pull request as ready for review January 13, 2025 20:28
@tssweeney tssweeney requested review from a team as code owners January 13, 2025 20:28
@tssweeney tssweeney enabled auto-merge (squash) January 14, 2025 16:41
@tssweeney tssweeney disabled auto-merge January 14, 2025 16:57
@tssweeney tssweeney merged commit 585f8b7 into master Jan 14, 2025
118 of 123 checks passed
@tssweeney tssweeney deleted the tim/guardrails_docs branch January 14, 2025 16:57
@github-actions github-actions bot locked and limited conversation to collaborators Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants