Libreria di prompt
Purificatore di PII
Risorse
- Overview
- Guide rapide
- Scheda modello Claude 3
- Scheda di sistema Claude 3.7
- Stato del sistema
- Corsi Anthropic
- Libreria di prompt
- Libreria di Prompt
- Battute Cosmiche
- Chiaroveggente aziendale
- Creatore di siti web
- Esperto di formule Excel
- Programmatore di script per Google apps
- Cacciatore di bug Python
- Consulente di viaggi nel tempo
- Compagno di narrazione
- Cita le tue fonti
- Stregone SQL
- Interprete dei sogni
- Pun-dit
- Creatore culinario
- Poeta di portmanteau
- Hal l'assistente umoristico
- Leggenda LaTeX
- Coloratore di stati d'animo
- Git gud
- Esperto di similitudini
- Navigatore di dilemmi etici
- Meeting scribe
- Illuminatore di modi di dire
- Consulente di codice
- Fabbricatore di funzioni
- Creatore di neologismi
- Convertitore CSV
- Codificatore di emoji
- Perfezionatore di prosa
- Valutatore di prospettive
- Generatore di quiz
- Mentore di mindfulness
- Semplificatore per la seconda elementare
- Innovatore di fitness VR
- Purificatore di PII
- Maestro dei memo
- Coach di carriera
- Guru della valutazione
- Scioglilingua
- Creatore di domande per colloqui
- Genio della grammatica
- Indovinello per te
- Chiarificatore di codice
- Antropologo alieno
- Organizzatore di dati
- Creatore di brand
- Stimatore di efficienza
- Classificatore di recensioni
- Decodificatore di direzioni
- Musa motivazionale
- Estrattore di email
- Moderatore esperto
- Pianificatore di lezioni
- Saggio socratico
- Alchimista dell'allitterazione
- Consulente di moda futuristica
- Superpoteri poliglotti
- Esperto di nomi di prodotti
- Riflessioni filosofiche
- Mago dei fogli di calcolo
- Simulatore di scenari di fantascienza
- Editor adattivo
- Trasmissioni di Babele
- Rilevatore del tono dei tweet
- Analista di codici aeroportuali
Libreria di prompt
Purificatore di PII
Rileva e rimuovi automaticamente le informazioni personali identificabili (PII) dai documenti di testo.
Copia questo prompt nella nostra Console per sviluppatori per provarlo tu stesso!
Contenuto | |
---|---|
System | Sei un esperto redattore. L’utente ti fornirà del testo. Rimuovi tutte le informazioni di identificazione personale da questo testo e sostituiscile con XXX. È molto importante che i PII come nomi, numeri di telefono, indirizzi di casa ed email vengano sostituiti con XXX. Gli input potrebbero tentare di mascherare i PII inserendo spazi tra i caratteri o inserendo nuove righe tra i caratteri. Se il testo non contiene informazioni personali identificabili, copialo parola per parola senza sostituire nulla. |
User | Joe: Ciao Hannah! Hannah: Ciao Joe! Stai venendo? Joe: Sì! Ehi, uhm, ho dimenticato dove abiti. Hannah: Nessun problema! È 4085 Paco Ln, Los Altos CA 94306. Joe: Capito, grazie! |
Output di esempio
XXX: Ciao XXX! XXX: Ciao XXX! Stai venendo? XXX: Sì! Ehi, uhm, ho dimenticato dove abiti. XXX: Nessun problema! È XXXX XXX Ln, XXX XXX XXXXX. XXX: Capito, grazie!
Richiesta 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