# Model-agnostic PII detection with LLMs

DevFeed: [Model-agnostic PII detection with LLMs](<https://devfeed.tech/articles/model-agnostic-pii-detection-with-llms-4736.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/model-agnostic-pii-detection-with-llms/>)

Author: Christophe Dupuy

Published: 2026-09-10T16:02:16Z

Content type: tutorial

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [inference](<https://devfeed.tech/tags/inference.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [llms](<https://devfeed.tech/tags/llms.md>), [pii](<https://devfeed.tech/tags/pii.md>), [security](<https://devfeed.tech/tags/security.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [vpc](<https://devfeed.tech/tags/vpc.md>)

## AI overview

A tutorial on building a configurable, model-agnostic PII detector with large language models. It explains prompt-based entity configuration, implementation, benchmarking, and running the detector on custom data.

## Source excerpt

A configurable, model-agnostic detector that turns any large language model on Amazon Bedrock into a PII detector. Because the entities to detect live in a prompt rather than in code, one detector adapts to new entity types without retraining, and it outperforms an off-the-shelf tool across five public corpora and nine LLM-based detectors.