更新日志新功能

隆重推出 Source Influence

Source Influence
来源影响力结果:高亮的回答片段对应到引用页面的段落,并附有洞察

Source Influence 把 AI 回答的每个部分与引用页面上对应的段落连接起来,并为每处对应附上简短说明。

获得的结果

  • links:引用页面中对应的段落,连接到它所对应的回答片段,并附一句说明。
  • sources:每个引用在结果中包含的页面段落;读取失败的页面会以 error 说明原因。
  • insights:对这些连接的简短总结,每条总结都标明所依据的连接。

工作原理

发送回答及其引用的 URL。Source Influence 会读取每个页面,把段落与回答进行比对,并以回答中的字符范围返回每处对应,方便你高亮回答片段并在旁边展示来源段落。

一次分析最多覆盖 100 个引用和 200,000 个字符的回答。你手头已有的页面正文可以放进 citations[].body,其余页面由我们抓取。

应用场景

  • 找出推荐竞争对手的回答用到了哪些竞品页面。
  • 查看你的哪些段落进入了 AI 回答,以及哪些页面需要加强。
  • 逐段向客户展示回答背后的依据。

发送请求

在 Authorization 请求头中带上 API 密钥发送请求。

curl -X POST https://api.querying.ai/v1/source-influence \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "answer": "Here are several **nearby cafés that look particularly suitable for laptop work**, based on current local listings and work-friendly details:\n\n- The Lost Draft — **0.2 km away**. Laptop-friendly, with Wi-Fi, comfortable seating, and larger tables. …",
    "citations": [
      { "url": "https://awifiplace.com/cities/new-york" },
      {
        "url": "https://www.theinfatuation.com/new-york/guides/coffee-shops-nyc-for-doing-work"
      }
    ],
    "country": "US"
  }'

请求字段

answerstring必填
要分析的 AI 回答,保持 Markdown 原样,最多 200,000 个字符。结果中的每个区间都指向这段文本。
citationsarray必填
回答引用的页面,1 到 100 个。每个包含 url,可选附带页面正文 body。
countrystring
读取引用页面所用的国家。默认 US。
webhook.urlstring
你服务器上的 HTTPS 地址。任务完成后立即把结果推送到这里。
idempotencyKeystring
你为请求设定的 ID。每个键在账户内对应一个任务,因此重试发送后仍是同一个任务。

响应

完成的任务如下所示,已截取部分内容。

JSON
{
  "success": true,
  "task": {
    "id": "1d0521d6-26fe-4fbf-9e54-3a97c0e566a3",
    "taskType": "SOURCE_INFLUENCE",
    "status": "COMPLETED",
    "createdAt": "2026-10-02T15:44:12.823Z"
  },
  "credits": { "creditsToCharge": 133, "creditsCharged": 133 },
  "response": {
    "answer": "Here are several **nearby cafés that look particularly suitable for laptop work**, based on current local listings and work-friendly details:\n…",
    "sources": [
      {
        "id": "s0",
        "url": "https://awifiplace.com/cities/new-york",
        "paragraphs": [
          {
            "id": "s0p4",
            "text": "100 Cafés to Work in New York\n\nCarefully curated from Google reviews: All locations offer WiFi and are verified as laptop-friendly by remote …"
          }
        ]
      }
    ],
    "links": [
      {
        "id": "l0",
        "paragraphId": "s0p4",
        "answerRanges": [
          { "start": 0, "end": 141 },
          { "start": 179, "end": 247 },
          { "start": 248, "end": 288 },
          { "start": 869, "end": 938 }
        ],
        "explanation": "The page describes 100 New York cafés as offering WiFi and verified as laptop-friendly by remote workers, supporting their suitability for laptop work and Wi-Fi use."
      }
    ],
    "insights": [
      {
        "summary": "The recommendations are best read as promising laptop-work options, not guaranteed workspaces: the underlying guides rely on reported Wi‑Fi and work-friendly listings, while noting that connection quality, outlets, and seating can vary.",
        "linkIds": ["l0", "l2", "l3", "l4", "l6", "l7", "l8"]
      }
    ]
  }
}
task.statusstring
依次为 QUEUED、PROCESSING,最终为附带回答的 COMPLETED 或附带 error 的 FAILED。
credits.creditsChargedinteger
已完成任务扣除的积分。失败的任务为 0。
response.answerstring
你提交的回答原文。区间是这段文本的 UTF-16 偏移量。
response.sourcesarray
每个引用页面一条,含 url 和结果中的 paragraphs(各含 id 与 text)。
response.linksarray
每个链接把一个段落与其对应的 answerRanges 以及一句话的 explanation 配对。
response.insightsarray
对链接整体含义的简短总结,并用 linkIds 标明依据的链接。

获取结果

请求会立即返回 status 为 QUEUED 的任务。用 GET /v1/async/task/{id} 轮询,直到 status 变为 COMPLETED 或 FAILED;或者加上 webhook.url,在服务器上接收同样的 task、credits 和 response。任务结束后,结果保留 24 小时供查询。

curl https://api.querying.ai/v1/async/task/$TASK_ID \
  -H "Authorization: Bearer $QUERYING_API_KEY"

价格

Source Influence 按分析规模计价。任务开始时预留积分,结束时结算,你只为实际运行的分析付费。

更多更新

接收最新消息

通过邮件接收产品更新。

RSS 订阅