Skip to content

Commit 2d5d4a6

Browse files
authored
docs(mkdocs): 💄 fix nested lists in mkdocs (#126)
* docs(mkdocs): 💄 fix nested lists in mkdocs * docs: 📝 Update title for bancode scanner documentation
1 parent d4639f9 commit 2d5d4a6

File tree

4 files changed

+46
-46
lines changed

4 files changed

+46
-46
lines changed

.markdownlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
###############
2121
MD004: false # Unordered list style
2222
MD007:
23-
indent: 2 # Unordered list indentation
23+
indent: 4 # Unordered list indentation
2424
MD010:
2525
code_blocks: false # Ignore no-hard-tabs in cde blocks because that's how formatting for golang works
2626
MD013:

docs/changelog.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ _0.3.5 and 0.3.6 were skipped due to build issues._
241241
### Changed
242242
- Added Swagger documentation on the [API](./api/overview.md) documentation page
243243
- Added `fail_fast` flag to stop the execution after the first failure
244-
- Updated API and Playground to support `fail_fast` flag
245-
- Clarified order of execution in the documentation
244+
- Updated API and Playground to support `fail_fast` flag
245+
- Clarified order of execution in the documentation
246246
- Added timeout configuration for API example
247247
- Better examples of `langchain` integration
248248

@@ -354,24 +354,24 @@ _0.3.5 and 0.3.6 were skipped due to build issues._
354354
- [Documentation](./index.md)
355355
- Github Actions pipeline
356356
- Prompt scanners with tests:
357-
- [Anonymize](./input_scanners/anonymize.md)
358-
- [BanSubstrings](./input_scanners/ban_substrings.md)
359-
- [BanTopics](./input_scanners/ban_topics.md)
360-
- [Code](./input_scanners/code.md)
361-
- [PromptInjection](./input_scanners/prompt_injection.md)
362-
- [Sentiment](./input_scanners/sentiment.md)
363-
- [TokenLimit](./input_scanners/token_limit.md)
364-
- [Toxicity](./input_scanners/toxicity.md)
357+
- [Anonymize](./input_scanners/anonymize.md)
358+
- [BanSubstrings](./input_scanners/ban_substrings.md)
359+
- [BanTopics](./input_scanners/ban_topics.md)
360+
- [Code](./input_scanners/code.md)
361+
- [PromptInjection](./input_scanners/prompt_injection.md)
362+
- [Sentiment](./input_scanners/sentiment.md)
363+
- [TokenLimit](./input_scanners/token_limit.md)
364+
- [Toxicity](./input_scanners/toxicity.md)
365365
- Output scanners with tests:
366-
- [BanSubstrings](./output_scanners/ban_substrings.md)
367-
- [BanTopics](./output_scanners/ban_topics.md)
368-
- [Code](./output_scanners/code.md)
369-
- [Deanonymize](./output_scanners/deanonymize.md)
370-
- [NoRefusal](./output_scanners/no_refusal.md)
371-
- [Regex](./output_scanners/regex.md)
372-
- [Relevance](./output_scanners/relevance.md)
373-
- [Sensitive](./output_scanners/sensitive.md)
374-
- [Toxicity](./output_scanners/toxicity.md)
366+
- [BanSubstrings](./output_scanners/ban_substrings.md)
367+
- [BanTopics](./output_scanners/ban_topics.md)
368+
- [Code](./output_scanners/code.md)
369+
- [Deanonymize](./output_scanners/deanonymize.md)
370+
- [NoRefusal](./output_scanners/no_refusal.md)
371+
- [Regex](./output_scanners/regex.md)
372+
- [Relevance](./output_scanners/relevance.md)
373+
- [Sensitive](./output_scanners/sensitive.md)
374+
- [Toxicity](./output_scanners/toxicity.md)
375375

376376
[Unreleased]: https://github.com/protectai/llm-guard/commits/main
377377
[0.3.12]: https://github.com/protectai/llm-guard/releases/tag/v0.3.12

docs/input_scanners/anonymize.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,33 @@ Some model providers may train their models on your requests, which can be a pri
1818
## PII entities
1919

2020
- **Credit Cards**: Formats mentioned in [Wikipedia](https://en.wikipedia.org/wiki/Payment_card_number).
21-
- `4111111111111111`
22-
- `378282246310005` (American Express)
23-
- `30569309025904` (Diners Club)
21+
- `4111111111111111`
22+
- `378282246310005` (American Express)
23+
- `30569309025904` (Diners Club)
2424
- **Person**: A full person name, which can include first names, middle names or initials, and last names.
25-
- `John Doe`
25+
- `John Doe`
2626
- **PHONE_NUMBER**:
27-
- `5555551234`
27+
- `5555551234`
2828
- **URL**: A URL (Uniform Resource Locator), unique identifier used to locate a resource on the Internet.
29-
- `https://protectai.com/`
29+
- `https://protectai.com/`
3030
- **E-mail Addresses**: Standard email formats.
31-
32-
- `john.doe[AT]protectai[DOT]com`
33-
- `john.doe[AT]protectai.com`
34-
- `john.doe@protectai[DOT]com`
31+
32+
- `john.doe[AT]protectai[DOT]com`
33+
- `john.doe[AT]protectai.com`
34+
- `john.doe@protectai[DOT]com`
3535
- **IPs**: An Internet Protocol (IP) address (either IPv4 or IPv6).
36-
- `192.168.1.1` (IPv4)
37-
- `2001:db8:3333:4444:5555:6666:7777:8888` (IPv6)
36+
- `192.168.1.1` (IPv4)
37+
- `2001:db8:3333:4444:5555:6666:7777:8888` (IPv6)
3838
- **UUID**:
39-
- `550e8400-e29b-41d4-a716-446655440000`
39+
- `550e8400-e29b-41d4-a716-446655440000`
4040
- **US Social Security Number (SSN)**:
41-
- `111-22-3333`
41+
- `111-22-3333`
4242
- **Crypto wallet number**: Currently only Bitcoin address is supported.
43-
- `1Lbcfr7sAHTD9CgdQo3HTMTkV8LK4ZnX71`
43+
- `1Lbcfr7sAHTD9CgdQo3HTMTkV8LK4ZnX71`
4444
- **IBAN Code**: The International Bank Account Number (IBAN) is an internationally agreed system of identifying bank
4545
accounts across national borders to facilitate the communication and processing of cross border transactions with a
4646
reduced risk of transcription errors.
47-
- `DE89370400440532013000`
47+
- `DE89370400440532013000`
4848

4949
## Features
5050

@@ -53,19 +53,19 @@ Some model providers may train their models on your requests, which can be a pri
5353
- **Enhanced Detection**: Beyond Presidio Analyzer's capabilities, the scanner recognizes specific patterns like Email,
5454
US SSN, UUID, and more.
5555
- **Entities support**:
56-
- Peek at
56+
- Peek at
5757
our [default entities](https://github.com/protectai/llm-guard/blob/main/llm_guard/input_scanners/anonymize.py#L26-L40).
58-
- View
58+
- View
5959
the [Presidio's supported entities](https://microsoft.github.io/presidio/supported_entities/#list-of-supported-entities).
60-
- And, we've
60+
- And, we've
6161
got [custom regex patterns](https://github.com/protectai/llm-guard/blob/main/llm_guard/resources/sensisitive_patterns.json)
6262
too!
6363
- **Tailored recognizers**:
64-
- Balance speed vs. accuracy of the recognizers.
65-
- **Top Pick: [dslim/bert-base-NER](https://huggingface.co/dslim/bert-base-NER)**
66-
- Alternative with more parameters: [dslim/bert-large-NER](https://huggingface.co/dslim/bert-large-NER).
67-
- Chinese recognizer: [gyr66/bert-base-chinese-finetuned-ner](https://huggingface.co/gyr66/bert-base-chinese-finetuned-ner).
68-
- Good models from AI4Privacy: [Isotonic/distilbert_finetuned_ai4privacy_v2](https://huggingface.co/Isotonic/distilbert_finetuned_ai4privacy_v2) and [Isotonic/deberta-v3-base_finetuned_ai4privacy_v2](https://huggingface.co/Isotonic/deberta-v3-base_finetuned_ai4privacy_v2).
64+
- Balance speed vs. accuracy of the recognizers.
65+
- **Top Pick: [dslim/bert-base-NER](https://huggingface.co/dslim/bert-base-NER)**
66+
- Alternative with more parameters: [dslim/bert-large-NER](https://huggingface.co/dslim/bert-large-NER).
67+
- Chinese recognizer: [gyr66/bert-base-chinese-finetuned-ner](https://huggingface.co/gyr66/bert-base-chinese-finetuned-ner).
68+
- Good models from AI4Privacy: [Isotonic/distilbert_finetuned_ai4privacy_v2](https://huggingface.co/Isotonic/distilbert_finetuned_ai4privacy_v2) and [Isotonic/deberta-v3-base_finetuned_ai4privacy_v2](https://huggingface.co/Isotonic/deberta-v3-base_finetuned_ai4privacy_v2).
6969
- **Support of multiple languages**: The scanner can detect PII in English and Chinese.
7070

7171
!!! info

docs/input_scanners/ban_code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Code Scanner
1+
# Ban Code Scanner
22

3-
This scanner is designed to detect and ban code in the prompt.
3+
The `BanCode` scanner is designed to detect and ban code in the prompt.
44

55
## Attack scenario
66

0 commit comments

Comments
 (0)