Gemini Cited 25 Sources Across Three Answers. Strip the '#:~:text=' and It Was 10 Pages
本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。
Gemini Cited 25 Sources Across Three Answers. Strip the ’#:~:text=’ and It Was 10 Pages
I run a visa agency in Bali, and in the evenings I build data tools on Apify. One of them asks AI assistants questions and saves the answers as rows: ChatGPT Scraper. It started as ChatGPT-only and now also asks Gemini, Google AI Mode and the AI Overview that sits on top of Google results. The people who use it mostly do “AI visibility” work: which brands an assistant recommends, and which websites it trusts enough to cite. That second question sounds like counting. You take the citations array, group by domain, done. This morning I ran one small test and found out the counting is the hard part.
我在巴厘岛经营一家签证代理机构,晚上则在 Apify 上构建数据工具。其中一个工具负责向 AI 助手提问并将答案保存为数据行,我称之为“ChatGPT 爬虫”。它最初仅支持 ChatGPT,现在也支持 Gemini、Google AI 模式以及位于 Google 搜索结果上方的 AI 概览(AI Overview)。使用该工具的人大多从事“AI 可见度”工作:即分析助手推荐哪些品牌,以及它信任并引用哪些网站。第二个问题听起来像是简单的计数:获取引用数组,按域名分组,搞定。但今天早上我进行了一次小测试,发现计数才是最难的部分。
The run Three prompts, four engines, US / English, from a test account on the Free plan: { “prompts”: [ “best coworking space in Canggu Bali”, “best CRM for startups”, “how do I claim compensation for a delayed flight in the EU” ], “engines”: [“chatgpt”, “gemini”, “google_ai_mode”, “google_ai_overview”], “country”: “United States”, “language”: “English” } That’s 12 prompt-engine pairs. The run took 55 seconds. 11 came back with an answer. The twelfth, AI Overview for the coworking prompt, came back as an error row: Google AI Overview request failed: Internal SE Server Error. (40101). Not charged. Upstream hiccups happen; the point is that the failure is a row you can see and filter, not a silent gap.
这次运行包含三个提示词、四个引擎,使用美国/英语环境,来自一个免费计划的测试账户:{ “prompts”: [ “巴厘岛坎古最好的联合办公空间”, “初创公司最好的 CRM”, “如何申请欧盟航班延误赔偿” ], “engines”: [“chatgpt”, “gemini”, “google_ai_mode”, “google_ai_overview”], “country”: “美国”, “language”: “英语” }。这总共是 12 对提示词-引擎组合。运行耗时 55 秒,其中 11 个返回了答案。第 12 个,即针对联合办公提示词的 AI 概览,返回了一个错误行:Google AI 概览请求失败:内部服务器错误 (40101)。未扣费。上游故障时有发生;关键在于这种失败是一个可见且可过滤的数据行,而不是无声的缺失。
Calling it from code is one request. This waits for the run and returns the dataset: curl -s -X POST \ “https://api.apify.com/v2/acts/lergassy~chatgpt-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN” \ -H “Content-Type: application/json” \ -d ’{“prompts”:[“best CRM for startups”],“engines”:[“chatgpt”,“gemini”],“country”:“US”,“language”:“en”}’ The 11 answers carried 71 citations in total. Here is what was inside those 71.
通过代码调用只需一个请求。它会等待运行结束并返回数据集:curl -s -X POST \ “https://api.apify.com/v2/acts/lergassy~chatgpt-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN” \ -H “Content-Type: application/json” \ -d ’{“prompts”:[“初创公司最好的 CRM”],“engines”:[“chatgpt”,“gemini”],“country”:“US”,“language”:“en”}‘。这 11 个答案总共包含 71 条引用。以下是这 71 条引用的具体内容。
-
Gemini cites the same page five times Gemini’s answer to the flight-compensation question had 10 citations. Five of them were this page: https://heygyro.com/blog/how-to-claim-flight-compensation#:~:text=What%20evidenc… https://heygyro.com/blog/how-to-claim-flight-compensation#:~:text=Gather%20these… https://heygyro.com/blog/how-to-claim-flight-compensation#:~:text=How%20do%20I%2… https://heygyro.com/blog/how-to-claim-flight-compensation#:~:text=*%20State%20yo… https://heygyro.com/blog/how-to-claim-flight-compensation#:~:text=Cooperative%20… Gemini links each sentence of its answer to the exact passage it came from, using a text fragment (#:~:text=). For a reader it’s nice: the link jumps to the highlighted sentence. For counting it’s a trap: each fragment is a distinct URL string, so a naive len(set(urls)) counts one page five times.
-
Gemini 多次引用同一页面。Gemini 对航班赔偿问题的回答包含 10 条引用,其中 5 条指向同一个页面:https://heygyro.com/blog/how-to-claim-flight-compensation#:~:text=What%20evidenc…(此处省略其余链接)。Gemini 使用文本片段 (#:~:text=) 将答案中的每个句子链接到其来源的确切段落。对于读者来说,这很方便:链接会跳转到高亮显示的句子。但对于计数来说,这是一个陷阱:每个片段都是一个不同的 URL 字符串,因此简单的 len(set(urls)) 会将同一个页面计算五次。
Across all three Gemini answers: 25 citations, 10 unique pages. Coworking: 9 citations, 3 pages (6 of the 9 were balisquad.com). CRM: 6 citations, 3 pages. Flights: 10 citations, 4 pages. ChatGPT, AI Mode and AI Overview had no such duplicates in this run: their citation counts equalled their unique-page counts. So if you compare engines by “number of sources cited”, Gemini looks two and a half times more generous than it is. The fix is one line, and you want it before any counting: def page(url): return url.split(”#”, 1)[0]
在 Gemini 的所有三个答案中:共有 25 条引用,但只有 10 个唯一页面。联合办公:9 条引用,3 个页面(其中 6 条来自 balisquad.com)。CRM:6 条引用,3 个页面。航班:10 条引用,4 个页面。ChatGPT、AI 模式和 AI 概览在本次运行中没有出现此类重复:它们的引用计数等于唯一页面计数。因此,如果你通过“引用来源数量”来比较引擎,Gemini 看起来比实际情况慷慨了 2.5 倍。解决方法只需一行代码,而且要在计数前执行:def page(url): return url.split(”#”, 1)[0]
-
Google cites google.com 11 of the 71 citations had the domain google.com. They came from the two Google engines, and they are two different things. AI Overview wraps some sources in a redirect: https://google.com/goto?url=CAESawHEIk… The url parameter is an opaque token, not the destination. The title survives, so you can see what it was: “Compensation for flight delay to/from EU country - Reddit”, “Compensation for Delayed or Cancelled Flights: Up to €600! - EUclaim”. 6 of AI Overview’s 22 citations looked like this. If you group by domain, Reddit and EUclaim disappear and google.com becomes one of the most-cited sites on air passenger rights.
-
Google 引用了 google.com。71 条引用中有 11 条的域名是 google.com。它们来自两个 Google 引擎,且性质不同。AI 概览将一些来源包装在重定向中:https://google.com/goto?url=CAESawHEIk…。url 参数是一个不透明的令牌,而非目标地址。标题得以保留,因此你可以看到它原本是什么:“欧盟国家往返航班延误赔偿 - Reddit”,“航班延误或取消赔偿:最高 600 欧元!- EUclaim”。AI 概览的 22 条引用中有 6 条是这种情况。如果按域名分组,Reddit 和 EUclaim 就会消失,而 google.com 反而成了航空旅客权利方面被引用最多的网站之一。
AI Mode did something else on the coworking question: 5 of its 6 citations were https://www.google.com/searchviewer/… links titled PUCO Rooftop Coworking space & Eatery, Tropical Nomad Coworking Space, Workmates Coworking Space and Cafe Canggu by Wonderspace. Those are Google’s own place cards. The businesses are real; the “source” is Google Maps, not their websites. The sixth citation was zin.world. So for local and some informational prompts, a chunk of what Google’s AI “cites” is Google. For an AI-visibility report that’s a real finding (the assistant leaned on Maps, not on anyone’s blog), but it should be its own category, not a domain in the leaderboard. In my own analysis I now split citations into three buckets: external page, Google place card, Google redirect with title only.
AI 模式在联合办公问题上表现不同:其 6 条引用中有 5 条是 https://www.google.com/searchviewer/… 链接,标题分别为 PUCO Rooftop Coworking space & Eatery、Tropical Nomad Coworking Space 等。这些是 Google 自己的地点卡片。企业是真实的,但“来源”是 Google 地图,而非它们的网站。第六条引用是 zin.world。因此,对于本地和某些信息类提示词,Google AI “引用”的内容中有很大一部分其实是 Google 自己。对于 AI 可见度报告来说,这是一个重要的发现(助手依赖的是地图,而不是任何人的博客),但这应该作为一个独立的类别,而不是排行榜上的一个域名。在我的分析中,我现在将引用分为三类:外部页面、Google 地点卡片、仅带标题的 Google 重定向。
-
ChatGPT read 12 pages and cited none ChatGPT’s answer to the coworking question had zero citations. It still searched: usedWebSearch is true, the search query it ran was best coworking spaces in Canggu Bali 2026 facilities wifi community prices, and searchResults held 12 pages from 10 domains: mindseat.co, balisquad.com, thehoneycombers.com, explorecanggu.com, nomadsinasia.com and others. It answered with a ranked list (BWork Bali first, then Tropical Nomad, then PUCO Rooftop) with day-pass prices in rupiah, and attached six local business cards: address, phone, and for some a rating. Tropical Nomad’s card says 4.5 from 403 reviews; BWork’s has the rating empty.
-
ChatGPT 读取了 12 个页面却未引用任何一个。ChatGPT 对联合办公问题的回答引用数为零。它确实进行了搜索:usedWebSearch 为 true,它运行的搜索查询是“best coworking spaces in Canggu Bali 2026 facilities wifi community prices”,搜索结果包含了来自 10 个域名的 12 个页面:mindseat.co、balisquad.com、thehoneycombers.com 等。它给出了一个排名列表(BWork Bali 第一,其次是 Tropical Nomad,然后是 PUCO Rooftop),附带了印尼盾的日票价格,并附加了六张本地商业卡片:地址、电话,部分还有评分。Tropical Nomad 的卡片显示 403 条评论评分为 4.5;BWork 的评分则为空。
On the CRM question it did cite, 8 sources, but the overlap with what it read was small. Its search returned 12 pages; only 2 of the 8 cited domains (stackbytrade.com, stacknpilot.com) were among them. Five of the 8 citations were the vendors’ own sites: hubspot.com, attio.com, pipedrive.com, zoho.com, salesforce.com. The other 10 domains it read (spotsaas.com, techrepublic.com, softwarecompare.net and so on) were not cited at all. If you only look at citations, the review sites that shaped the answer are invisible. That’s why the scraper keeps searchResults and fanOutQueries as separate fields: “what it read” and “what it showed” are different lists, and for GEO work the first one is often the more useful.
在 CRM 问题上,它确实引用了 8 个来源,但与它读取的内容重叠度很小。它的搜索返回了 12 个页面;8 个被引用域名中只有 2 个(stackbytrade.com, stacknpilot.com)在其中。8 条引用中有 5 条是供应商自己的网站:hubspot.com, attio.com, pipedrive.com, zoho.com, salesforce.com。它读取的其他 10 个域名(spotsaas.com, techrepublic.com, softwarecompare.net 等)完全没有被引用。如果你只看引用,那些塑造了答案的评论网站就不可见了。这就是为什么爬虫将 searchResults 和 fanOutQueries 作为独立字段保留的原因:“它读取的内容”和“它展示的内容”是不同的列表,对于 GEO(地理优化)工作来说,前者往往更有用。