AIFeed

Show HN:WikiVectors——让任何 LLM 更聪明

Translation(model translation, not the source's own text)

用今天的维基百科让任何 AI 更聪明。

AI 模型在诞生的那一天就停止学习了。WikiVectors 是一个维基百科搜索 API,能为每个问题把正确的段落连同来源一起交给它们。我们做了测试。以下是发生的变化。

试一试。无需密钥。

选一个调用,输入内容,看看真实 API 会返回什么。

为问题找到最合适的段落。计为 1 次搜索。

想让我们在页面发生变化时通知你?POST /v1/watches 会向你自己的 URL 发送一个带签名的 POST。查看文档。

按含义查找

用平实的语言提问。精确名称仍然优先。

可直接引用

每个结果都带有链接、确切的页面版本和许可声明。

永不陈旧

维基百科上的编辑会在一小时内显示出来。

纯 HTTP 或 MCP

一个端点、一种错误格式、一个 OpenAPI 文件。或者把它作为 MCP server 接入 AI agent。

你的第一次调用

将你的密钥作为 Bearer token 发送。limit 为 1–20(默认 5)。


        curl https://wikivectors.com/v1/search \
  -H "Authorization: Bearer $WIKIVECTORS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "what causes the northern lights", "limit": 3}'
      

        import os, requests

r = requests.post(
    "https://wikivectors.com/v1/search",
    headers={"Authorization": f"Bearer {os.environ['WIKIVECTORS_KEY']}"},
    json={"query": "what causes the northern lights", "limit": 3},
)
for hit in r.json()["results"]:
    print(hit["title"], hit["url"])
      

        const r = await fetch("https://wikivectors.com/v1/search", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.WIKIVECTORS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ query: "what causes the northern lights", limit: 3 }),
});
const { results } = await r.json();
      

        body := strings.NewReader(`{"query": "what causes the northern lights", "limit": 3}`)
req, _ := http.NewRequest("POST", "https://wikivectors.com/v1/search", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("WIKIVECTORS_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
      

回答 5

最短的正确回答,附带来源。

按标题查找页面 每次 1 个

知道名称?一次最多获取 20 个页面。

变更与监视

查看编辑了什么,或者让我们来通知你。

Claude、Cursor、VS Code

用一行代码将 WikiVectors 添加为 MCP server。

阅读完整文档

定价

无订阅。只为用量付费。

免费

  • 无需信用卡
  • 完整 API

按量付费

  • 从 $10 起购买 credits
  • Credits 永不过期
  • 无月度账单

用量版

  • 更高的速率限制
  • 发邮件给我们,我们来配置

获取你的 API 密钥

告诉我们你的邮箱。我们会发送你的密钥,每月附带 1,000 次免费搜索。已有密钥?我们会改为给你发送一封登录链接邮件,这样你的密钥可以继续使用。

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗