全部文章
寻访与沟通

如何让 Claude 或 Gemini 写出基于技能的布尔搜索式(不要学历和大厂名)

让 Claude 或 Gemini 排除学历、院校、具体雇主和资历词,并把职位名放进一个 OR 组。附两个实测提示词和 4 项检查。

  • Fairer hiring
  • Better hires
  • Saves time

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

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

我们让 Claude 为一个数据分析师(Data Analyst)岗位写布尔搜索式,这个岗位的 JD 里写了学历要求和“一家领先的科技公司”。返回结果中的一部分:

Schools (optional boost): Technion, Tel Aviv University, Hebrew University, Ben-Gurion University, Bar-Ilan University, Reichman University, Weizmann Institute

没人要求加学校。是 JD 里的学历那一行和雇主那一行提了要求,工具照办了。想按技能来搜,就不能只告诉模型要找什么,还要告诉它哪些不能出现。

简短结论: 告诉 Claude 或 Gemini 不要出现学历、院校、具体雇主和资历词,把职位名放进同一个 OR 组并配上能体现实际工作成果的词,同时让它写明每个被去掉的门槛原本代表什么能力。然后手动检查搜索式:在我们的测试中,这些禁用要求是有效的,但换了马甲的条件又回来了。

普通提示词会带进什么

我们在每个工具里把“Write a LinkedIn Boolean search string to find candidates for this job”各运行了三次,并用脚本统计代码块里的学历、专业、院校、雇主和资历词。

搜索式中的学历类词汇数量,每组运行 3 次
普通提示词带规则的提示词ClaudeClaude: 普通提示词 118, 带规则的提示词 0118 → 0GeminiGemini: 普通提示词 70, 带规则的提示词 070 → 0

3 次运行的合计。脚本只统计直白的学历类词汇,不含 Industrial Engineer 或 C-level 这类换了马甲的说法(见各项检查)。

Source: 我们的测试,用脚本统计代码块得出

Show the data
普通提示词带规则的提示词
Claude1180
Gemini700

模板 A:根据岗位生成搜索式

换成你自己的 JD,规则保持不变。

PERSONA
You are a sourcer who finds people by what they can do, not by where they studied or worked.

TASK
Write LinkedIn Boolean search strings for the job below.

CONTEXT
[paste the job description]

RULES
- Build the string from skills and tools (with synonyms) plus words that show the work was actually done (for example "dashboard", "experiment", "forecast").
- Do not use degree names, fields of study, university names, named employers, years of experience or seniority words.
- Use job titles only inside one OR group of at least 8 adjacent titles, including titles from other fields, and never as a required AND.
- Add a section "Credentials I left out" that lists each credential in the job description and the skill evidence that replaces it.

FORMAT
Three strings (broad, balanced, narrow), each in a code block, with one line under each on what it trades off.

RULES 的最后一行最有用。它让模型说明每个门槛原本代表什么能力,这样你就能判断替换是否合理。

模板 B:修改你已有的搜索式

Below is a Boolean string written from a job description that asked for a degree, 5+ years and big-tech employers. Rewrite it so it finds people by skills instead.

[paste your string]

Rules:
- Remove every degree, field of study, named employer and seniority word. Do not put them back in disguise.
- Keep the real skills and add synonyms and proof-of-work words.
- Titles only in one OR group of at least 8 adjacent titles, never required.
- After the string, list in a table what you removed, and what each removed item was standing in for.

在 Claude 重写的版本里,被去掉内容的表格中有类似这样的行:

去掉的内容 原本代表什么 替换为
Google, Meta 在成熟的数据文化中处理海量数据 BigQuery, Snowflake, Redshift, Databricks

运行搜索式之前的四项检查

  1. 职位名。 职位名那一组是不是用 AND 和技能连在一起?这就是一个隐藏的硬性要求。10 次运行中出现了 3 次:Claude 的一次运行(三条搜索式全部如此)和 Gemini 的两次重写,例如 AND ("Data Analyst" OR "BI Analyst" OR ...)。
  2. 换了马甲的条件。 Gemini 有一次把“Industrial Engineer”放进了职位名组,这其实还是学历要求。Claude 的精简版搜索式要求出现 "C-level" 或 executives,理由是“初级人员很少写这些”:资历要求又回来了。
  3. 工作地点。 在加了规则的运行中,Gemini 有 2 次把 ("Tel Aviv" OR Israel) AND SQL 直接写进了关键词。请改用地点筛选,Claude 在普通提示词的回答里就是这样建议的。
  4. 简历长度。 精简版搜索式用 AND 连接了 7 个组,两个工具都提醒说,这样会漏掉简历写得很短的优秀人选。先用宽泛版或均衡版,精简版只用来拉第一轮短名单。

应该搜什么

在我们的测试中,两个工具做了下面这些替换。请对照你自己的岗位逐条核对。

岗位要求 搜这些
统计学学历 "hypothesis testing", "statistical significance"
计算机专业学历 SQL 加数据仓库名称、Python、dbt
5 年以上经验 没什么可搜的:年限无法公平地搜索。要求多项技能同时出现,深度留到筛选环节再判断(例如“主导搭建了实验框架”)
大厂背景 那里用到的工具和指标,比如 funnel, cohort, retention

公平性的意义不止于这个工具:参见基于技能的岗位描述是什么样的和布尔搜索式为什么会出错。

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.

继续阅读