所以这是我的问题:
我目前正在使用 Google 的自定义搜索 API,它可以提取任何给定搜索查询的前 10 个结果。例如,如果我搜索“什么是 SDLC”,它将返回前 10 个网站的元数据,并且仅返回前 10 个网站。它不包括谷歌对查询的响应,这正是我最初的目标。
我的目标是采用 Google(生成式 AI)给出的定义并以编程方式使用它,但问题是它在 API 响应中不包含 Google 的定义。下面是我正在讨论的查询的第一个索引。
"kind": "customsearch#result",
"title": "What is SDLC? - Software Development Lifecycle Explained - AWS",
"htmlTitle": "<b>What is SDLC</b>? - Software Development Lifecycle Explained - AWS",
"link": "https://aws.amazon.com/what-is/sdlc/",
"displayLink": "aws.amazon.com",
"snippet": "The software development lifecycle (SDLC) methodology provides a systematic management framework with specific deliverables at every stage of the software ...",
"htmlSnippet": "The software development lifecycle (<b>SDLC</b>) methodology provides a systematic management framework with specific deliverables at every stage of the software ...",
"formattedUrl": "https://aws.amazon.com/what-is/sdlc/",
"htmlFormattedUrl": "https://aws.amazon.com/<b>what-is/sdlc</b>/",
我不确定是否还有另一个必须访问的 API,但我假设它是可以访问的,因为我只是检索所有用户已经可用的信息。任何建议将不胜感激,谢谢。
我尝试过搜索其他可能启用或扩大搜索类型的参数,但我找不到任何适用于生成人工智能的内容。以下是可用的参数:https://developers.google.com/custom-search/v1/reference/rest/v1/cse/list
您可以尝试访问维基百科的 api。