很多人第一次关心「AI 回答里有没有提到我们」,第一反应是找个现成的检测工具,或者自己挑几道题,去豆包、DeepSeek 里各问一遍,先看看现在是什么情况。
问题在于:AI 的回答每天在变、每家不一样、每道题也不一样。自己测的时候,问 5 道题还是 50 道、问 1 天还是 7 天、问 1 家还是 9 家,得出来的「提及率」能差多少?我拿一周的问答记录做了个抽样实验,把这件事算了一遍。
数据来自我用 MaxAEO 跑的一组固定问答:2026-11-20~11-26 这 7 天,9 家国内 AI(Kimi、元宝、豆包、DeepSeek、千问、文心、智谱、讯飞星火、秘塔),99 道固定问题,每天每家各问一遍,共 5,006 条回答(DeepSeek 11-25、11-26 两天没跑出结果)。题目都围绕「怎么出现在 AI 回答里」这件事,有问「有哪些工具」的,也有问「找谁做」「怎么做」的。
「点到一个名字」的口径:回答里出现了跟踪名单里的名字(含别名),名单有 8,000 多个名字。某个名字的「提及率」= 点到它的回答数 ÷ 全部回答数。下文的名字一律用编号。
需要两张表:answers.csv(answer_id, platform, date, prompt)和 said.csv(answer_id, name)。
把 5,006 条回答全部算进去的提及率当成「真实值」,挑高、中、低三个名字:
import numpy as np
import pandas as pd
ans = pd.read_csv("answers.csv") # answer_id, platform, date, prompt
said = pd.read_csv("said.csv") # answer_id, name
rate = said.groupby("name")["answer_id"].nunique() / len(ans)
rate = rate.sort_values(ascending=False)
names = {"高": rate.index[0], "中": (rate - 0.05).abs().idxmin(), "低": (rate - 0.02).abs().idxmin()}
for k, n in names.items():
print(k, n, f"{rate[n]:.1%}")高 N190370 25.6%
中 N186279 5.1%
低 N33072 2.0%模拟「自己测」:从 99 道题里随机抽几道、7 天里随机抽几天、9 家 AI 里随机抽几家,只用抽中的回答算提及率。每种方案重复抽 500 次,看 90% 的结果落在什么范围。
rng = np.random.default_rng(7)
prompts = ans["prompt"].unique()
dates = ans["date"].unique()
ais = ans["platform"].unique()
hits = {k: set(said.loc[said["name"] == n, "answer_id"]) for k, n in names.items()}
def spread(n_q, n_d, n_ai, reps=500):
est = {k: [] for k in names}
for _ in range(reps):
q = rng.choice(prompts, n_q, replace=False)
d = rng.choice(dates, n_d, replace=False)
a = rng.choice(ais, n_ai, replace=False)
ids = ans.loc[ans["prompt"].isin(q) & ans["date"].isin(d) & ans["platform"].isin(a), "answer_id"]
for k in names:
est[k].append(ids.isin(hits[k]).mean())
out = {}
for k in names:
lo, hi = np.nanpercentile(est[k], [5, 95])
out[k] = f"{lo:.1%}~{hi:.1%}"
return out
plans = [(5, 1, 9), (10, 1, 9), (20, 1, 9), (10, 7, 9), (20, 7, 9), (50, 7, 9),
(20, 7, 1), (20, 7, 3), (99, 1, 9), (99, 7, 1)]
rows = [{"题": q, "天": d, "AI": a, **spread(q, d, a)} for q, d, a in plans]
print(pd.DataFrame(rows).to_string(index=False))题 | 天 | AI | 高(真实 25.6%) | 中(真实 5.1%) | 低(真实 2.0%) |
|---|---|---|---|---|---|
5 | 1 | 9 | 5.7%~46.2% | 0.0%~13.8% | 0.0%~7.7% |
10 | 1 | 9 | 12.7%~39.3% | 0.0%~11.3% | 0.0%~5.3% |
20 | 1 | 9 | 16.7%~36.0% | 1.7%~9.2% | 0.0%~4.6% |
10 | 7 | 9 | 13.1%~38.2% | 1.2%~10.3% | 0.6%~3.9% |
20 | 7 | 9 | 17.3%~33.8% | 2.5%~8.4% | 1.0%~3.4% |
50 | 7 | 9 | 21.3%~30.0% | 3.7%~6.5% | 1.4%~2.6% |
20 | 7 | 1 | 4.3%~50.4% | 0.0%~17.3% | 0.0%~7.1% |
20 | 7 | 3 | 13.4%~40.3% | 0.9%~12.0% | 0.0%~5.0% |
99 | 1 | 9 | 24.5%~27.1% | 4.3%~5.7% | 1.1%~3.9% |
99 | 7 | 1 | 5.3%~46.3% | 0.3%~13.8% | 0.4%~7.8% |
几个对比:
把「高」那个名字按 AI、按题、按天拆开:
base = ans.assign(hit=ans["answer_id"].isin(hits["高"]))
print((base.groupby("platform")["hit"].mean() * 100).round(1).sort_values().to_string())
print((base.groupby("prompt")["hit"].mean() * 100).describe()[["min", "25%", "50%", "75%", "max"]].round(1).to_string())
print((base.groupby("date")["hit"].mean() * 100).round(1).to_string())拆法 | 最低 | 最高 |
|---|---|---|
按 AI(9 家) | Kimi 5.3% | 元宝 46.3% |
按题(99 道) | 0.0%(中位数 20.0%) | 90.6% |
按天(7 天) | 24.5% | 27.1% |
所以,一周之内「哪天测」影响很小,「测哪几家」「测哪些题」影响很大。 题可以靠多选几道来平均掉,AI 家数少了却没法补:只测一家,测到的就是那一家的偏好。
想先看看现在是什么情况,不一定要专门的工具,一个表格加上面这几十行 pandas 就能做。我的建议:
局限:抽样是在这一周、这 99 道题里做的,题之间不是完全独立的;真实场景里题是自己挑的、不是随机抽的,挑的题如果偏向某一类,偏差会比表里更大。
下一步我想看看换一批题时,这个范围会不会变。大家如果自己测过,欢迎在评论区分享你的题数和家数。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。