{"id":30,"date":"2026-03-05T15:17:15","date_gmt":"2026-03-05T15:17:15","guid":{"rendered":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/05\/rag-vs-fine-tuning\/"},"modified":"2026-03-09T04:37:46","modified_gmt":"2026-03-09T04:37:46","slug":"rag-vs-fine-tuning","status":"publish","type":"post","link":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/05\/rag-vs-fine-tuning\/","title":{"rendered":"RAG vs \u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0: LLM\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u4f7f\u3044\u5206\u3051\u5b8c\u5168\u30ac\u30a4\u30c9"},"content":{"rendered":"<p><script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"BlogPosting\",\n  \"headline\": \"RAG <a href=\"https:\/\/blog.rebalai.com\/ja\/2026\/03\/05\/rag-vs-llm\/\" title=\"vs \u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0:\">vs \u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0:<\/a> LLM\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u4f7f\u3044\u5206\u3051\u5b8c\u5168\u30ac\u30a4\u30c9\",\n  \"description\": \"6\u30f6\u6708\u524d\u3001\u30c1\u30fc\u30e0\u3067\u30ab\u30b9\u30bf\u30de\u30fc\u30b5\u30dd\u30fc\u30c8bot\u3092\u672c\u756a\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u3002\u305d\u306ebot\u306f\u81ea\u4fe1\u6e80\u3005\u306b\u300c\u8fd4\u54c1\u671f\u9593\u306f60\u65e5\u3067\u3059\u300d\u3068\u30e6\u30fc\u30b6\u30fc\u306b\u7b54\u3048\u7d9a\u3051\u305f\u3002\u5b9f\u969b\u306f30\u65e5\u3060\u3063\u305f\u30022023\u5e74\u306e\u88fd\u54c1\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3057\u305f\u30e2\u30c7\u30eb\u3067\u3001\u30dd\u30ea\u30b7\u30fc\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u305f\u3053\u3068\u3092\u8ab0\u3082\u2014\u2014\u81ea\u5206\u3082\u542b\u3081\u3066\u2014\u2014\u78ba\u8a8d\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002300\u4ef6\u306e\u30b5\u30dd\u30fc\u30c8\u30c1\",\n  \"url\": \"https:\/\/blog.rebalai.com\/ja\/2026\/03\/05\/rag-vs-fine-tuning\/\",\n  \"datePublished\": \"2026-03-05T15:17:15\",\n  \"dateModified\": \"2026-03-05T17:39:37\",\n  \"inLanguage\": \"ja_JP\",\n  \"author\": {\n    \"@type\": \"Organization\",\n    \"name\": \"RebalAI\",\n    \"url\": \"https:\/\/blog.rebalai.com\/ja\/\"\n  },\n  \"publisher\": {\n    \"@type\": \"Organization\",\n    \"name\": \"RebalAI\",\n    \"logo\": {\n      \"@type\": \"ImageObject\",\n      \"url\": \"https:\/\/blog.rebalai.com\/wp-content\/uploads\/logo.png\"\n    }\n  },\n  \"mainEntityOfPage\": {\n    \"@type\": \"WebPage\",\n    \"@id\": \"https:\/\/blog.rebalai.com\/ja\/2026\/03\/05\/rag-vs-fine-tuning\/\"\n  }\n}\n<\/script><\/p>\n<p>6\u30f6\u6708\u524d\u3001\u30c1\u30fc\u30e0\u3067\u30ab\u30b9\u30bf\u30de\u30fc\u30b5\u30dd\u30fc\u30c8bot\u3092\u672c\u756a\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u3002\u305d\u306ebot\u306f\u81ea\u4fe1\u6e80\u3005\u306b\u300c\u8fd4\u54c1\u671f\u9593\u306f60\u65e5\u3067\u3059\u300d\u3068\u30e6\u30fc\u30b6\u30fc\u306b\u7b54\u3048\u7d9a\u3051\u305f\u3002\u5b9f\u969b\u306f30\u65e5\u3060\u3063\u305f\u30022023\u5e74\u306e\u88fd\u54c1\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3057\u305f\u30e2\u30c7\u30eb\u3067\u3001\u30dd\u30ea\u30b7\u30fc\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u305f\u3053\u3068\u3092\u8ab0\u3082\u2014\u2014\u81ea\u5206\u3082\u542b\u3081\u3066\u2014\u2014\u78ba\u8a8d\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002300\u4ef6\u306e\u30b5\u30dd\u30fc\u30c8\u30c1\u30b1\u30c3\u30c8\u304c\u98db\u3093\u3067\u304d\u3066\u3001\u540c\u50da\u304cQuarterly\u306e\u30ec\u30d3\u30e5\u30fc\u3067\u6065\u3092\u304b\u3044\u305f\u3002<\/p>\n<p>\u305d\u3053\u304b\u3089RAG\u3067\u4f5c\u308a\u76f4\u3057\u3066\u3001\u4eca\u306f\u5b89\u5b9a\u3057\u3066\u52d5\u3044\u3066\u3044\u308b\u3002<\/p>\n<p>\u3053\u306e\u7d4c\u9a13\u304c\u3042\u308b\u304b\u3089\u3001\u300cRAG\u3068\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306f\u30b1\u30fc\u30b9\u30d0\u30a4\u30b1\u30fc\u30b9\u3067\u3059\u300d\u3060\u3051\u3067\u7d42\u308f\u308b\u30d6\u30ed\u30b0\u8a18\u4e8b\u3092\u8aad\u3080\u305f\u3073\u306b\u5c11\u3057\u30a4\u30e9\u30a4\u30e9\u3059\u308b\u3002\u3069\u3061\u3089\u3092\u9078\u3076\u304b\u306b\u306f\u5177\u4f53\u7684\u306a\u7d50\u679c\u304c\u4f34\u3046\u3002\u6bd4\u8f03\u8868\u3088\u308a\u3001\u305d\u306e\u7d50\u679c\u304b\u3089\u5b66\u3093\u3060\u3053\u3068\u306e\u65b9\u304c\u3088\u307b\u3069\u5f79\u306b\u7acb\u3064\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u30012\u3064\u306e\u30d7\u30ed\u30c0\u30af\u30c8\u30673\u3064\u306eLLM\u6a5f\u80fd\u3092\u4f5c\u308a\u300118\u30f6\u6708\u307b\u3069\u3053\u306e\u30c6\u30fc\u30de\u306b\u5411\u304d\u5408\u3063\u3066\u304d\u305f\u7d4c\u9a13\u304b\u3089\u66f8\u304f\u3002<\/p>\n<h2>\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306f\u898b\u305f\u76ee\u3088\u308a\u6b63\u5f53\u5316\u304c\u96e3\u3057\u3044<\/h2>\n<p>\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306f\u3001\u30e2\u30c7\u30eb\u306b\u7279\u5b9a\u306e\u632f\u308b\u821e\u3044\u3092\u3055\u305b\u305f\u3044\u6642\u306e\u81ea\u7136\u306a\u9078\u629e\u80a2\u306b\u898b\u3048\u308b\u3002\u81ea\u793e\u30c7\u30fc\u30bf\u3067\u8a13\u7df4\u3057\u3066\u3001\u30c9\u30e1\u30a4\u30f3\u77e5\u8b58\u3092\u713c\u304d\u8fbc\u3080\u3002\u6700\u521d\u306e\u81ea\u5206\u3082\u305d\u3046\u601d\u3063\u3066\u3044\u305f\u3002<\/p>\n<p>\u793e\u5185\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u3092\u4f5c\u3063\u305f\u6642\u304c\u305d\u306e\u5178\u578b\u3060\u3063\u305f\u300218\u30f6\u6708\u5206\u306ePR\u30b3\u30e1\u30f3\u30c8\u2014\u2014\u30b7\u30cb\u30a2\u30a8\u30f3\u30b8\u30cb\u30a2\u305f\u3061\u306e\u77e5\u898b\u304c\u8a70\u307e\u3063\u305f\u3084\u3064\u2014\u2014\u304c\u3042\u3063\u305f\u3002\u3053\u308c\u306f\u826f\u3044\u8a13\u7df4\u30c7\u30fc\u30bf\u306b\u306a\u308b\u3068\u78ba\u4fe1\u3057\u3066\u3044\u305f\u3002<\/p>\n<p>OpenAI\u306e\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0API\uff08\u5f53\u6642\u306fgpt-3.5-turbo\u30012024\u5e74\u534a\u3070\uff09\u3092\u4f7f\u3044\u30014\u56de\u307b\u3069\u306e\u8a13\u7df4\u3092\u7d4c\u3066\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u304c\u30c1\u30fc\u30e0\u306e\u30ec\u30d3\u30e5\u30fc\u30b9\u30bf\u30a4\u30eb\u306b\u8fd1\u3065\u3044\u3066\u304d\u305f\u3002\u77ed\u304f\u76f4\u63a5\u7684\u306a\u30b3\u30e1\u30f3\u30c8\u3002\u7121\u99c4\u306a\u8912\u3081\u8a00\u8449\u306a\u3057\u3002\u793e\u5185\u30b9\u30bf\u30a4\u30eb\u30ac\u30a4\u30c9\u3078\u306e\u30ea\u30f3\u30af\u4ed8\u304d\u3002\u30c1\u30fc\u30e0\u306e\u53cd\u5fdc\u3082\u60aa\u304f\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u3067\u3001\u305d\u3053\u306b\u65b0\u3057\u3044\u30a8\u30f3\u30b8\u30cb\u30a2\u304c3\u4eba\u5165\u3063\u3066\u304d\u3066\u3001\u30b9\u30bf\u30a4\u30eb\u30ac\u30a4\u30c9\u3082\u66f4\u65b0\u3055\u308c\u305f\u3002\u7a81\u7136\u3001\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3057\u305f\u30e2\u30c7\u30eb\u304c\u53e4\u3044\u6163\u7fd2\u2014\u2014\u660e\u793a\u7684\u306b\u5ec3\u6b62\u3057\u305f\u3084\u3064\u2014\u2014\u3092\u6559\u3048\u59cb\u3081\u305f\u3002\u518d\u8a13\u7df4\u306b\u306f\u30b3\u30b9\u30c8\u304c\u304b\u304b\u308a\u3001\u6570\u65e5\u9593\u306e\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002\u3055\u3089\u306b\u5384\u4ecb\u306a\u306e\u306f\u3001\u65b0\u3057\u3044\u8a13\u7df4\u30c7\u30fc\u30bf\u306e\u30ad\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u81ea\u4f53\u304c\u30bc\u30ed\u30b3\u30b9\u30c8\u3058\u3083\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3002<\/p>\n<p>\u3053\u3053\u3067\u6c17\u3065\u3044\u305f\u672c\u8cea\u7684\u306a\u554f\u984c\uff1a\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306f\u30e2\u30c7\u30eb\u306b\u300c\u3069\u3046\u7b54\u3048\u308b\u304b\u300d\u3092\u6559\u3048\u308b\u306e\u3067\u3042\u3063\u3066\u3001\u300c\u4f55\u3092\u77e5\u3063\u3066\u3044\u308b\u304b\u300d\u3067\u306f\u306a\u3044\u3002\u300c\u7279\u5b9a\u306e\u30c8\u30fc\u30f3\u3067\u8a71\u3059\u300d\u3068\u304b\u300c\u5e38\u306bJSON\u306e\u7279\u5b9a\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3059\u308b\u300d\u3068\u3044\u3046\u7528\u9014\u306a\u3089\u3001\u8907\u96d1\u3055\u306f\u6b63\u5f53\u5316\u3055\u308c\u308b\u3002\u3067\u3082\u300c\u88fd\u54c1\u306b\u3064\u3044\u3066\u6b63\u78ba\u306b\u7b54\u3048\u308b\u300d\u3068\u3044\u3046\u7528\u9014\u306a\u3089\u3001\u30c7\u30fc\u30bf\u306e\u9673\u8150\u5316\u3068\u3044\u3046\u4e0a\u308a\u5742\u3092\u767b\u308a\u7d9a\u3051\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>\u3082\u3046\u4e00\u3064\u898b\u843d\u3068\u3057\u3066\u3044\u305f\u3053\u3068\uff1a\u8a55\u4fa1\u306e\u554f\u984c\u304c\u601d\u3063\u305f\u3088\u308a\u5927\u5909\u3060\u3063\u305f\u3002\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3057\u305f\u30e2\u30c7\u30eb\u304c\u672c\u5f53\u306b\u6539\u5584\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3001\u3069\u3046\u3084\u3063\u3066\u5224\u65ad\u3059\u308b\uff1f\u8a55\u4fa1\u30a4\u30f3\u30d5\u30e9\u306b\u3001\u8a13\u7df4\u81ea\u4f53\u3068\u307b\u307c\u540c\u3058\u304f\u3089\u3044\u306e\u6642\u9593\u3092\u4f7f\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u305d\u308c\u304c\u306a\u3051\u308c\u3070\u3001\u57fa\u672c\u7684\u306b\u52d8\u3067\u9032\u3081\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p><strong>\u3053\u3053\u304b\u3089\u5b66\u3093\u3060\u3053\u3068\uff1a<\/strong> \u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u304c\u6709\u52b9\u306a\u306e\u306f\u3001\u554f\u984c\u304c\u300c\u632f\u308b\u821e\u3044\u300d\u306b\u95a2\u3059\u308b\u3082\u306e\u2014\u2014\u4e00\u8cab\u3057\u305f\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3001\u30c8\u30fc\u30f3\u3001\u30bf\u30b9\u30af\u69cb\u9020\u2014\u2014\u3067\u3001\u305d\u306e\u632f\u308b\u821e\u3044\u304c\u983b\u7e41\u306b\u5909\u308f\u3089\u306a\u3044\u5834\u5408\u3002\u60c5\u5831\u304c\u66f4\u65b0\u3055\u308c\u7d9a\u3051\u308b\u7528\u9014\u306b\u306f\u3001\u6700\u521d\u304b\u3089RAG\u306e\u65b9\u304c\u5408\u3063\u3066\u3044\u308b\u3002<\/p>\n<h2>RAG\u3082\u9280\u306e\u5f3e\u4e38\u3067\u306f\u306a\u304b\u3063\u305f<\/h2>\n<p>\u8fd4\u54c1\u30dd\u30ea\u30b7\u30fc\u306e\u5931\u6557\u306e\u5f8c\u3001RAG\u304c\u5168\u3066\u306e\u7b54\u3048\u3060\u3068\u3044\u3046\u78ba\u4fe1\u3092\u6301\u3061\u3059\u304e\u305f\u3002\u5c11\u3057\u6065\u305a\u304b\u3057\u3044\u304c\u30012\u30f6\u6708\u304f\u3089\u3044\u3001\u3042\u3089\u3086\u308b\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u8b70\u8ad6\u3067\u300cRAG\u4f7f\u3048\u3070\u3044\u3044\u300d\u3068\u8a00\u3044\u7d9a\u3051\u305f\u2014\u2014RAG\u304c\u672c\u5f53\u306b\u82e6\u624b\u306a\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306b\u51fa\u4f1a\u3046\u307e\u3067\u3002<\/p>\n<p>\u5951\u7d04\u66f8\u8981\u7d04\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u3066\u3044\u305f\u3002\u5951\u7d04\u66f8\u3092\u30c1\u30e3\u30f3\u30af\u306b\u5206\u5272\u3057\u3066\u30d9\u30af\u30bf\u30fc\u30b9\u30c8\u30a2\u306b\u4fdd\u5b58\u3057\u3001\u95a2\u9023\u3059\u308b\u6761\u9805\u3092\u53d6\u5f97\u3057\u3066\u30e2\u30c7\u30eb\u306b\u8981\u7d04\u3055\u305b\u308b\u8a2d\u8a08\u3002\u30b7\u30f3\u30d7\u30eb\u306b\u898b\u3048\u305f\u3002\u53d6\u5f97\u90e8\u5206\u306f\u52d5\u3044\u305f\u3002\u554f\u984c\u306f\u3001\u6cd5\u7684\u6587\u66f8\u306b\u306f\u8907\u96d1\u306a\u76f8\u4e92\u53c2\u7167\u304c\u3042\u308b\u2014\u2014\u300c\u7b2c4.2\u6761(b)\u3067\u5b9a\u7fa9\u3055\u308c\u308b\u3068\u304a\u308a\u300d\u2014\u2014\u306e\u306b\u3001\u30c1\u30e3\u30f3\u30af\u6226\u7565\u304c\u305d\u306e\u5b9a\u7fa9\u3092\u53c2\u7167\u5143\u306e\u6761\u9805\u304b\u3089\u5207\u308a\u96e2\u3057\u3066\u3044\u305f\u3053\u3068\u3002\u30e2\u30c7\u30eb\u306f\u4e0d\u5b8c\u5168\u306a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u7b54\u3048\u3066\u3044\u305f\u304c\u3001\u305d\u308c\u304c\u4e0d\u5b8c\u5168\u3060\u3068\u3059\u3089\u8a8d\u8b58\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>RAG\u306e\u54c1\u8cea\u306f\u30c1\u30e3\u30f3\u30af\u3068\u53d6\u5f97\u306e\u6226\u7565\u3067\u6c7a\u307e\u308b\u3002\u3053\u308c\u3092\u3061\u3083\u3093\u3068\u8aac\u660e\u3057\u3066\u3044\u308b\u5165\u9580\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u307b\u3068\u3093\u3069\u306a\u3044\u3002\u6700\u7d42\u7684\u306b\u306f\u3001\u5927\u304d\u3081\u306e\u30c1\u30e3\u30f3\u30af\u3001\u30aa\u30fc\u30d0\u30fc\u30e9\u30c3\u30d7\u3001\u305d\u3057\u3066Cohere\u306ererank API\u3092\u4f7f\u3063\u305f\u518d\u30e9\u30f3\u30ad\u30f3\u30b0\u306e\u30cf\u30a4\u30d6\u30ea\u30c3\u30c9\u30a2\u30d7\u30ed\u30fc\u30c1\u306b\u79fb\u884c\u3057\u305f\u3002\u6539\u5584\u306f\u3057\u305f\u304c\u3001\u305d\u3053\u306b\u5230\u9054\u3059\u308b\u307e\u3067\u6570\u9031\u9593\u304b\u304b\u3063\u305f\u3002<\/p>\n<p>\u65e5\u672c\u8a9e\u7279\u6709\u306e\u843d\u3068\u3057\u7a74\u3082\u3042\u308b\u3002\u82f1\u8a9e\u30b3\u30fc\u30d1\u30b9\u4e2d\u5fc3\u3067\u5b66\u7fd2\u3057\u305fembedding\u30e2\u30c7\u30eb\u3092\u65e5\u672c\u8a9e\u30c6\u30ad\u30b9\u30c8\u306b\u305d\u306e\u307e\u307e\u4f7f\u3046\u3068\u3001\u7cbe\u5ea6\u304c\u843d\u3061\u308b\u3053\u3068\u304c\u3042\u308b\u3002<code>text-embedding-3-small<\/code>\u306f\u65e5\u672c\u8a9e\u3067\u3082\u305d\u308c\u306a\u308a\u306b\u52d5\u304f\u304c\u3001\u65e5\u672c\u8a9e\u6587\u66f8\u304c\u5927\u91cf\u306b\u3042\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f<code>intfloat\/multilingual-e5-large<\/code>\u3092\u8a66\u3059\u4fa1\u5024\u306f\u3042\u308b\u3002\u81ea\u5206\u3067\u76f4\u63a5\u6bd4\u8f03\u3057\u305f\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306b\u3088\u3063\u3066\u5909\u308f\u308b\u3068\u306f\u601d\u3046\u304c\u3001\u982d\u306b\u5165\u308c\u3066\u304a\u3044\u3066\u640d\u306f\u306a\u3044\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089\u30ec\u30a4\u30c6\u30f3\u30b7\u3002\u3059\u3079\u3066\u306e\u30af\u30a8\u30ea\u304c\u30d9\u30af\u30bf\u30fcDB\u3092\u53e9\u304d\u3001\u985e\u4f3c\u691c\u7d22\u3057\u3066\u3001\u30c1\u30e3\u30f3\u30af\u3092\u53d6\u5f97\u3057\u3066\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u8a70\u3081\u8fbc\u307f\u3001\u305d\u3053\u304b\u3089LLM\u306e\u63a8\u8ad6\u304c\u8d70\u308b\u3002\u81ea\u5206\u306e\u74b0\u5883\uff08Pinecone + GPT-4o\uff09\u3067\u306f\u3001\u30e2\u30c7\u30eb\u306e\u63a8\u8ad6\u6642\u9593\u306b\u52a0\u3048\u3066800ms\u301c1.2s\u304c\u4e0a\u4e57\u305b\u3055\u308c\u305f\u3002\u975e\u540c\u671f\u30bf\u30b9\u30af\u306a\u3089\u554f\u984c\u306a\u3044\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306b\u898b\u305b\u305f\u3044\u3082\u306e\u3060\u3068\u3001\u4f53\u611f\u3067\u304d\u308b\u9045\u3055\u306b\u306a\u308b\u3002<\/p>\n<pre><code class=\"language-python\"># \u6700\u521d\u306b\u4f7f\u3063\u3066\u3044\u305f\u53d6\u5f97\u30ed\u30b8\u30c3\u30af\u2014\u2014\u518d\u30e9\u30f3\u30ad\u30f3\u30b0\u306a\u3057\u7248\nfrom pinecone import Pinecone\nfrom openai import OpenAI\n\npc = Pinecone(api_key=&quot;...&quot;)\nindex = pc.Index(&quot;contracts-v2&quot;)\nclient = OpenAI()\n\ndef retrieve_and_answer(query: str, top_k: int = 5) -&gt; str:\n    # \u30af\u30a8\u30ea\u3092embedding\u5316\n    query_embedding = client.embeddings.create(\n        input=query,\n        model=&quot;text-embedding-3-small&quot;\n    ).data[0].embedding\n\n    # \u30b7\u30f3\u30d7\u30eb\u306a\u4e0a\u4f4dK\u4ef6\u53d6\u5f97\u2014\u2014\u518d\u30e9\u30f3\u30ad\u30f3\u30b0\u306a\u3057\n    results = index.query(\n        vector=query_embedding,\n        top_k=top_k,\n        include_metadata=True\n    )\n\n    # \u53d6\u5f97\u3057\u305f\u30c1\u30e3\u30f3\u30af\u304b\u3089\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u69cb\u7bc9\n    context = &quot;\\n\\n---\\n\\n&quot;.join(\n        r[&quot;metadata&quot;][&quot;text&quot;] for r in results[&quot;matches&quot;]\n    )\n\n    # \u30e2\u30c7\u30eb\u304c\u53c2\u7167\u3067\u304d\u308b\u306e\u306f\u3053\u3053\u306b\u5165\u308c\u305f\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3060\u3051\n    # \u91cd\u8981\u306a\u76f8\u4e92\u53c2\u7167\u304c\u30c1\u30e3\u30f3\u30af\u3092\u307e\u305f\u3044\u3067\u5206\u65ad\u3055\u308c\u3066\u3044\u308b\u3068\u3001\u305d\u308c\u306f\u898b\u3048\u306a\u3044\n    response = client.chat.completions.create(\n        model=&quot;gpt-4o&quot;,\n        messages=[\n            {\n                &quot;role&quot;: &quot;system&quot;,\n                &quot;content&quot;: &quot;\u63d0\u4f9b\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u307f\u3092\u3082\u3068\u306b\u56de\u7b54\u3057\u3066\u304f\u3060\u3055\u3044\u3002&quot;\n            },\n            {\n                &quot;role&quot;: &quot;user&quot;,\n                &quot;content&quot;: f&quot;\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8:\\n{context}\\n\\n\u8cea\u554f: {query}&quot;\n            }\n        ]\n    )\n\n    return response.choices[0].message.content\n<\/code><\/pre>\n<p>\u3053\u306e<code>top_k=5<\/code>\u306e\u5358\u7d14\u306a\u53d6\u5f97\u3092\u300120\u4ef6\u306e\u5019\u88dc\u53d6\u5f97\u304b\u3089\u4e0a\u4f4d5\u4ef6\u306b\u518d\u30e9\u30f3\u30ad\u30f3\u30b0\u3059\u308b2\u6bb5\u968e\u30a2\u30d7\u30ed\u30fc\u30c1\u306b\u5909\u3048\u305f\u3002\u305d\u306e\u5909\u66f4\u3060\u3051\u3067\u3001\u4ed6\u306e\u3069\u306e\u6539\u5584\u3088\u308a\u56de\u7b54\u7cbe\u5ea6\u304c\u4e0a\u304c\u3063\u305f\u3002<\/p>\n<p><strong>\u3053\u3053\u304b\u3089\u5b66\u3093\u3060\u3053\u3068\uff1a<\/strong> RAG\u306f\u3001\u30c7\u30fc\u30bf\u304c\u5909\u5316\u3059\u308b\u5834\u5408\u3001\u30bd\u30fc\u30b9\u5e30\u5c5e\u304c\u5fc5\u8981\u306a\u5834\u5408\u3001\u5927\u898f\u6a21\u306a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30b3\u30fc\u30d1\u30b9\u3092\u6271\u3046\u5834\u5408\u306b\u5f37\u3044\u3002\u305f\u3060\u3057\u53d6\u5f97\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306f\u672c\u7269\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u4f5c\u696d\u3060\u3002\u305d\u306e\u5de5\u6570\u3092\u6700\u521d\u304b\u3089\u898b\u7a4d\u3082\u308a\u306b\u5165\u308c\u3066\u304a\u304f\u3053\u3068\u3002<\/p>\n<h2>\u4e21\u65b9\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u306e\u304c\u610f\u5473\u3092\u6301\u3064\u30b1\u30fc\u30b9<\/h2>\n<p>\u4e21\u65b9\u3067\u5931\u6557\u3092\u7d4c\u9a13\u3057\u3066\u304b\u3089\u3001\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3063\u3066\u3044\u308b\u30c1\u30fc\u30e0\u306e\u30b1\u30fc\u30b9\u306b\u6ce8\u76ee\u3057\u59cb\u3081\u305f\u3002\u305d\u3053\u3067\u300c\u306a\u308b\u307b\u3069\u300d\u3068\u601d\u3048\u308b\u30d1\u30bf\u30fc\u30f3\u304c\u898b\u3048\u3066\u304d\u305f\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3067\u632f\u308b\u821e\u3044\u3068\u30b9\u30bf\u30a4\u30eb\u3092\u3001RAG\u3067\u77e5\u8b58\u3092\u6271\u3046\u3002\u30e2\u30c7\u30eb\u304c\u300c\u4f55\u3092\u77e5\u3063\u3066\u3044\u308b\u304b\u300d\u3068\u300c\u3069\u3046\u7b54\u3048\u308b\u304b\u300d\u3092\u5206\u96e2\u3059\u308b\u30a4\u30e1\u30fc\u30b8\u3060\u3002<\/p>\n<p>\u5177\u4f53\u4f8b\uff1a\u793e\u5185\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u3092\u4f5c\u3063\u305f\u3002\u30e2\u30c7\u30eb\u306b\u5fc5\u8981\u3060\u3063\u305f\u306e\u306f3\u3064\u2014\u2014(a)\u7279\u5b9a\u306e\u69cb\u9020\u5316\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u5e38\u306b\u7b54\u3048\u308b\u3053\u3068\u3001(b)\u30b9\u30d7\u30ea\u30f3\u30c8\u3054\u3068\u306b\u5909\u308f\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8ffd\u968f\u3059\u308b\u3053\u3068\u3001(c)\u5e7b\u899a\u3059\u308b\u3088\u308a\u300c\u5206\u304b\u3089\u306a\u3044\u300d\u3068\u6b63\u76f4\u306b\u8a00\u3046\u3053\u3068\u3002<\/p>\n<p>\u9069\u5207\u306a\u4e0d\u78ba\u5b9f\u6027\u3092\u8868\u73fe\u3057\u305f\u6574\u5f62\u6e08\u307f\u56de\u7b54\u306e\u4f8b\u3067\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3057\u305f\u5c0f\u3055\u3081\u306e\u30e2\u30c7\u30eb\u3092\u3001\u30af\u30a8\u30ea\u6642\u306b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53d6\u5f97\u3059\u308bRAG\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u7d44\u307f\u8fbc\u3093\u3060\u3002<\/p>\n<p>\u7d50\u679c\u306f\u3069\u3061\u3089\u304b\u5358\u4f53\u3088\u308a\u826f\u304b\u3063\u305f\u3002API\u306e\u4ed5\u69d8\u3092\u5e7b\u899a\u3057\u306a\u304f\u306a\u3063\u305f\uff08\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u6b63\u3057\u3044\u60c5\u5831\u304c\u3042\u308b\u304b\u3089\uff09\u3002\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u5b89\u5b9a\u3057\u305f\uff08\u305d\u308c\u3092\u8a13\u7df4\u3067\u5165\u308c\u305f\u304b\u3089\uff09\u3002\u30d7\u30ed\u30f3\u30d7\u30c8\u5358\u4f53\u3067\u306f\u5b89\u5b9a\u3055\u305b\u308b\u306e\u304c\u96e3\u3057\u3044\u300c\u5206\u304b\u3089\u306a\u3044\u300d\u306e\u6319\u52d5\u304c\u3001\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u5f8c\u306f\u4fe1\u983c\u3067\u304d\u308b\u3082\u306e\u306b\u306a\u3063\u305f\u3002<\/p>\n<pre><code class=\"language-python\"># \u7d44\u307f\u5408\u308f\u305b\u305f\u5b9f\u88c5\u2014\u2014\u30b7\u30f3\u30d7\u30eb\u306b\u307e\u3068\u3081\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\ndef answer_with_finetuned_rag(query: str) -&gt; str:\n    # \u95a2\u9023\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53d6\u5f97\n    docs = retrieve_docs(query, top_k=5)\n    context = format_context(docs)\n\n    # \u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u6e08\u307f\u30e2\u30c7\u30eb\u3067\u4e00\u8cab\u6027\u306e\u3042\u308b\u56de\u7b54\u3092\u751f\u6210\n    # ft:gpt-3.5-turbo-0125:our-org:docs-assistant:abc123 \u2014 \u81ea\u5206\u305f\u3061\u306e\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8\n    response = client.chat.completions.create(\n        model=&quot;ft:gpt-3.5-turbo-0125:our-org:docs-assistant:abc123&quot;,\n        messages=[\n            {\n                &quot;role&quot;: &quot;system&quot;,\n                &quot;content&quot;: (\n                    &quot;\u3042\u306a\u305f\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u3067\u3059\u3002&quot;\n                    &quot;\u63d0\u4f9b\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u307f\u304b\u3089\u56de\u7b54\u3057\u3066\u304f\u3060\u3055\u3044\u3002&quot;\n                    &quot;\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u56de\u7b54\u304c\u306a\u3044\u5834\u5408\u306f\u3001\u305d\u306e\u65e8\u3092\u660e\u793a\u3057\u3066\u304f\u3060\u3055\u3044\u3002&quot;\n                )\n            },\n            {\n                &quot;role&quot;: &quot;user&quot;,\n                &quot;content&quot;: f&quot;\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8:\\n{context}\\n\\n\u8cea\u554f: {query}&quot;\n            }\n        ],\n        temperature=0.2  # \u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u4e00\u8cab\u6027\u3092\u9ad8\u3081\u308b\u305f\u3081\u4f4e\u3081\u306b\u8a2d\u5b9a\n    )\n\n    return response.choices[0].message.content\n<\/code><\/pre>\n<p>\u305f\u3060\u3001\u3053\u308c\u304c\u5e38\u306b\u6b63\u5f53\u5316\u3055\u308c\u308b\u3068\u306f\u8a00\u308f\u306a\u3044\u3002\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u6e08\u307f\u30e2\u30c7\u30eb\u3092\u904b\u7528\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u305d\u306e\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u81ea\u5206\u305f\u3061\u3067\u7ba1\u7406\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3002OpenAI\u304c\u30d9\u30fc\u30b9\u30e2\u30c7\u30eb\u3092\u5ec3\u6b62\u3059\u308c\u3070\u3001\u518d\u8a13\u7df4\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002\u305d\u308c\u306f\u672c\u7269\u306e\u904b\u7528\u30b3\u30b9\u30c8\u3060\u3002<\/p>\n<p><strong>\u3053\u3053\u304b\u3089\u5b66\u3093\u3060\u3053\u3068\uff1a<\/strong> \u7d44\u307f\u5408\u308f\u305b\u304c\u8907\u96d1\u3055\u306b\u898b\u5408\u3046\u306e\u306f\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u3060\u3051\u3067\u306f\u89e3\u6c7a\u3067\u304d\u306a\u3044\u660e\u78ba\u306a\u632f\u308b\u821e\u3044\u306e\u554f\u984c\u304c\u3042\u308a\u3001\u304b\u3064\u77e5\u8b58\u30d9\u30fc\u30b9\u304c\u52d5\u7684\u306b\u66f4\u65b0\u3055\u308c\u308b\u2014\u2014\u305d\u306e\u4e21\u65b9\u304c\u6210\u7acb\u3059\u308b\u5834\u5408\u306e\u307f\u3002\u3069\u3061\u3089\u304b\u4e00\u65b9\u304c\u5f53\u3066\u306f\u307e\u3089\u306a\u3044\u306a\u3089\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u65b9\u3092\u9078\u3076\u3053\u3068\u3002<\/p>\n<h2>\u5b9f\u969b\u306e\u3068\u3053\u308d\u3001\u3069\u3061\u3089\u3092\u9078\u3076\u3079\u304d\u304b<\/h2>\n<p>\u5168\u90e8\u7d4c\u9a13\u3057\u305f\u4e0a\u3067\u3001\u4eca\u306e\u81ea\u5206\u306e\u5224\u65ad\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u304b\u306a\u308a\u30b7\u30f3\u30d7\u30eb\u306b\u306a\u3063\u305f\u30023\u3064\u306e\u8cea\u554f\u3092\u9806\u756a\u306b\u7b54\u3048\u308b\u3002<\/p>\n<p><strong>1. \u518d\u8a13\u7df4\u306e\u30b5\u30a4\u30af\u30eb\u3088\u308a\u901f\u304f\u30c7\u30fc\u30bf\u304c\u5909\u308f\u308b\u304b\uff1f<\/strong><br \/>\n\u300c\u306f\u3044\u300d\u306a\u3089RAG\u304c\u5fc5\u8981\u3002\u3053\u308c\u306f\u307b\u3068\u3093\u3069\u306e\u30d7\u30ed\u30c0\u30af\u30c8\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306b\u5f53\u3066\u306f\u307e\u308b\u2014\u2014\u30b5\u30dd\u30fc\u30c8bot\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u3001\u30c1\u30fc\u30e0\u304c\u66f4\u65b0\u3057\u7d9a\u3051\u308b\u30b3\u30f3\u30c6\u30f3\u30c4DB\u3092\u6271\u3046\u3082\u306e\u5168\u90e8\u3002<\/p>\n<p><strong>2. \u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u306f\u76f4\u305b\u306a\u3044\u4e00\u8cab\u3057\u305f\u632f\u308b\u821e\u3044\u306e\u554f\u984c\u304c\u3042\u308b\u304b\uff1f<\/strong><br \/>\n\u5177\u4f53\u7684\u306b\u8a00\u3046\u3068\u3001\u8907\u6570\u306e\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u3068\u5c11\u6570\u30b7\u30e7\u30c3\u30c8\u4f8b\u3092\u8a66\u3057\u305f\u4e0a\u3067\u3082\u3001\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u304c\u5b89\u5b9a\u3057\u306a\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u3002\u300c\u306f\u3044\u300d\u306a\u3089\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3092\u691c\u8a0e\u3059\u308b\u4fa1\u5024\u304c\u3042\u308b\u3002\u672c\u683c\u7684\u306a\u30d7\u30ed\u30f3\u30d7\u30c8\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u3092\u307e\u3060\u8a66\u3057\u3066\u3044\u306a\u3044\u306a\u3089\u3001\u305d\u3061\u3089\u3092\u5148\u306b\u3084\u308b\u3053\u3068\u2014\u2014\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u901f\u304f\u3066\u30b3\u30b9\u30c8\u304c\u4f4e\u3044\u3002<\/p>\n<p><strong>3. \u6027\u80fd\u306e\u5dee\u304c\u904b\u7528\u30b3\u30b9\u30c8\u306b\u898b\u5408\u3046\u304b\uff1f<\/strong><br \/>\n\u53e4\u3044\u30d9\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8\u3067\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3057\u305f\u30e2\u30c7\u30eb\u306f\u3001\u6700\u65b0\u306e\u30d5\u30e9\u30c3\u30b0\u30b7\u30c3\u30d7\u30e2\u30c7\u30eb\u3088\u308a\u30c8\u30fc\u30af\u30f3\u5358\u4fa1\u304c\u5b89\u3044\u3053\u3068\u304c\u3042\u308b\u30021\u65e5\u306b\u4f55\u767e\u4e07\u56de\u3082API\u3092\u53e9\u304f\u306a\u3089\u3001\u518d\u8a13\u7df4\u30b3\u30b9\u30c8\u3092\u542b\u3081\u3066\u3082\u5143\u304c\u53d6\u308c\u308b\u8a08\u7b97\u306b\u306a\u308b\u3053\u3068\u306f\u3042\u308b\u3002\u793e\u5185\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u3066\u3044\u308b\u307b\u3068\u3093\u3069\u306e\u30c1\u30fc\u30e0\u306b\u306f\u5f53\u3066\u306f\u307e\u3089\u306a\u3044\u304c\u3002<\/p>\n<p>\u6b63\u76f4\u306b\u8a00\u3046\u3002\u81ea\u5206\u304c\u898b\u3066\u3044\u308b\u307b\u3068\u3093\u3069\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u2014\u2014\u3053\u308c\u306f\u4e00\u822c\u8ad6\u3067\u306f\u306a\u304f\u3001\u5b9f\u969b\u306b\u76ee\u306b\u3057\u305f\u30d7\u30ed\u30c0\u30af\u30c8\u306e\u8a71\u3068\u3057\u3066\u2014\u2014\u306b\u306f\u3001RAG\u304c\u6b63\u3057\u3044\u30b9\u30bf\u30fc\u30c8\u5730\u70b9\u3060\u3002\u30c7\u30fc\u30bf\u306e\u9bae\u5ea6\u554f\u984c\u3060\u3051\u3067\u3001\u77e5\u8b58\u691c\u7d22\u7cfb\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u304b\u3089\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306f\u5916\u308c\u308b\u3002\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306b\u624b\u3092\u51fa\u3059\u524d\u306b\u3001\u30c1\u30e3\u30f3\u30af\u6226\u7565\u3001embedding\u30e2\u30c7\u30eb\u306e\u9078\u629e\u3001\u53d6\u5f97\u54c1\u8cea\u306b\u529b\u3092\u6ce8\u3050\u3079\u304d\u3060\u3002<\/p>\n<p>\u4f8b\u5916\u306f\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u306f\u6307\u5b9a\u3057\u306b\u304f\u3044\u632f\u308b\u821e\u3044\u304c\u5fc5\u8981\u306a\u5834\u5408\u2014\u2014\u5f37\u304f\u5236\u7d04\u3055\u308c\u305f\u51fa\u529b\u30b9\u30ad\u30fc\u30de\u3001\u7279\u6b8a\u306a\u63a8\u8ad6\u30d1\u30bf\u30fc\u30f3\u3001\u5b89\u5b9a\u3055\u305b\u308b\u5fc5\u8981\u306e\u3042\u308b\u30c8\u30fc\u30f3\u8981\u4ef6\u3002\u305d\u306e\u5834\u5408\u306f\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u304c\u610f\u5473\u3092\u6301\u3064\u3002<\/p>\n<p>\u30c1\u30fc\u30e0\u306e\u8ab0\u304b\u304c\u300c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u30e2\u30c7\u30eb\u306b\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3057\u3088\u3046\u300d\u3068\u8a00\u3044\u51fa\u3057\u305f\u3089\u2014\u2014\u3053\u308c\u3092\u4e00\u5ea6\u4ee5\u4e0a\u805e\u3044\u305f\u3053\u3068\u304c\u3042\u308b\u2014\u2014\u300c\u66f4\u65b0\u3055\u308c\u305f\u6642\u3069\u3046\u3059\u308b\uff1f\u300d\u3068\u805e\u3044\u3066\u307f\u308b\u3068\u3044\u3044\u3002\u5927\u62b5\u306f\u305d\u3053\u3067\u6574\u7406\u304c\u3064\u304f\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f <strong>RAG <a href=\"https:\/\/blog.rebalai.com\/ja\/2026\/03\/05\/rag-vs-llm\/\" title=\"vs \u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0:\">vs \u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0:<\/a> LLM\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306e\u4f7f\u3044\u5206\u3051\u5b8c\u5168\u30ac\u30a4<\/strong> \u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306b\u672c\u8a18\u4e8b\u306e\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n<h3>\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8<\/h3>\n<ul>\n<li><strong>\u57fa\u672c\u6982\u5ff5<\/strong>\uff1acore concept \u3092\u6b63\u3057\u304f\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u3001<a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean for Production Workloads\" rel=\"nofollow sponsored\" target=\"_blank\">production<\/a> ready \u306a\u5b9f\u88c5\u3078\u306e\u8fd1\u9053\u3067\u3059\u3002<\/li>\n<li><strong>\u5b9f\u88c5\u65b9\u6cd5<\/strong>\uff1aPython \u3084 TypeScript \u306a\u3069\u4e3b\u8981\u306a programming language \u3067\u306eimplementation \u304c\u53ef\u80fd\u3067\u3001official SDK \u3084 library \u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u958b\u767a\u52b9\u7387\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<\/strong>\uff1aresponse latency \u3084 throughput \u3092\u8003\u616e\u3057\u305fsystem design \u304c\u91cd\u8981\u3067\u3059\u3002load testing \u3068 monitoring \u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u6700\u9069\u5316\u3057\u307e\u3057\u3087\u3046\u3002<\/li>\n<li><strong>\u30b3\u30b9\u30c8\u7ba1\u7406<\/strong>\uff1aAPI usage cost \u3092\u6700\u5c0f\u5316\u3059\u308b\u305f\u3081\u3001caching strategy \u3084 rate limiting \u306e\u5b9f\u88c5\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<\/strong>\uff1aAPI key management\u3001input validation\u3001output sanitization \u306a\u3069\u3001security best practices \u3092\u5fc5\u305a\u9075\u5b88\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n<h3>\u6b21\u306e\u30b9\u30c6\u30c3\u30d7<\/h3>\n<p>\u307e\u305a\u306f small scale \u306a prototype \u3092\u4f5c\u6210\u3057\u3066\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u3001staging environment \u3067\u306e\u30c6\u30b9\u30c8\u3092\u7d4c\u3066\u304b\u3089 <a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean for Production Workloads\" rel=\"nofollow sponsored\" target=\"_blank\">production<\/a> deployment \u3092\u9032\u3081\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>GitHub \u3084 official documentation\u3001Stack Overflow \u306a\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u3082\u7a4d\u6975\u7684\u306b\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002open source community forum \u3084 issue tracker \u3078\u306e\u53c2\u52a0\u3082\u3001knowledge sharing \u306e\u89b3\u70b9\u304b\u3089\u5927\u5909\u6709\u76ca\u3067\u3059\u3002\u7591\u554f\u70b9\u304c\u3042\u308c\u3070\u30b3\u30e1\u30f3\u30c8\u6b04\u3067\u304a\u6c17\u8efd\u306b\u304a\u77e5\u3089\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>6\u30f6\u6708\u524d\u3001\u30c1\u30fc\u30e0\u3067\u30ab\u30b9\u30bf\u30de\u30fc\u30b5\u30dd\u30fc\u30c8bot\u3092\u672c\u756a\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u3002\u305d\u306ebot\u306f\u81ea\u4fe1\u6e80\u3005\u306b\u300c\u8fd4\u54c1\u671f\u9593\u306f60\u65e5\u3067\u3059\u300d\u3068\u30e6\u30fc\u30b6\u30fc\u306b\u7b54\u3048\u7d9a\u3051\u305f\u3002\u5b9f\u969b\u306f30\u65e5\u3060\u3063\u305f\u30022023\u5e74\u306e\u88fd\u54c1\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3057\u305f\u30e2\u30c7\u30eb\u3067\u3001\u30dd\u30ea\u30b7\u30fc\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u305f\u3053\u3068\u3092\u8ab0\u3082\u2014\u2014\u81ea\u5206\u3082\u542b\u3081\u3066\u2014\u2014\u78ba\u8a8d\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3002300\u4ef6\u306e\u30b5\u30dd\u30fc\u30c8\u30c1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":7,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":175,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/30\/revisions\/175"}],"wp:attachment":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}