Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 10, 2024
1 parent 8acdf0c commit 378c79e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion comps/guardrails/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ The Guardrails service enhances the security of LLM-based applications by offeri
| [Llama Guard](./llama_guard/README.md) | Provides guardrails for inputs and outputs to ensure safe interactions |
| [PII Detection](./pii_detection/README.md) | Detects Personally Identifiable Information (PII) and Business Sensitive Information (BSI) |
| [Toxicity Detection](./toxicity_detection/README.md) | Detects Toxic language (rude, disrespectful, or unreasonable language that is likely to make someone leave a discussion) |
| [Bias Detection](./bias_detection/README.md) | Detects Biased language (framing bias, epistemological bias, and demographic bias) |
| [Bias Detection](./bias_detection/README.md) | Detects Biased language (framing bias, epistemological bias, and demographic bias) |

Additional safety-related microservices will be available soon.
9 changes: 5 additions & 4 deletions comps/guardrails/bias_detection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
Bias Detection Microservice allows AI Application developers to safeguard user input and LLM output from biased language in a RAG environment. By leveraging a smaller fine-tuned Transformer model for bias classification (e.g. DistilledBERT, RoBERTa, etc.), we maintain a lightweight guardrails microservice without significantly sacrificing performance making it readily deployable on both Intel Gaudi and Xeon.

Bias erodes our collective trust and fuels social conflict. Bias can be defined as inappropriate subjectivity in the form of one of the following:
* Framing bias -- using subjective words or phrases linked with a particular point of view
* Epistemological bias -- linguistic features that subtly modify the believability of a proposition.
* Demographic bias -- text with presuppositions about particular genders, races, or other demographic categorie

- Framing bias -- using subjective words or phrases linked with a particular point of view
- Epistemological bias -- linguistic features that subtly modify the believability of a proposition.
- Demographic bias -- text with presuppositions about particular genders, races, or other demographic categorie

## Future Development

- Add a "neutralizing bias" microservice to neutralizing any detected bias in the RAG serving, guarding the RAG usage.
- Add a "neutralizing bias" microservice to neutralizing any detected bias in the RAG serving, guarding the RAG usage.

## 🚀1. Start Microservice with Python(Option 1)

Expand Down

0 comments on commit 378c79e

Please sign in to comment.