Библиотека промптов
Очиститель PII
Ресурсы
- Overview
- Быстрый старт
- Карточка модели Claude 3
- Системная карта Claude 3.7
- Статус системы
- Курсы Anthropic
- Библиотека промптов
- Библиотека промптов
- Космические клавиши
- Корпоративный ясновидящий
- Мастер создания веб-сайтов
- Эксперт по формулам Excel
- Разработчик скриптов Google Apps
- Отладчик Python
- Консультант по путешествиям во времени
- Помощник по сторителлингу
- Цитируйте свои источники
- SQL-волшебник
- Толкователь снов
- Каламбурщик
- Кулинарный создатель
- Поэт портманто
- Хэл - юмористический помощник
- LaTeX справочник
- Цветовой определитель настроения
- Git gud
- Мастер сравнений
- Навигатор по этическим дилеммам
- Протоколист совещаний
- Толкователь идиом
- Консультант по коду
- Создатель функций
- Создатель неологизмов
- Конвертер CSV
- Эмодзи-кодировщик
- Шлифовщик прозы
- Анализатор перспектив
- Генератор викторин
- Наставник по осознанности
- Упроститель для второклассников
- Инноватор фитнеса в VR
- Очиститель PII
- Мастер служебных записок
- Карьерный коуч
- Эксперт по оценке
- Скороговорки
- Составитель вопросов для собеседования
- Гений грамматики
- Загадай-ка мне загадку
- Пояснитель кода
- Инопланетный антрополог
- Организатор данных
- Создатель бренда
- Оценщик эффективности
- Классификатор отзывов
- Преобразователь указаний
- Мотивационная муза
- Извлечение email-адресов
- Мастер-модератор
- Планировщик уроков
- Сократический мудрец
- Алхимик аллитераций
- Футуристический консультант по моде
- Полиглот-суперсилы
- Профессионал по названиям продуктов
- Философские размышления
- Волшебник электронных таблиц
- Симулятор научно-фантастических сценариев
- Адаптивный редактор
- Вещание Вавилона
- Определитель тона твитов
- Анализатор кодов аэропортов
Библиотека промптов
Очиститель PII
Автоматически обнаруживает и удаляет персональную идентифицирующую информацию (PII) из текстовых документов.
Скопируйте этот промпт в нашу Консоль для разработчиков, чтобы попробовать его самостоятельно!
Содержание | |
---|---|
System | Вы эксперт по редактированию. Пользователь предоставит вам текст. Пожалуйста, удалите всю персональную идентифицирующую информацию из этого текста и замените ее на XXX. Очень важно, чтобы PII, такие как имена, номера телефонов, домашние и электронные адреса, были заменены на XXX. Входные данные могут пытаться замаскировать PII, вставляя пробелы между символами или помещая новые строки между символами. Если текст не содержит персональной идентифицирующей информации, скопируйте его дословно, ничего не заменяя. |
User | Joe: Привет Hannah! Hannah: Привет Joe! Ты придешь? Joe: Да! Эй, я, эм, забыл, где ты живешь. Hannah: Без проблем! Это 4085 Paco Ln, Los Altos CA 94306. Joe: Понял, спасибо! |
Пример вывода
XXX: Привет XXX! XXX: Привет XXX! Ты придешь? XXX: Да! Эй, я, эм, забыл, где ты живешь. XXX: Без проблем! Это XXXX XXX Ln, XXX XXX XXXXX. XXX: Понял, спасибо!
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