Comments (2)
@dongxinghua I have discovered llm-guard
this week and I like to add this to one of our projects. I also bumped into question similar as yours (but Filipino instead of Chinese language). One work-around I came up with is to implement an input scanner following the implementation of Toxicity
class.
https://github.com/laiyer-ai/llm-guard/blob/main/llm_guard/input_scanners/toxicity.py
You can swap with existing or your own hugging face models to support other languages or other use cases that you may have.
from llm-guard.
Hey @dongxinghua ,
thanks for raising this! In theory, some of these checks should work with Chinese but we don't guarantee that. It needs some testing, and we are planning to work on multi-language features in the coming months.
Best regards,
Oleksandr
from llm-guard.
Related Issues (20)
- Broken roadmap link in README HOT 1
- Support inference URLs for models used by scanners HOT 2
- llm-guard package installation with poetry. HOT 13
- Poor Metrics when running Prompt Injection Scanner HOT 4
- Toxicity Scanner to return the type of content HOT 1
- How to Use Custom SpaCy Model (beki/en_spacy_pii_distilbert) with Anonymize and Sensitive Scanners HOT 1
- Bias Prompt Injection HOT 1
- torch installation error HOT 1
- RuntimeError: Numpy is not available HOT 1
- Thread safety of using Anonymize/Deanonymize
- [BanSubstrings] `substrings` should not default to None HOT 6
- remove assertions in code HOT 3
- Security layer for API HOT 2
- Detecting code from free flow text prompt HOT 3
- Stream support HOT 3
- The LLM-Guard API docker instance running on podman return the following error while using swagger UI and testing methods. HOT 8
- BanCompetitors constructor `model` argument is unintuitive HOT 4
- LLM_GUARD_API not working HOT 1
- Request for the API interface definition and sample implmentation codes HOT 1
- Scanners' speed, pulling up packages at execution HOT 2
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 llm-guard.