{"id":29541,"date":"2025-03-28T23:50:06","date_gmt":"2025-03-28T15:50:06","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=29541"},"modified":"2025-07-17T07:52:09","modified_gmt":"2025-07-16T23:52:09","slug":"tavily","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/ja\/tavily\/","title":{"rendered":"Tavily\uff1a\u4e3aAI\u63d0\u4f9b\u5b9e\u65f6\u4fe1\u606f\u641c\u7d22API\u670d\u52a1"},"content":{"rendered":"<p>Tavily \u662f\u4e00\u4e2a\u4e13\u4e3a AI \u8bbe\u8ba1\u7684\u641c\u7d22\u5de5\u5177\uff0c\u6838\u5fc3\u76ee\u6807\u662f\u5e2e\u52a9\u5f00\u53d1\u8005\u548c\u5927\u6a21\u578b\u83b7\u53d6\u5b9e\u65f6\u3001\u51c6\u786e\u7684\u5728\u7ebf\u4fe1\u606f\u3002\u5b83\u4e0d\u50cf\u4f20\u7edf\u641c\u7d22\u5f15\u64ce\u90a3\u6837\u9762\u5411\u666e\u901a\u7528\u6237\uff0c\u800c\u662f\u4e3a AI \u4ee3\u7406\u548c\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u91cf\u8eab\u6253\u9020\u3002Tavily \u901a\u8fc7\u63d0\u4f9b\u5feb\u901f\u3001\u53ef\u9760\u7684\u641c\u7d22\u7ed3\u679c\uff0c\u652f\u6301 AI \u5e94\u7528\u66f4\u7cbe\u51c6\u5730\u56de\u7b54\u95ee\u9898\u6216\u5b8c\u6210\u4efb\u52a1\u3002\u7f51\u7ad9\u7531 AlphaAI Technologies Inc. \u8fd0\u8425\uff0c\u6ce8\u91cd\u6570\u636e\u7684\u771f\u5b9e\u6027\u548c\u6765\u6e90\u53ef\u4fe1\u5ea6\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7 API \u8f7b\u677e\u5c06 Tavily \u96c6\u6210\u5230\u81ea\u5df1\u7684\u9879\u76ee\u4e2d\uff0c\u9002\u5408\u4e2a\u4eba\u5f00\u53d1\u8005\u6216\u4f01\u4e1a\u4f7f\u7528\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-29542\" title=\"Tavily\uff1a\u4e3aAI\u63d0\u4f9b\u5b9e\u65f6\u4fe1\u606f\u641c\u7d22API\u670d\u52a1-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/211fe90136980f1.png\" alt=\"Tavily\uff1a\u4e3aAI\u63d0\u4f9b\u5b9e\u65f6\u4fe1\u606f\u641c\u7d22API\u670d\u52a1-1\" width=\"769\" height=\"470\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/211fe90136980f1.png 936w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/211fe90136980f1-768x469.png 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/211fe90136980f1-18x12.png 18w\" sizes=\"auto, (max-width: 769px) 100vw, 769px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u5b9e\u65f6\u641c\u7d22<\/strong>\uff1a\u4ece\u7f51\u7edc\u4e0a\u6293\u53d6\u6700\u65b0\u4fe1\u606f\uff0c\u786e\u4fdd AI \u83b7\u53d6\u7684\u6570\u636e\u4e0d\u8fc7\u65f6\u3002<\/li>\n<li><strong>API \u96c6\u6210<\/strong>\uff1a\u63d0\u4f9b\u7b80\u5355\u6613\u7528\u7684 API\uff0c\u8ba9\u5f00\u53d1\u8005\u5feb\u901f\u63a5\u5165\u641c\u7d22\u529f\u80fd\u3002<\/li>\n<li><strong>\u5185\u5bb9\u63d0\u53d6<\/strong>\uff1a\u652f\u6301\u4ece\u6307\u5b9a\u7f51\u9875\u63d0\u53d6\u6587\u672c\u548c\u56fe\u7247\uff0c\u65b9\u4fbf\u6570\u636e\u5904\u7406\u3002<\/li>\n<li><strong>\u667a\u80fd\u5efa\u8bae<\/strong>\uff1a\u6839\u636e\u67e5\u8be2\u63d0\u4f9b\u76f8\u5173\u95ee\u9898\u5efa\u8bae\uff0c\u5e2e\u52a9 AI \u6df1\u5165\u6316\u6398\u4fe1\u606f\u3002<\/li>\n<li><strong>\u591a\u9886\u57df\u652f\u6301<\/strong>\uff1a\u8986\u76d6\u65b0\u95fb\u3001\u91d1\u878d\u7b49\u591a\u4e2a\u9886\u57df\uff0c\u6ee1\u8db3\u4e0d\u540c\u9700\u6c42\u3002<\/li>\n<li><strong>\u5f00\u6e90\u652f\u6301<\/strong>\uff1a\u4e0e\u5f00\u6e90\u9879\u76ee\u5982 GPT Researcher \u5408\u4f5c\uff0c\u63d0\u4f9b\u514d\u8d39\u5de5\u5177\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<p>Tavily \u7684\u4f7f\u7528\u4e3b\u8981\u56f4\u7ed5\u5176 API \u5c55\u5f00\uff0c\u9002\u5408\u6709\u4e00\u5b9a\u7f16\u7a0b\u57fa\u7840\u7684\u7528\u6237\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u7684\u64cd\u4f5c\u6307\u5357\uff1a<\/p>\n<h3>\u5982\u4f55\u5f00\u59cb\u4f7f\u7528<\/h3>\n<ol>\n<li><strong>\u6ce8\u518c\u8d26\u53f7<\/strong><br \/>\n\u6253\u5f00\u00a0<code>https:\/\/tavily.com\/<\/code>\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u201cSign Up\u201d\u6309\u94ae\u3002\u8f93\u5165\u90ae\u7bb1\u548c\u5bc6\u7801\uff0c\u5b8c\u6210\u6ce8\u518c\u3002\u6ce8\u518c\u540e\uff0c\u4f60\u4f1a\u6536\u5230\u4e00\u5c01\u786e\u8ba4\u90ae\u4ef6\uff0c\u70b9\u51fb\u94fe\u63a5\u6fc0\u6d3b\u8d26\u53f7\u3002<\/li>\n<li><strong>\u83b7\u53d6 API \u5bc6\u94a5<\/strong><br \/>\n\u767b\u5f55\u540e\uff0c\u8fdb\u5165\u00a0<code>https:\/\/app.tavily.com\/<\/code>\u00a0\u7684\u4eea\u8868\u76d8\uff08Dashboard\uff09\u3002\u5728\u201cAPI Keys\u201d\u90e8\u5206\uff0c\u70b9\u51fb\u201cGenerate\u201d\u751f\u6210\u4e00\u4e2a\u65b0\u7684 API \u5bc6\u94a5\u3002\u5bc6\u94a5\u662f\u4e00\u4e32\u7c7b\u4f3c\u00a0<code>tvly-YOUR_API_KEY<\/code>\u00a0\u7684\u5b57\u7b26\uff0c\u590d\u5236\u5e76\u4fdd\u5b58\u597d\uff0c\u5b83\u662f\u8c03\u7528 API \u7684\u51ed\u8bc1\u3002<\/li>\n<li><strong>\u5b89\u88c5\u5ba2\u6237\u7aef\uff08\u4ee5 Python \u4e3a\u4f8b\uff09<\/strong><br \/>\nTavily \u63d0\u4f9b Python SDK\uff0c\u5b89\u88c5\u975e\u5e38\u7b80\u5355\u3002\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ol>\n<pre><code>pip install tavily-python\r\n<\/code><\/pre>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u4f7f\u7528 Tavily \u7684\u529f\u80fd\u3002<\/p>\n<ol start=\"4\">\n<li><strong>\u57fa\u672c\u641c\u7d22\u64cd\u4f5c<\/strong><br \/>\n\u5728 Python \u4e2d\u8fd0\u884c\u4ee5\u4e0b\u4ee3\u7801\uff0c\u6d4b\u8bd5\u641c\u7d22\u529f\u80fd\uff1a<\/li>\n<\/ol>\n<pre><code>from tavily import TavilyClient\r\nclient = TavilyClient(api_key=\"tvly-YOUR_API_KEY\")\r\nresponse = client.search(\"2025\u5e74\u6700\u65b0\u79d1\u6280\u8d8b\u52bf\")\r\nprint(response)\r\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u641c\u7d22\u7ed3\u679c\u7684\u5b57\u5178\uff0c\u91cc\u9762\u6709\u6807\u9898\u3001\u94fe\u63a5\u548c\u5185\u5bb9\u7247\u6bb5\u3002\u514d\u8d39\u8d26\u6237\u6bcf\u6708\u6709 1000 \u6b21\u641c\u7d22\u989d\u5ea6\uff0c\u8db3\u591f\u4e2a\u4eba\u6d4b\u8bd5\u4f7f\u7528\u3002<\/p>\n<h3>\u7279\u8272\u529f\u80fd\u64cd\u4f5c<\/h3>\n<ul>\n<li><strong>\u63d0\u53d6\u7f51\u9875\u5185\u5bb9<\/strong><br \/>\n\u5982\u679c\u4f60\u60f3\u4ece\u7279\u5b9a\u7f51\u9875\u63d0\u53d6\u4fe1\u606f\uff0c\u53ef\u4ee5\u4f7f\u7528\u00a0<code>extract<\/code>\u00a0\u65b9\u6cd5\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ul>\n<pre><code>urls = [\"https:\/\/en.wikipedia.org\/wiki\/Artificial_intelligence\"]\r\nresponse = client.extract(urls=urls, include_images=True)\r\nprint(response[\"results\"][0][\"raw_content\"])\r\n<\/code><\/pre>\n<p>\u8fd9\u4f1a\u8fd4\u56de\u6307\u5b9a\u7f51\u9875\u7684\u6587\u672c\u5185\u5bb9\u548c\u56fe\u7247\u94fe\u63a5\uff0c\u6700\u591a\u652f\u6301 20 \u4e2a URL \u540c\u65f6\u63d0\u53d6\u3002<\/p>\n<ul>\n<li><strong>\u667a\u80fd\u5efa\u8bae\u4e0e\u6df1\u5165\u641c\u7d22<\/strong><br \/>\n\u5728\u641c\u7d22\u65f6\uff0c\u8bbe\u7f6e\u00a0<code>include_answer=True<\/code>\uff0cTavily \u4f1a\u5c1d\u8bd5\u76f4\u63a5\u56de\u7b54\u4f60\u7684\u95ee\u9898\uff0c\u5e76\u63d0\u4f9b\u76f8\u5173\u5efa\u8bae\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ul>\n<pre><code>response = client.search(\"AI\u7684\u53d1\u5c55\u5386\u53f2\", include_answer=True)\r\nprint(response[\"answer\"])\r\n<\/code><\/pre>\n<p>\u8fd4\u56de\u7ed3\u679c\u4e2d\u4f1a\u6709\u7b80\u6d01\u7684\u7b54\u6848\u548c\u8fdb\u4e00\u6b65\u63a2\u7d22\u7684\u5efa\u8bae\u95ee\u9898\u3002<\/p>\n<h3>\u64cd\u4f5c\u6d41\u7a0b\u8be6\u89e3<\/h3>\n<ol>\n<li><strong>\u914d\u7f6e\u73af\u5883<\/strong><br \/>\n\u786e\u4fdd\u4f60\u7684\u7535\u8111\u5df2\u5b89\u88c5 Python 3.6 \u6216\u4ee5\u4e0a\u7248\u672c\u3002\u5982\u679c\u9700\u8981\u4ee3\u7406\uff0c\u53ef\u4ee5\u5728\u521d\u59cb\u5316\u5ba2\u6237\u7aef\u65f6\u6dfb\u52a0\uff1a<\/li>\n<\/ol>\n<pre><code>client = TavilyClient(api_key=\"tvly-YOUR_API_KEY\", proxies={\"https\": \"http:\/\/your_proxy\"})\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li><strong>\u6d4b\u8bd5 API<\/strong><br \/>\nTavily \u63d0\u4f9b\u4e86\u4e00\u4e2a API Playground\uff08<code>https:\/\/docs.tavily.com\/<\/code>\uff09\uff0c\u4f60\u53ef\u4ee5\u5728\u7f51\u9875\u4e0a\u76f4\u63a5\u8f93\u5165\u67e5\u8be2\uff0c\u67e5\u770b\u8fd4\u56de\u7ed3\u679c\u7684\u683c\u5f0f\u3002\u8fd9\u6837\u53ef\u4ee5\u5148\u719f\u6089\u6570\u636e\u7ed3\u6784\uff0c\u518d\u5199\u4ee3\u7801\u3002<\/li>\n<li><strong>\u5904\u7406\u7ed3\u679c<\/strong><br \/>\n\u641c\u7d22\u7ed3\u679c\u4ee5 JSON \u683c\u5f0f\u8fd4\u56de\uff0c\u5305\u542b\u00a0<code>results<\/code>\uff08\u641c\u7d22\u6761\u76ee\uff09\u3001<code>images<\/code>\uff08\u76f8\u5173\u56fe\u7247\uff09\u548c\u00a0<code>response_time<\/code>\uff08\u54cd\u5e94\u65f6\u95f4\uff09\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u9700\u8981\u63d0\u53d6\u7279\u5b9a\u5b57\u6bb5\uff0c\u6bd4\u5982\u53ea\u53d6\u524d 5 \u4e2a\u7ed3\u679c\uff1a<\/li>\n<\/ol>\n<pre><code>results = response[\"results\"][:5]\r\nfor item in results:\r\nprint(f\"\u6807\u9898: {item['title']}, \u94fe\u63a5: {item['url']}\")\r\n<\/code><\/pre>\n<ol start=\"4\">\n<li><strong>\u9ad8\u7ea7\u7528\u6cd5<\/strong><br \/>\n\u5982\u679c\u9700\u8981\u9650\u5236\u641c\u7d22\u8303\u56f4\uff0c\u53ef\u4ee5\u7528\u00a0<code>include_domains<\/code>\u00a0\u53c2\u6570\u3002\u4f8b\u5982\u53ea\u641c\u7d22\u7ef4\u57fa\u767e\u79d1\uff1a<\/li>\n<\/ol>\n<pre><code>response = client.search(\"AI\u5b9a\u4e49\", include_domains=[\"wikipedia.org\"])\r\n<\/code><\/pre>\n<h3>\u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul>\n<li>\u514d\u8d39\u7248\u6bcf\u6708 1000 \u6b21\u8c03\u7528\uff0c\u8d85\u51fa\u540e\u9700\u5347\u7ea7\u4ed8\u8d39\u8ba1\u5212\u3002<\/li>\n<li>API \u5bc6\u94a5\u4e0d\u8981\u516c\u5f00\u5206\u4eab\uff0c\u907f\u514d\u88ab\u6ee5\u7528\u3002<\/li>\n<li>\u54cd\u5e94\u65f6\u95f4\u901a\u5e38\u5728\u51e0\u79d2\u5185\uff0c\u4f46\u590d\u6742\u67e5\u8be2\u53ef\u80fd\u7a0d\u957f\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u5feb\u901f\u4e0a\u624b Tavily\uff0c\u65e0\u8bba\u662f\u7b80\u5355\u641c\u7d22\u8fd8\u662f\u590d\u6742\u6570\u636e\u63d0\u53d6\uff0c\u90fd\u80fd\u8f7b\u677e\u5b9e\u73b0\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u5e94\u7528\u573a\u666f<\/h2>\n<ol>\n<li><strong>AI \u52a9\u624b\u5f00\u53d1<\/strong><br \/>\n\u5f00\u53d1\u8005\u53ef\u4ee5\u7528 Tavily \u4e3a\u804a\u5929\u673a\u5668\u4eba\u63d0\u4f9b\u5b9e\u65f6\u4fe1\u606f\u652f\u6301\uff0c\u6bd4\u5982\u56de\u7b54\u7528\u6237\u5173\u4e8e\u65b0\u95fb\u6216\u5929\u6c14\u7684\u95ee\u9898\u3002<\/li>\n<li><strong>\u5b66\u672f\u7814\u7a76<\/strong><br \/>\n\u7814\u7a76\u4eba\u5458\u901a\u8fc7 Tavily \u63d0\u53d6\u8bba\u6587\u6216\u7f51\u9875\u5185\u5bb9\uff0c\u5feb\u901f\u6574\u7406\u8d44\u6599\uff0c\u63d0\u9ad8\u6548\u7387\u3002<\/li>\n<li><strong>\u5e02\u573a\u5206\u6790<\/strong><br \/>\n\u4f01\u4e1a\u5229\u7528 Tavily \u641c\u7d22\u7ade\u4e89\u5bf9\u624b\u7684\u6700\u65b0\u52a8\u6001\uff0c\u83b7\u53d6\u91d1\u878d\u6216\u884c\u4e1a\u6570\u636e\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2>QA<\/h2>\n<ol>\n<li><strong>Tavily \u548c\u8c37\u6b4c\u641c\u7d22\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/strong><br \/>\nTavily \u4e13\u4e3a AI \u8bbe\u8ba1\uff0c\u7ed3\u679c\u66f4\u7b80\u6d01\u3001\u7ed3\u6784\u5316\uff0c\u9002\u5408\u7a0b\u5e8f\u5904\u7406\uff1b\u8c37\u6b4c\u641c\u7d22\u9762\u5411\u666e\u901a\u7528\u6237\uff0c\u7ed3\u679c\u66f4\u5e7f\u6cdb\u4f46\u9700\u8981\u624b\u52a8\u7b5b\u9009\u3002<\/li>\n<li><strong>\u514d\u8d39\u7248\u591f\u7528\u5417\uff1f<\/strong><br \/>\n\u6bcf\u6708 1000 \u6b21\u641c\u7d22\u5bf9\u4e2a\u4eba\u5f00\u53d1\u8005\u6216\u5c0f\u9879\u76ee\u8db3\u591f\uff0c\u4f46\u5927\u578b\u5e94\u7528\u9700\u8981\u4ed8\u8d39\u7248\u3002<\/li>\n<li><strong>\u652f\u6301\u4e2d\u6587\u641c\u7d22\u5417\uff1f<\/strong><br \/>\n\u652f\u6301\uff0c\u4f46\u6548\u679c\u53ef\u80fd\u56e0\u7f51\u7edc\u6570\u636e\u6e90\u9650\u5236\u7565\u900a\u4e8e\u82f1\u6587\u641c\u7d22\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Tavily \u662f\u4e00\u4e2a\u4e13\u4e3a AI \u8bbe\u8ba1\u7684\u641c\u7d22\u5de5\u5177\uff0c\u6838\u5fc3\u76ee\u6807\u662f\u5e2e\u52a9\u5f00\u53d1\u8005\u548c\u5927\u6a21\u578b\u83b7\u53d6\u5b9e\u65f6\u3001\u51c6\u786e\u7684\u5728\u7ebf\u4fe1\u606f\u3002\u5b83\u4e0d\u50cf\u4f20\u7edf\u641c\u7d22\u5f15\u64ce\u90a3\u6837\u9762\u5411\u666e\u901a\u7528\u6237\uff0c\u800c\u662f\u4e3a AI \u4ee3\u7406\u548c\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u91cf\u8eab\u6253\u9020\u3002Tavily \u901a\u8fc7\u63d0\u4f9b\u5feb\u901f\u3001\u53ef\u9760\u7684\u641c\u7d22\u7ed3\u679c\uff0c\u652f\u6301 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":32634,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[425,20],"tags":[208],"class_list":["post-29541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-professional","category-tool","tag-aikaifangfuwu"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/29541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/comments?post=29541"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/29541\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media\/32634"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media?parent=29541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/categories?post=29541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/tags?post=29541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}