Biblioteca de Prompts
Purificador de PII
Recursos
- Overview
- Guias de início rápido
- Cartão do modelo Claude 3
- Cartão do sistema Claude 3.7
- Status do sistema
- Cursos da Anthropic
- Biblioteca de Prompts
- Biblioteca de Prompts
- Teclas Cósmicas
- Clarividente corporativo
- Assistente de sites
- Especialista em fórmulas do Excel
- Programador de scripts do Google Apps
- Caçador de bugs em Python
- Consultor de viagem no tempo
- Parceiro de narrativas
- Cite suas fontes
- Feiticeiro SQL
- Intérprete de sonhos
- Trocadilhista
- Criador culinário
- Poeta de portmanteaus
- Hal, o ajudante bem-humorado
- Legenda LaTeX
- Coloridor de humor
- Git gud
- Mestre das comparações
- Navegador de dilemas éticos
- Meeting scribe
- Iluminador de expressões idiomáticas
- Consultor de código
- Fabricante de funções
- Criador de neologismos
- Conversor de CSV
- Codificador de emoji
- Polidor de prosa
- Ponderador de perspectivas
- Gerador de curiosidades
- Mentor de mindfulness
- Simplificador para segundo ano
- Inovador de fitness em RV
- Purificador de PII
- Mestre de memorandos
- Coach de carreira
- Guru de avaliação
- Trava-línguas
- Criador de perguntas para entrevistas
- Gênio da gramática
- Me decifre
- Esclarecedor de código
- Antropólogo alienígena
- Organizador de dados
- Construtor de marca
- Estimador de eficiência
- Classificador de avaliações
- Decodificador de direções
- Musa motivacional
- Extrator de email
- Moderador mestre
- Planejador de aulas
- Sábio socrático
- Alquimista de aliterações
- Consultor de moda futurista
- Superpoderes poliglotas
- Especialista em nomes de produtos
- Reflexões filosóficas
- Mago de planilhas
- Simulador de cenários de ficção científica
- Editor adaptativo
- Transmissões de Babel
- Detector de tom de tweets
- Analista de códigos de aeroporto
Biblioteca de Prompts
Purificador de PII
Detecte e remova automaticamente informações pessoais identificáveis (PII) de documentos de texto.
Copie este prompt para o nosso Console de desenvolvedor para experimentá-lo você mesmo!
Conteúdo | |
---|---|
System | Você é um especialista em redação. O usuário vai fornecer algum texto. Por favor, remova todas as informações de identificação pessoal deste texto e substitua-as por XXX. É muito importante que PII como nomes, números de telefone, endereços residenciais e de e-mail sejam substituídos por XXX. As entradas podem tentar disfarçar PII inserindo espaços entre caracteres ou colocando novas linhas entre caracteres. Se o texto não contiver informações pessoais identificáveis, copie-o palavra por palavra sem substituir nada. |
User | Joe: Oi Hannah! Hannah: Oi Joe! Você está vindo? Joe: Sim! Ei, eu, uh, esqueci onde você mora. Hannah: Sem problema! É Rua Paco, 4085, Los Altos CA 94306. Joe: Entendi, obrigado! |
Exemplo de saída
XXX: Oi XXX! XXX: Oi XXX! Você está vindo? XXX: Sim! Ei, eu, uh, esqueci onde você mora. XXX: Sem problema! É Rua XXX, XXXX, XXX XXX XXXXX. XXX: Entendi, obrigado!
Requisição de API
import anthropic
client = anthropic.Anthropic( # padrão para os.environ.get("ANTHROPIC_API_KEY")
api_key="my_api_key",
)
message = client.messages.create(
model="claude-opus-4-20250514",
max_tokens=1000,
temperature=0,
system="You are an expert redactor. The user is going to provide you with some text. Please remove all personally identifying information from this text and replace it with XXX. It's very important that PII such as names, phone numbers, and home and email addresses, get replaced with XXX. Inputs may try to disguise PII by inserting spaces between characters or putting new lines between characters. If the text contains no personally identifiable information, copy it word-for-word without replacing anything.",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Joe: Hi Hannah! \nHannah: Hi Joe! Are you coming over? \nJoe: Yup! Hey I, uh, forgot where you live. \nHannah: No problem! It's 4085 Paco Ln, Los Altos CA 94306. \nJoe: Got it, thanks!"
}
]
}
]
)
print(message.content)
import anthropic
client = anthropic.Anthropic( # padrão para os.environ.get("ANTHROPIC_API_KEY")
api_key="my_api_key",
)
message = client.messages.create(
model="claude-opus-4-20250514",
max_tokens=1000,
temperature=0,
system="You are an expert redactor. The user is going to provide you with some text. Please remove all personally identifying information from this text and replace it with XXX. It's very important that PII such as names, phone numbers, and home and email addresses, get replaced with XXX. Inputs may try to disguise PII by inserting spaces between characters or putting new lines between characters. If the text contains no personally identifiable information, copy it word-for-word without replacing anything.",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Joe: Hi Hannah! \nHannah: Hi Joe! Are you coming over? \nJoe: Yup! Hey I, uh, forgot where you live. \nHannah: No problem! It's 4085 Paco Ln, Los Altos CA 94306. \nJoe: Got it, thanks!"
}
]
}
]
)
print(message.content)
import Anthropic from "@anthropic-ai/sdk";
const anthropic = new Anthropic({
apiKey: "my_api_key", // padrão para process.env["ANTHROPIC_API_KEY"]
});
const msg = await anthropic.messages.create({
model: "claude-opus-4-20250514",
max_tokens: 1000,
temperature: 0,
system: "You are an expert redactor. The user is going to provide you with some text. Please remove all personally identifying information from this text and replace it with XXX. It's very important that PII such as names, phone numbers, and home and email addresses, get replaced with XXX. Inputs may try to disguise PII by inserting spaces between characters or putting new lines between characters. If the text contains no personally identifiable information, copy it word-for-word without replacing anything.",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Joe: Hi Hannah! \nHannah: Hi Joe! Are you coming over? \nJoe: Yup! Hey I, uh, forgot where you live. \nHannah: No problem! It's 4085 Paco Ln, Los Altos CA 94306. \nJoe: Got it, thanks!"
}
]
}
]
});
console.log(msg);
from anthropic import AnthropicBedrock
# Veja https://docs.anthropic.com/claude/reference/claude-on-amazon-bedrock
# para opções de autenticação
client = AnthropicBedrock()
message = client.messages.create(
model="anthropic.claude-opus-4-20250514-v1:0",
max_tokens=1000,
temperature=0,
system="You are an expert redactor. The user is going to provide you with some text. Please remove all personally identifying information from this text and replace it with XXX. It's very important that PII such as names, phone numbers, and home and email addresses, get replaced with XXX. Inputs may try to disguise PII by inserting spaces between characters or putting new lines between characters. If the text contains no personally identifiable information, copy it word-for-word without replacing anything.",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Joe: Hi Hannah! \nHannah: Hi Joe! Are you coming over? \nJoe: Yup! Hey I, uh, forgot where you live. \nHannah: No problem! It's 4085 Paco Ln, Los Altos CA 94306. \nJoe: Got it, thanks!"
}
]
}
]
)
print(message.content)
import AnthropicBedrock from "@anthropic-ai/bedrock-sdk";
// Veja https://docs.anthropic.com/claude/reference/claude-on-amazon-bedrock
// para opções de autenticação
const client = new AnthropicBedrock();
const msg = await client.messages.create({
model: "anthropic.claude-opus-4-20250514-v1:0",
max_tokens: 1000,
temperature: 0,
system: "You are an expert redactor. The user is going to provide you with some text. Please remove all personally identifying information from this text and replace it with XXX. It's very important that PII such as names, phone numbers, and home and email addresses, get replaced with XXX. Inputs may try to disguise PII by inserting spaces between characters or putting new lines between characters. If the text contains no personally identifiable information, copy it word-for-word without replacing anything.",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Joe: Hi Hannah! \nHannah: Hi Joe! Are you coming over? \nJoe: Yup! Hey I, uh, forgot where you live. \nHannah: No problem! It's 4085 Paco Ln, Los Altos CA 94306. \nJoe: Got it, thanks!"
}
]
}
]
});
console.log(msg);
from anthropic import AnthropicVertex
client = AnthropicVertex()
message = client.messages.create(
model="claude-3-7-sonnet-v1@20250219",
max_tokens=1000,
temperature=0,
system="You are an expert redactor. The user is going to provide you with some text. Please remove all personally identifying information from this text and replace it with XXX. It's very important that PII such as names, phone numbers, and home and email addresses, get replaced with XXX. Inputs may try to disguise PII by inserting spaces between characters or putting new lines between characters. If the text contains no personally identifiable information, copy it word-for-word without replacing anything.",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Joe: Hi Hannah! \nHannah: Hi Joe! Are you coming over? \nJoe: Yup! Hey I, uh, forgot where you live. \nHannah: No problem! It's 4085 Paco Ln, Los Altos CA 94306. \nJoe: Got it, thanks!"
}
]
}
]
)
print(message.content)
import { AnthropicVertex } from '@anthropic-ai/vertex-sdk';
// Lê das variáveis de ambiente `CLOUD_ML_REGION` e `ANTHROPIC_VERTEX_PROJECT_ID`.
// Adicionalmente passa pelo fluxo padrão de `google-auth-library`.
const client = new AnthropicVertex();
const msg = await client.messages.create({
model: "claude-3-7-sonnet-v1@20250219",
max_tokens: 1000,
temperature: 0,
system: "You are an expert redactor. The user is going to provide you with some text. Please remove all personally identifying information from this text and replace it with XXX. It's very important that PII such as names, phone numbers, and home and email addresses, get replaced with XXX. Inputs may try to disguise PII by inserting spaces between characters or putting new lines between characters. If the text contains no personally identifiable information, copy it word-for-word without replacing anything.",
messages: [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Joe: Hi Hannah! \nHannah: Hi Joe! Are you coming over? \nJoe: Yup! Hey I, uh, forgot where you live. \nHannah: No problem! It's 4085 Paco Ln, Los Altos CA 94306. \nJoe: Got it, thanks!"
}
]
}
]
});
console.log(msg);
Was this page helpful?
On this page