全部文章
寻访与沟通

外联前如何用 Claude 或 Gemini 清洗候选人所在地数据

用 Claude 或 Gemini 清洗候选人所在地:让它输出 JSON,遇到有歧义的地名只标记、不猜测。预计约四分之一的行需要人工复核。

  • Saves time
  • More replies
  • Better hires

2026年10月22日 · 3 分钟阅读

提示词为英文:在各类AI工具中英文提示词效果最佳。

"能不能直接把整列所在地粘贴给 Claude,让它还我干净的城市和国家字段?"可以,而且效果不错,只是有少数几行会出错,还不给任何提示。在我们的测试中,直接提问时,37 条杂乱的字符串里有 30 到 34 条完全正确。换成一个围绕单一原则设计的简短提示词(遇到有歧义的地名,绝不猜测)后,正确数提高到 36 或 37 条,有歧义地名的猜测从 16 次中的 14 次降到了 0 次。

直接提问时,哪里出了错?

我们编了 37 条 CRM 里常见的所在地字符串:"TLV / Remote"、"ת״א"、"Portland"、"Georgia"、"Netanya/Raanana"、"Open to relocate to Canada"。然后让 Claude 和 Gemini 各自返回包含城市、地区、国家代码和工作方式的 JSON,每个工具跑两次,并用脚本对照标准答案给每一行打分。

工具没有标记、而是直接猜测的有歧义地名
直接提问加上规则后ClaudeClaude: 直接提问 6 of 8, 加上规则后 0 of 86 of 8 → 0 of 8GeminiGemini: 直接提问 8 of 8, 加上规则后 0 of 88 of 8 → 0 of 8

四个有歧义的字符串(Georgia、Cambridge、Portland、Washington),每个工具运行两次。

Source: 我们的测试,用脚本对照标准答案打分

Show the data
直接提问加上规则后
Claude6 of 80 of 8
Gemini8 of 80 of 8

简单的行都没问题。直接提问的结果总是错在同样那几行,而且只有一次,工具主动承认了不确定。Claude 在两次运行中的一次,把它的疑虑写在了 JSON 下方的备注里,而数据一粘贴进 CRM,这些备注就丢了。Gemini 没有给出任何提示,还前后不一致:"Georgia" 一次被当成国家,另一次被当成美国的州。

原始字符串 直接提问(Gemini) 加上规则后
Cambridge Cambridge, UK 已标记,两个地方都列出
Washington Washington, DC 已标记
Netanya/Raanana 只保留 Netanya,漏掉 Raanana 国家 IL,城市留空,两个城市写进备注
Open to relocate to Canada 两次运行都把国家设为 Canada Canada 记在单独的意向迁往字段里

阻止它乱猜的规则是什么?

九条简短的规则,放在一个结构常规的提示词里。它新增了两个字段,needs_review 和 note,方便人工找出需要处理的行。

PERSONA
You are a recruiting operations specialist who cleans candidate data before it is loaded into a CRM.

TASK
Turn each raw location string below into clean CRM fields. Return only a JSON array with one object per input line, in the same order, with these fields: original, city, region, country_code, work_mode, open_to_relocate_to, needs_review, note.

RULES
- Keep "original" exactly as given.
- city: the official English name without diacritics trouble (for example "Zurich", "Munich"). Null if the text names no single city.
- country_code: ISO 3166-1 alpha-2 (for example "IL", "US"). Null if the text does not say or clearly imply one country.
- work_mode: "remote", "hybrid", "onsite" or "unknown". Use "remote" or "hybrid" only if the text says so. Never assume "onsite".
- Where someone says they want to move somewhere, put that place only in open_to_relocate_to, never in city or country_code. Their current place goes in city.
- If a place name could be more than one place and the text does not settle it, do not pick the most famous one. Set city and country_code to null, needs_review to true, and say in note which places it could be.
- If a line names two places, set needs_review to true and put both in note.
- Use the other words in the line (a state, province or country) to settle a name that exists in several countries.
- Never invent a region or a country the text does not support.

Locations (one per line):
[paste only the location column]

只粘贴所在地这一列。姓名、邮箱和简历内容属于个人数据,没有必要发送。

结果全对了吗?

差不多。规则并没有处处奏效。两次运行中,Gemini 都把 "Open to relocate to Canada" 和 Austin-to-Denver 那一行标成了无需复核,但后者包含两个地点,按规则应该标记。所以还要筛选 open_to_relocate_to 有值的所有行。其余的错误都属于过于谨慎:有一次 Claude 把 Austin 那行送去复核并留空了城市,Gemini 则在两次运行中都没有给 "Greater Boston Area" 填城市。稳妥的失误只花一分钟;信心十足地填错国家,则会发出一条发错的消息。

这条规则的代价是多出一堆待复核的行。加上规则后,我们的四次运行里,37 行中有 7 到 10 行被标记,主要是四个真正有歧义的地名、"N/A"、"Anywhere" 和那条含两个城市的行。

被标记的行该怎么处理?

这一行写的是 处理方式
有歧义的地名(Portland) 查看简历,或在第一条消息里直接问
两个城市 城市留空,两个都写进备注,在第一条消息里问是哪一个
只有迁往意向 当前所在地留空,给目标地点打标签
区域(Gush Dan、EMEA) 保存区域,城市留空
"Anywhere" 或 "N/A" 留空,不要猜

导入前,手动抽查 20 行。其他杂乱的列也可以用同样的方法处理:在电子表格中规范职位名称和 ChatGPT 与 Claude 如何处理杂乱的 ATS 导出文件。

This article is general information, not legal advice. Laws differ by country and change often, so consult your lawyer before you rely on it for your situation.

继续阅读