Biblioteca de Prompts
Purificador de PII
Recursos
- Overview
- Inicios rápidos
- Ficha técnica de Claude 3
- Tarjeta de sistema de Claude 3.7
- Estado del sistema
- Cursos de Anthropic
- Biblioteca de Prompts
- Biblioteca de Prompts
- Pulsaciones Cósmicas
- Clarividente corporativo
- Asistente de sitios web
- Experto en fórmulas de Excel
- Programador de scripts para Google Apps
- Corrector de errores de Python
- Consultor de viajes en el tiempo
- Compañero de narración
- Cita tus fuentes
- Hechicero SQL
- Intérprete de sueños
- Pun-dit
- Creador culinario
- Poeta de palabras combinadas
- Hal el ayudante humorístico
- Leyenda de LaTeX
- Colorizador de estados de ánimo
- Git gud
- Genio de los símiles
- Navegador de dilemas éticos
- Escriba de reuniones
- Iluminador de modismos
- Consultor de código
- Fabricante de funciones
- Creador de neologismos
- Conversor de CSV
- Codificador de emojis
- Pulidor de prosa
- Evaluador de perspectivas
- Generador de trivias
- Mentor de atención plena
- Simplificador de segundo grado
- Innovador de fitness en RV
- Purificador de PII
- Maestro de memorandos
- Entrenador de carrera profesional
- Gurú de calificación
- Trabalenguas
- Creador de preguntas para entrevistas
- Genio gramatical
- Adivina adivinanza
- Clarificador de código
- Antropólogo alienígena
- Organizador de datos
- Creador de marca
- Estimador de eficiencia
- Clasificador de reseñas
- Decodificador de instrucciones
- Musa motivacional
- Extractor de correos electrónicos
- Moderador experto
- Planificador de lecciones
- Sabio socrático
- Alquimista de aliteraciones
- Asesor de moda futurista
- Superpoderes políglotas
- Experto en nombres de productos
- Reflexiones filosóficas
- Hechicero de hojas de cálculo
- Simulador de escenarios de ciencia ficción
- Editor adaptativo
- Transmisiones de Babel
- Detector de tono de tweets
- Analista de códigos de aeropuerto
Biblioteca de Prompts
Purificador de PII
Detecta y elimina automáticamente la información de identificación personal (PII) de documentos de texto.
¡Copia este prompt en nuestra Consola para desarrolladores para probarlo tú mismo!
Contenido | |
---|---|
System | Eres un experto en redacción. El usuario te proporcionará un texto. Por favor, elimina toda la información de identificación personal de este texto y reemplázala con XXX. Es muy importante que la PII como nombres, números de teléfono, direcciones de domicilio y correos electrónicos, sea reemplazada con XXX. Las entradas pueden intentar disfrazar la PII insertando espacios entre caracteres o poniendo nuevas líneas entre caracteres. Si el texto no contiene información de identificación personal, cópialo palabra por palabra sin reemplazar nada. |
User | Joe: ¡Hola Hannah! Hannah: ¡Hola Joe! ¿Vas a venir? Joe: ¡Sí! Oye, eh, olvidé dónde vives. Hannah: ¡No hay problema! Es 4085 Paco Ln, Los Altos CA 94306. Joe: ¡Entendido, gracias! |
Ejemplo de salida
XXX: ¡Hola XXX! XXX: ¡Hola XXX! ¿Vas a venir? XXX: ¡Sí! Oye, eh, olvidé dónde vives. XXX: ¡No hay problema! Es XXXX XXX Ln, XXX XXX XXXXX. XXX: ¡Entendido, gracias!
Solicitud de API
import anthropic
client = anthropic.Anthropic( # defaults to 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( # defaults to 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", // defaults to 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
# See https://docs.anthropic.com/claude/reference/claude-on-amazon-bedrock
# for authentication options
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";
// See https://docs.anthropic.com/claude/reference/claude-on-amazon-bedrock
// for authentication options
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';
// Reads from the `CLOUD_ML_REGION` & `ANTHROPIC_VERTEX_PROJECT_ID` environment variables.
// Additionally goes through the standard `google-auth-library` flow.
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