{"id":28,"date":"2026-03-05T15:17:11","date_gmt":"2026-03-05T15:17:11","guid":{"rendered":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/05\/ai-pipeline-lessons\/"},"modified":"2026-03-07T01:08:51","modified_gmt":"2026-03-07T01:08:51","slug":"ai-pipeline-lessons","status":"publish","type":"post","link":"https:\/\/blog.rebalai.com\/ja\/2026\/03\/05\/ai-pipeline-lessons\/","title":{"rendered":"\u30d7\u30ed\u30c0\u30af\u30b7\u30e7\u30f3AI\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3: 1\u4e075\u5343\u56de\u306e\u5b9f\u884c\u304b\u3089\u5b66\u3093\u3060\u3053\u3068"},"content":{"rendered":"<p><script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"BlogPosting\",\n  \"headline\": \"\u30d7\u30ed\u30c0\u30af\u30b7\u30e7\u30f3AI\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3: 1\u4e075\u5343\u56de\u306e\u5b9f\u884c\u304b\u3089\u5b66\u3093\u3060\u3053\u3068\",\n  \"description\": \"\u53bb\u5e74\u306e11\u6708\u3001\u6df1\u591c2\u6642\u306bSlack\u306e\u901a\u77e5\u3067\u76ee\u304c\u899a\u3081\u305f\u3002\u30b3\u30f3\u30c6\u30f3\u30c4\u5206\u985e\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u304c6\u6642\u9593\u52d5\u304d\u7d9a\u3051\u3066\u3001OpenAI API\u306e\u8cbb\u7528\u3092$340\u6eb6\u304b\u3057\u3066\u3044\u305f\u3002\u7d50\u679c\u7269\u306e\u7d0470%\u306f\u30b4\u30df\u3060\u3063\u305f\u3002\u539f\u56e0\u306f\u30ea\u30c8\u30e9\u30a4\u30ed\u30b8\u30c3\u30af\u306e\u30d0\u30b0\u2014\u2014\u306a\u305c\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5931\u6557\u3057\u3066\u3044\u308b\u304b\u3092\u533a\u5225\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u3002 context_length_exceed\",\n  \"url\": \"https:\/\/blog.rebalai.com\/ja\/2026\/03\/05\/ai-pipeline-lessons\/\",\n  \"datePublished\": \"2026-03-05T15:17:11\",\n  \"dateModified\": \"2026-03-05T17:39:38\",\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\/ai-pipeline-lessons\/\"\n  }\n}\n<\/script><\/p>\n<p>\u53bb\u5e74\u306e11\u6708\u3001\u6df1\u591c2\u6642\u306bSlack\u306e\u901a\u77e5\u3067\u76ee\u304c\u899a\u3081\u305f\u3002\u30b3\u30f3\u30c6\u30f3\u30c4\u5206\u985e\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u304c6\u6642\u9593\u52d5\u304d\u7d9a\u3051\u3066\u3001OpenAI API\u306e\u8cbb\u7528\u3092$340\u6eb6\u304b\u3057\u3066\u3044\u305f\u3002\u7d50\u679c\u7269\u306e\u7d0470%\u306f\u30b4\u30df\u3060\u3063\u305f\u3002\u539f\u56e0\u306f\u30ea\u30c8\u30e9\u30a4\u30ed\u30b8\u30c3\u30af\u306e\u30d0\u30b0\u2014\u2014\u306a\u305c\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5931\u6557\u3057\u3066\u3044\u308b\u304b\u3092\u533a\u5225\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u3002<code>context_length_exceeded<\/code>\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u305f\u3073\u306b\u554f\u7b54\u7121\u7528\u30673\u56de\u30ea\u30c8\u30e9\u30a4\u3057\u3066\u3044\u305f\u3002\u671d\u306b\u306f\u624b\u9045\u308c\u3060\u3063\u305f\u3002<\/p>\n<p>\u3042\u306e\u591c\u304b\u3089\u3001AI\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3092\u300c\u3061\u3087\u3063\u3068\u3057\u305f\u914d\u7ba1\u4ed8\u304dAPI\u30b3\u30fc\u30eb\u300d\u3068\u3057\u3066\u6271\u3046\u306e\u3092\u3084\u3081\u305f\u3002\u305d\u3053\u304b\u30891\u4e075\u5343\u56de\u4ee5\u4e0a\u306e\u51e6\u7406\u3092\u3053\u306a\u3057\u3066\u304d\u305f\u2014\u2014\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u5206\u985e\u3001\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u81ea\u52d5\u5316\u300112\u4eba\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u30c1\u30fc\u30e0\u5411\u3051\u793e\u5185Q&amp;A\u30b7\u30b9\u30c6\u30e0\u3002\u5b9f\u969b\u306b\u4f55\u304c\u58ca\u308c\u308b\u304b\u3001\u304b\u306a\u308a\u5177\u4f53\u7684\u306a\u610f\u898b\u3092\u6301\u3066\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<h2>\u30ea\u30c8\u30e9\u30a4\u30ed\u30b8\u30c3\u30af\u306f\u4e00\u5f8b\u3058\u3083\u7d76\u5bfe\u30c0\u30e1<\/h2>\n<p>\u6700\u521d\u306b\u5b9f\u88c5\u3057\u305f\u306e\u306f\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u3060\u3063\u305f\u3002<code>tenacity<\/code>\u3092\u4f7f\u3063\u3066\u6307\u6570\u30d0\u30c3\u30af\u30aa\u30d5\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u300c\u306f\u3044\u3001\u3067\u304d\u305f\u300d\u3068\u601d\u3063\u3066\u3044\u305f\u3002<\/p>\n<pre><code class=\"language-python\">from tenacity import retry, stop_after_attempt, wait_exponential\n\n@retry(\n    stop=stop_after_attempt(3),\n    wait=wait_exponential(multiplier=1, min=4, max=60)\n)\ndef call_llm(prompt: str) -&gt; str:\n    response = client.chat.completions.create(\n        model=&quot;gpt-4o&quot;,\n        messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}]\n    )\n    return response.choices[0].message.content\n<\/code><\/pre>\n<p>\u6280\u8853\u7684\u306b\u306f\u9593\u9055\u3063\u3066\u3044\u306a\u3044\u3002\u554f\u984c\u306f\u3001\u3053\u308c\u304c\u5371\u967a\u306a\u304f\u3089\u3044\u4e0d\u5b8c\u5168\u3060\u3068\u3044\u3046\u3053\u3068\u3060\u3002OpenAI\u306e\u30a8\u30e9\u30fc\u3092\u5168\u90e8\u540c\u3058\u3088\u3046\u306b\u6271\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u3002\u305d\u308c\u304c\u307e\u3055\u306b$340\u3092\u4e00\u6669\u3067\u6eb6\u304b\u3059\u539f\u56e0\u306b\u306a\u308b\u3002<\/p>\n<p><code>RateLimitError<\/code>\u306f\u30ea\u30c8\u30e9\u30a4\u3059\u3079\u304d\u3002\u30ec\u30fc\u30c8\u3092\u8d85\u3048\u305f\u3001\u5c11\u3057\u5f85\u3066\u3070\u3044\u3044\u3002\u3067\u3082<code>InvalidRequestError<\/code>\u306f\uff1f\u30ea\u30c8\u30e9\u30a4\u3057\u3066\u3082\u610f\u5473\u304c\u306a\u3044\u3002\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u9577\u3092\u8d85\u3048\u3066\u3044\u308b\u304b\u3001\u4e0d\u6b63\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3057\u3066\u3044\u308b\u304b\u306e\u3069\u3061\u3089\u304b\u3060\u30022\u56de\u76ee\u3082\u540c\u3058\u7406\u7531\u3067\u5931\u6557\u3059\u308b\u3002\u3042\u306e\u6df1\u591c2\u6642\u306e\u30a4\u30f3\u30b7\u30c7\u30f3\u30c8\u306f\u6b63\u78ba\u306b\u3053\u308c\u3060\u3063\u305f\u2014\u2014<code>context_length_exceeded<\/code>\u30a8\u30e9\u30fc\u304c\u7e70\u308a\u8fd4\u3057\u30ad\u30e5\u30fc\u306b\u5165\u308a\u3001\u6bce\u56de\u30c8\u30fc\u30af\u30f3\u4ee3\u3092\u8ab2\u91d1\u3055\u308c\u306a\u304c\u3089\u5931\u6557\u3057\u7d9a\u3051\u305f\u3002<\/p>\n<p>\u3061\u3083\u3093\u3068\u5206\u985e\u3059\u308b\u3068\u3053\u3046\u306a\u308b:<\/p>\n<ul>\n<li><strong>\u30ea\u30c8\u30e9\u30a4\u3042\u308a<\/strong>: <code>RateLimitError<\/code>\u3001<code>APITimeoutError<\/code>\u3001<code>APIConnectionError<\/code>\u3001<code>InternalServerError<\/code>\uff08503\uff09<\/li>\n<li><strong>\u30ea\u30c8\u30e9\u30a4\u306a\u3057<\/strong>: <code>InvalidRequestError<\/code>\u3001<code>AuthenticationError<\/code>\u3001<code>PermissionDeniedError<\/code><\/li>\n<li><strong>\u5185\u5bb9\u3092\u898b\u3066\u304b\u3089\u5224\u65ad<\/strong>: <code>BadRequestError<\/code> \u2014 \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u78ba\u8a8d\u3057\u3066\u6c7a\u3081\u308b<\/li>\n<\/ul>\n<p>\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u3044\u308b\u30b3\u30fc\u30c9\u306f\u3053\u308c:<\/p>\n<pre><code class=\"language-python\">import openai\nfrom tenacity import retry, stop_after_attempt, wait_exponential, retry_if_exception_type\n\nRETRYABLE_EXCEPTIONS = (\n    openai.RateLimitError,\n    openai.APITimeoutError,\n    openai.APIConnectionError,\n    openai.InternalServerError,\n)\n\n@retry(\n    retry=retry_if_exception_type(RETRYABLE_EXCEPTIONS),\n    stop=stop_after_attempt(4),\n    wait=wait_exponential(multiplier=2, min=5, max=120),\n    reraise=True\n)\ndef call_llm(prompt: str, model: str = &quot;gpt-4o-mini&quot;) -&gt; str:\n    try:\n        response = client.chat.completions.create(\n            model=model,\n            messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}],\n            timeout=30.0  # \u3053\u308c\u3092\u7701\u304f\u3068\u7121\u9650\u306b\u5f85\u3064\u7fbd\u76ee\u306b\u306a\u308b\n        )\n        return response.choices[0].message.content\n    except openai.BadRequestError as e:\n        # context_length_exceeded\u306f\u30ea\u30c8\u30e9\u30a4\u4e0d\u53ef\u2014\u2014\u5373\u5ea7\u306b\u8ae6\u3081\u308b\n        if &quot;context_length_exceeded&quot; in str(e):\n            raise ValueError(f&quot;\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u9577\u3059\u304e\u307e\u3059: {len(prompt)} chars&quot;) from e\n        raise\n<\/code><\/pre>\n<p><code>timeout=30.0<\/code>\u306f\u7701\u7565\u7981\u6b62\u3060\u3002OpenAI API\u306f\u305f\u307e\u306b\u2014\u2014\u7279\u306b\u9591\u6563\u6642\u9593\u5e2f\u306b\u2014\u201490\u79d2\u4ee5\u4e0a\u7121\u97f3\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308b\u3002\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u306a\u3057\u3060\u3068\u30ef\u30fc\u30ab\u30fc\u304c\u305d\u3053\u3067\u8a70\u307e\u3063\u3066\u3001\u30d0\u30c3\u30c1\u30b8\u30e7\u30d6\u304c\u6570\u5206\u3067\u306f\u306a\u304f\u6570\u6642\u9593\u6b62\u307e\u308b\u3002\u5b9f\u969b\u306b\u305d\u308c\u3067\u4f55\u6642\u9593\u3082\u7121\u99c4\u306b\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u3002<\/p>\n<p>\u30ea\u30c8\u30e9\u30a4\u306e\u4e0a\u9650\u30924\u56de\u306b\u3057\u3066\u3044\u308b\u306e\u3082\u7406\u7531\u304c\u3042\u308b\u3002\u305d\u308c\u4ee5\u4e0a\u306f\u5927\u62b5\u3001\u4e00\u6642\u7684\u306a\u554f\u984c\u3058\u3083\u306a\u304f\u69cb\u9020\u7684\u306a\u554f\u984c\u3092\u8e0f\u3093\u3067\u3044\u308b\u3002\u30ea\u30c8\u30e9\u30a4\u3092\u5897\u3084\u3057\u3066\u3082\u30ec\u30a4\u30c6\u30f3\u30b7\u304c\u4f38\u3073\u308b\u3060\u3051\u3067\u4f55\u3082\u89e3\u6c7a\u3057\u306a\u3044\u3002<\/p>\n<h2>\u30b3\u30b9\u30c8\u304c\u4e88\u60f3\u5916\u306b\u81a8\u3089\u30803\u3064\u306e\u30dd\u30a4\u30f3\u30c8<\/h2>\n<p>\u6b63\u76f4\u306b\u8a00\u3046\u3002\u300c\u30c8\u30fc\u30af\u30f3\u3092\u3061\u3087\u3063\u3068\u4f7f\u3046\u304f\u3089\u3044\u3067\u3057\u3087\u300d\u3068\u5b9f\u969b\u306b\u58f0\u306b\u51fa\u3057\u3066\u8a00\u3063\u3066\u3044\u305f\u30022\u30f6\u6708\u5f8c\u306b\u305d\u308c\u3092\u8a00\u3046\u306e\u3092\u3084\u3081\u305f\u3002<\/p>\n<p><strong>\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u91cd\u8907\u3002<\/strong> \u540c\u3058\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3067100\u4ef6\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u51e6\u7406\u3059\u308b\u3068\u304d\u3001\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30f3\u30d7\u30c8\u304c500\u30c8\u30fc\u30af\u30f3\u306a\u3089\u3001\u305d\u308c\u304c100\u56de\u9001\u3089\u308c\u308b\u3002OpenAI\u306ePrompt Caching\uff082024\u5e748\u6708\u304b\u3089\u5229\u7528\u53ef\u80fd\uff09\u3092\u4f7f\u3048\u3070\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u305f\u5165\u529b\u30c8\u30fc\u30af\u30f3\u304c90%\u5272\u5f15\u306b\u306a\u308b\u2014\u2014gpt-4o\u306e\u5834\u5408\u3002\u305f\u3060\u30571024\u30c8\u30fc\u30af\u30f3\u4ee5\u4e0a\u306e\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u3058\u3083\u306a\u3044\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u767a\u52d5\u3057\u306a\u3044\u3002\u77ed\u3044\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30f3\u30d7\u30c8\u306f\u6069\u6075\u304c\u306a\u3044\u3002\u5b89\u5b9a\u3057\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5148\u982d\u306b\u3001\u52d5\u7684\u306a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3054\u3068\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u305d\u306e\u5f8c\u306b\u914d\u7f6e\u3059\u308b\u69cb\u9020\u306b\u3059\u308b\u3053\u3068\u3002<\/p>\n<p><strong>\u30e2\u30c7\u30eb\u306e\u9078\u3073\u65b9\u3002<\/strong> \u30c7\u30d5\u30a9\u30eb\u30c8\u3067gpt-4o\u3092\u5168\u90e8\u306e\u51e6\u7406\u306b\u4f7f\u3063\u3066\u3044\u305f\u3002\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3067\u4f7f\u3044\u6163\u308c\u3066\u3044\u305f\u3057\u3001\u300c\u5b89\u5168\u724c\u300d\u3068\u3044\u3046\u6c17\u6301\u3061\u304c\u3042\u3063\u305f\u300250\u4ef6\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u4e21\u30e2\u30c7\u30eb\u306e\u51fa\u529b\u3092\u624b\u52d5\u6bd4\u8f03\u3057\u305fA\/B\u30c6\u30b9\u30c8\u3092\u3084\u3063\u3066\u307f\u305f\u3089\u2014\u2014\u5358\u7d14\u306a\u5206\u985e\u30bf\u30b9\u30af\u3067\u3001gpt-4o-mini\u306fgpt-4o\u3068\u7cbe\u5ea6\u5dee\u304c3\u301c5%\u306b\u53ce\u307e\u308a\u306a\u304c\u3089\u3001\u30b3\u30b9\u30c8\u306f\u7d0415\u301c20\u5206\u306e1\u3060\u3063\u305f\u3002\u5206\u985e\u3068\u30ad\u30fc\u30ef\u30fc\u30c9\u62bd\u51fa\u3092mini\u306b\u79fb\u3057\u3001\u8907\u96d1\u306a\u63a8\u8ad6\u3084\u9577\u6587\u8981\u7d04\u3092gpt-4o\u306b\u6b8b\u3057\u305f\u3002\u305d\u306e\u4e00\u5909\u66f4\u3060\u3051\u3067\u6708\u306e\u30b3\u30b9\u30c8\u304c\u7d0460%\u6e1b\u3063\u305f\u3002<\/p>\n<p>\u305f\u3060\u3057\u300c\u5358\u7d14\u306a\u30bf\u30b9\u30af\u300d\u304b\u3069\u3046\u304b\u306f\u81ea\u5206\u3067\u691c\u8a3c\u3059\u308b\u3053\u3068\u3002\u4f55\u304c\u5358\u7d14\u306b\u5f53\u305f\u308b\u304b\u306f\u30bf\u30b9\u30af\u306b\u3088\u3063\u3066\u304b\u306a\u308a\u9055\u3046\u3002<\/p>\n<p><strong>\u51fa\u529b\u30c8\u30fc\u30af\u30f3\u3092\u5236\u9650\u3057\u3066\u3044\u306a\u3044\u3002<\/strong> gpt-4o-mini\u3067\u306f\u51fa\u529b\u30c8\u30fc\u30af\u30f3\u306e\u30b3\u30b9\u30c8\u304c\u5165\u529b\u306e\u7d044\u500d\u3002\u69cb\u9020\u5316JSON\u3092\u671f\u5f85\u3057\u3066\u3044\u308b\u306e\u306b<code>max_tokens<\/code>\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u3068\u3001\u30e2\u30c7\u30eb\u304c\u5fc5\u8981\u4ee5\u4e0a\u306b\u9577\u304f\u5fdc\u7b54\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u3002<code>response_format={\"type\": \"json_object\"}<\/code>\u3092\u4f7f\u3048\u3070\u51fa\u529b\u306f\u4e00\u8cab\u3057\u3066\u77ed\u304f\u306a\u308b\u304c\u2014\u2014\u30e2\u30c7\u30eb\u304c\u30b9\u30ad\u30fc\u30de\u306e\u9699\u3092\u3064\u3044\u3066\u5197\u9577\u306a<code>reasoning<\/code>\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u3002\u30b9\u30ad\u30fc\u30de\u306f\u3067\u304d\u308b\u3060\u3051\u53b3\u5bc6\u306b\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3002<code>max_tokens<\/code>\u306e\u4e0a\u9650\u8a2d\u5b9a\u306f\u5b89\u4fa1\u306a\u4fdd\u967a\u3060\u3002<\/p>\n<h2>\u30e2\u30c7\u30eb\u306e\u51fa\u529b\u3092\u305d\u306e\u307e\u307e\u4fe1\u3058\u308b\u306a<\/h2>\n<p>LLM\u304c\u5e7b\u899a\u3059\u308b\u3053\u3068\u306f\u77e5\u3063\u3066\u3044\u305f\u3002\u3067\u3082\u305d\u306e\u5e7b\u899a\u3057\u305f\u51fa\u529b\u304c\u6c17\u3065\u304f\u524d\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u6c5a\u67d3\u3067\u304d\u308b\u3001\u3068\u3044\u3046\u4e8b\u5b9f\u306b\u306f\u5341\u5206\u306b\u5bfe\u51e6\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u3046\u3061\u306e\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3067\u8d77\u304d\u305f\u4e8b\u6545\u306f\u3053\u3046\u3060\u30025\u3064\u306e\u7279\u5b9a\u30ab\u30c6\u30b4\u30ea\u540d\u306e\u3072\u3068\u3064\u3067\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u5206\u985e\u3059\u308b\u30bf\u30b9\u30af\u3067\u3001\u30e2\u30c7\u30eb\u304c\u6642\u3005\u5fae\u5999\u306b\u9055\u3046\u30ab\u30c6\u30b4\u30ea\u540d\u3092\u8fd4\u3057\u3066\u3044\u305f\u2014\u2014\u985e\u7fa9\u8a9e\u3060\u3063\u305f\u308a\u5927\u6587\u5b57\u30fb\u5c0f\u6587\u5b57\u304c\u9055\u3063\u305f\u308a\u3001\u305f\u307e\u306b\u5b8c\u5168\u306b\u5b58\u5728\u3057\u306a\u3044\u540d\u524d\u3060\u3063\u305f\u308a\u3002\u767a\u751f\u983b\u5ea6\u304c\u4f4e\u304b\u3063\u305f\u306e\u3067\u624b\u52d5\u306e\u30b9\u30dd\u30c3\u30c8\u30c1\u30a7\u30c3\u30af\u3067\u306f\u8868\u9762\u5316\u3057\u306a\u304b\u3063\u305f\u3002\u305d\u308c\u304b\u3089\u4e0b\u6d41\u30b7\u30b9\u30c6\u30e0\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u59cb\u3081\u3066\u3001\u8ffd\u8de1\u3057\u305f\u3089\u3001\u4e0d\u6b63\u306a\u30ab\u30c6\u30b4\u30ea\u304cDB\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u305f\u3002\u30c7\u30fc\u30bf\u306e\u30af\u30ea\u30fc\u30cb\u30f3\u30b0\u306b\u534a\u65e5\u304b\u304b\u3063\u305f\u3002<\/p>\n<p>Pydantic\u3067\u9069\u5207\u306b\u5b9a\u7fa9\u3055\u308c\u305fenum\u3092\u4f7f\u3046\u306e\u304c\u4e00\u756a\u30b7\u30f3\u30d7\u30eb\u306a\u89e3\u6c7a\u7b56\u3060\u3063\u305f:<\/p>\n<pre><code class=\"language-python\">from pydantic import BaseModel, field_validator\nfrom enum import Enum\nimport json\n\nclass Category(str, Enum):\n    TECHNICAL = &quot;technical&quot;\n    BUSINESS = &quot;business&quot;\n    LEGAL = &quot;legal&quot;\n    MARKETING = &quot;marketing&quot;\n    OTHER = &quot;other&quot;\n\nclass ClassificationResult(BaseModel):\n    category: Category\n    confidence: float\n    reasoning: str\n\n    @field_validator(&quot;confidence&quot;)\n    @classmethod\n    def confidence_range(cls, v: float) -&gt; float:\n        if not 0.0 &lt;= v &lt;= 1.0:\n            raise ValueError(&quot;confidence must be between 0 and 1&quot;)\n        return v\n\ndef classify_document(text: str) -&gt; ClassificationResult:\n    response = call_llm(\n        f&quot;\u4ee5\u4e0b\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u5206\u985e\u3057\u3066\u304f\u3060\u3055\u3044\u3002JSON\u306e\u307f\u3067\u56de\u7b54\u3057\u3066\u304f\u3060\u3055\u3044\u3002\\n\\n{text}&quot;\n    )\n    try:\n        data = json.loads(response)\n        return ClassificationResult(**data)\n    except (json.JSONDecodeError, ValueError) as e:\n        # \u30d1\u30fc\u30b9\u5931\u6557\u3092\u5c02\u7528\u30e1\u30c8\u30ea\u30af\u30b9\u3068\u3057\u3066\u8ffd\u8de1\u3059\u308b\n        metrics.increment(&quot;llm.output_parse_failure&quot;)\n        logger.error(f&quot;\u51fa\u529b\u30d1\u30fc\u30b9\u5931\u6557: {e}, \u751f\u30c7\u30fc\u30bf: {response[:200]}&quot;)\n        raise OutputValidationError(&quot;\u30e2\u30c7\u30eb\u51fa\u529b\u304c\u671f\u5f85\u3059\u308b\u30b9\u30ad\u30fc\u30de\u3068\u4e00\u81f4\u3057\u307e\u305b\u3093&quot;) from e\n<\/code><\/pre>\n<p>One thing I noticed: \u30d1\u30fc\u30b9\u5931\u6557\u3092\u5c02\u7528\u30e1\u30c8\u30ea\u30af\u30b9\u3068\u3057\u3066\u8ffd\u8de1\u3059\u308b\u3053\u3068\u304c\u3001\u601d\u3063\u305f\u3088\u308a\u5f79\u306b\u7acb\u3064\u3002\u305d\u306e\u5272\u5408\u304c\u4e88\u60f3\u5916\u306b\u4e0a\u304c\u3063\u305f\u3068\u304d\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u5909\u308f\u3063\u305f\u304b\u3001\u30e2\u30c7\u30eb\u306e\u6319\u52d5\u304c\u9759\u304b\u306b\u5909\u5316\u3057\u305f\u304b\u306e\u3069\u3061\u3089\u304b\u3060\u3002OpenAI\u306f\u30e2\u30c7\u30eb\u3092\u5e38\u306b\u30a2\u30ca\u30a6\u30f3\u30b9\u305b\u305a\u306b\u66f4\u65b0\u3057\u3066\u3044\u308b\u2014\u2014\u30d1\u30fc\u30b9\u5931\u6557\u7387\u3092\u76e3\u8996\u3059\u308b\u3053\u3068\u3067\u3001gpt-4o-mini\u306e\u9759\u304b\u306a\u6319\u52d5\u5909\u5316\u30922\u56de\u30ad\u30e3\u30c3\u30c1\u3057\u305f\u30021\u56de\u306f2024\u5e74\u672b\u9803\u3001\u69cb\u9020\u5316\u51fa\u529b\u304c\u3084\u3084\u5197\u9577\u306b\u306a\u3063\u3066JSON\u306e\u524d\u306b\u30e9\u30c3\u30d1\u30fc\u30c6\u30ad\u30b9\u30c8\u3092\u8ffd\u52a0\u3057\u59cb\u3081\u305f\u3068\u304d\u3060\u3063\u305f\u3002<\/p>\n<p><code>confidence<\/code>\u30d5\u30a3\u30fc\u30eb\u30c9\u3082\u6d3b\u304d\u3066\u3044\u308b\u30020.5\u672a\u6e80\u306e\u7d50\u679c\u306f\u81ea\u52d5\u51e6\u7406\u305b\u305a\u624b\u52d5\u30ec\u30d3\u30e5\u30fc\u30ad\u30e5\u30fc\u306b\u9001\u3063\u3066\u3044\u308b\u3002\u30e2\u30c7\u30eb\u304c\u5831\u544a\u3059\u308bconfidence\u304c\u5b9f\u969b\u306e\u7cbe\u5ea6\u3068\u3069\u308c\u3060\u3051\u4e00\u81f4\u3059\u308b\u304b\u306f\u8b70\u8ad6\u306e\u4f59\u5730\u304c\u3042\u308b\u304c\u2014\u2014\u81ea\u5206\u306e\u7d4c\u9a13\u3060\u3068\u3042\u304f\u307e\u3067\u5927\u307e\u304b\u306a\u6307\u6a19\u3067\u3001\u30ad\u30e3\u30ea\u30d6\u30ec\u30fc\u30c8\u3055\u308c\u305f\u78ba\u7387\u3068\u3057\u3066\u306f\u4fe1\u983c\u3067\u304d\u306a\u3044\u2014\u2014\u305d\u308c\u3067\u3082\u4e0d\u78ba\u304b\u306a\u30b1\u30fc\u30b9\u3092\u4ed5\u5206\u3051\u308b\u306e\u306b\u306f\u5f79\u7acb\u3064\u3002<\/p>\n<h2>\u53ef\u89b3\u6e2c\u6027\uff1a\u4e00\u756a\u8efd\u8996\u3057\u3066\u3044\u305f\u90e8\u5206<\/h2>\n<p>\u3053\u308c\u304c\u3053\u306e\u30ea\u30b9\u30c8\u3067\u6700\u3082\u904e\u5c0f\u8a55\u4fa1\u3055\u308c\u3066\u3044\u308b\u30bb\u30af\u30b7\u30e7\u30f3\u3060\u3002\u666e\u901a\u306eAPI\u30b5\u30fc\u30d3\u30b9\u306a\u3089\u8a08\u6e2c\u306f\u6bd4\u8f03\u7684\u30b7\u30f3\u30d7\u30eb\u3060\u2014\u2014\u30ea\u30af\u30a8\u30b9\u30c8\u30ed\u30b0\u3001\u30a8\u30e9\u30fc\u7387\u3001\u30ec\u30a4\u30c6\u30f3\u30b7\u3002AI\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306f\u305d\u308c\u306b\u52a0\u3048\u3066\u65b0\u3057\u3044\u554f\u984c\u304c\u4e57\u3063\u304b\u3063\u3066\u304f\u308b\u2014\u2014\u975e\u6c7a\u5b9a\u7684\u306a\u51fa\u529b\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3054\u3068\u306b\u3070\u3089\u3064\u304f\u30c8\u30fc\u30af\u30f3\u30d9\u30fc\u30b9\u306e\u30b3\u30b9\u30c8\u3001\u30b5\u30a4\u30ec\u30f3\u30c8\u306a\u30e2\u30c7\u30eb\u5909\u66f4\u3001\u7279\u5b9a\u306e\u5165\u529b\u30bf\u30a4\u30d7\u306b\u3060\u3051\u73fe\u308c\u308b\u5931\u6557\u30e2\u30fc\u30c9\u3002<\/p>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u5358\u4f4d\u3067\u8ffd\u8de1\u3057\u3066\u3044\u308b\u306e\u306f\u3053\u308c: \u5165\u529b\u30c8\u30fc\u30af\u30f3\u6570\u3001\u51fa\u529b\u30c8\u30fc\u30af\u30f3\u6570\u3001\u30ec\u30a4\u30c6\u30f3\u30b7\u3001\u30e2\u30c7\u30eb\u540d\u3001\u6210\u529f\/\u5931\u6557\u3001\u30ea\u30c8\u30e9\u30a4\u56de\u6570\u3001\u30d1\u30fc\u30b9\u6210\u529f\/\u5931\u6557\u3001API\u30ec\u30b9\u30dd\u30f3\u30b9\u306e<code>usage<\/code>\u30d5\u30a3\u30fc\u30eb\u30c9\u304b\u3089\u8a08\u7b97\u3057\u305f\u63a8\u5b9a\u30b3\u30b9\u30c8\u3002\u6700\u5f8c\u306e\u3082\u306e\u304c\u7279\u306b\u91cd\u8981\u3060\u3002\u30b3\u30b9\u30c8\u914d\u5206\u3092OpenAI\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u4efb\u305b\u3066\u306f\u3044\u3051\u306a\u3044\u2014\u2014\u30ea\u30af\u30a8\u30b9\u30c8\u5358\u4f4d\u306e\u30c7\u30fc\u30bf\u304c\u3042\u3063\u3066\u521d\u3081\u3066\u3001\u3069\u306e\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u30b9\u30c6\u30fc\u30b8\u3084\u5165\u529b\u30bf\u30a4\u30d7\u304c\u9ad8\u3044\u304b\u308f\u304b\u308b\u3002\u300c\u4eca\u6708AI\u30b3\u30b9\u30c8\u304c40%\u4e0a\u304c\u3063\u305f\u300d\u3060\u3051\u3067\u306f\u4f55\u3082\u89e3\u6c7a\u3067\u304d\u306a\u3044\u3002<\/p>\n<p>\u30e1\u30c8\u30ea\u30af\u30b9\u3068\u306f\u5225\u306b\u3001\u30e9\u30f3\u30c0\u30e0\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u3082\u3084\u3063\u3066\u3044\u308b\u3002\u5b8c\u4e86\u3057\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u306e1\u301c2%\u3092\u4eba\u9593\u304c\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002\u305d\u306e\u4eba\u9593\u306f\u81ea\u5206\u3067\u3001\u5927\u62b5\u91d1\u66dc\u306e\u671d\u306b30\u5206\u3002\u81ea\u52d5\u5316\u3055\u308c\u305f\u691c\u8a3c\u3067\u306f\u306a\u304f\u2014\u2014\u5165\u529b\u3068\u51fa\u529b\u3092\u5b9f\u969b\u306b\u76ee\u3067\u898b\u3066\u3001\u305d\u308c\u3089\u304c\u7b4b\u304c\u901a\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3059\u308b\u3002\u9762\u5012\u3060\u3002\u3067\u3082\u3053\u306e\u7fd2\u6163\u304c\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u30c7\u30b0\u30ec\u30fc\u30c9\u3092\u672c\u756a\u30a4\u30f3\u30b7\u30c7\u30f3\u30c8\u306b\u306a\u308b\u524d\u306b2\u56de\u6355\u307e\u3048\u3066\u304f\u308c\u305f\u3002\u81ea\u52d5\u30e1\u30c8\u30ea\u30af\u30b9\u306f\u300c\u4f55\u304b\u304c\u304a\u304b\u3057\u3044\u300d\u3053\u3068\u3092\u6559\u3048\u3066\u304f\u308c\u308b\u3002\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u306f\u300c\u4f55\u304c\u300d\u300c\u306a\u305c\u300d\u304a\u304b\u3057\u3044\u304b\u3092\u6559\u3048\u3066\u304f\u308c\u308b\u3002<\/p>\n<p>LangSmith\u306f\u6570\u9031\u9593\u8a66\u3057\u305f\u3002\u8907\u6570\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u6301\u3064\u8907\u96d1\u306a\u30c1\u30a7\u30fc\u30f3\u3084\u30de\u30eb\u30c1\u30b9\u30c6\u30c3\u30d7\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u30eb\u30fc\u30d7\u306e\u30c7\u30d0\u30c3\u30b0\u306b\u306f\u672c\u5f53\u306b\u6709\u7528\u3060\u3002\u3046\u3061\u306e\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306f\u305d\u3046\u3058\u3083\u306a\u3044\u2014\u2014\u307b\u307c\u7dda\u5f62\u3060\u2014\u2014\u306e\u3067\u3001\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u306b\u898b\u5408\u3046\u52b9\u679c\u304c\u306a\u304b\u3063\u305f\u3002\u4eca\u306fOpenTelemetry\u3067Grafana\u306b\u30c8\u30ec\u30fc\u30b9\u3092\u9001\u3063\u3066\u3044\u308b\u3002\u521d\u671f\u8a2d\u5b9a\u306f\u591a\u3044\u304c\u3001\u8a08\u6e2c\u304c\u900f\u660e\u3067\u30d9\u30f3\u30c0\u30fc\u30ed\u30c3\u30af\u30a4\u30f3\u3082\u306a\u3044\u3002<\/p>\n<p>\u544a\u767d\u3059\u308b\u3068\u2014\u2014\u6700\u521d\u306e3\u30f6\u6708\u9593\u3001\u53ef\u89b3\u6e2c\u6027\u3092\u307e\u3068\u3082\u306b\u4f5c\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u3002\u300c\u3068\u308a\u3042\u3048\u305a\u52d5\u304b\u3057\u3066\u5f8c\u304b\u3089\u8ffd\u52a0\u3057\u3088\u3046\u300d\u3068\u3044\u3046\u8003\u3048\u3060\u3063\u305f\u304c\u3001\u5f8c\u304b\u3089\u8ffd\u52a0\u3059\u308b\u65b9\u304c\u6700\u521d\u304b\u3089\u4f5c\u308b\u3088\u308a\u4f55\u500d\u3082\u3057\u3093\u3069\u304b\u3063\u305f\u3002\u7279\u306b\u30ec\u30a4\u30c6\u30f3\u30b7\u5206\u6790\u3068\u30b3\u30b9\u30c8\u8ffd\u8de1\u306f\u3001\u521d\u671f\u8a2d\u8a08\u306b\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u3068\u5f8c\u4ed8\u3051\u304c\u304b\u306a\u308a\u96e3\u3057\u3044\u3002\u53ef\u89b3\u6e2c\u6027\u3092\u5f8c\u56de\u3057\u306b\u3057\u305f\u4ee3\u511f\u306f\u3001\u300c\u5f8c\u4ed8\u3051\u3059\u308b\u5de5\u6570\u300d\u3060\u3051\u3058\u3083\u306a\u3044\u3002\u65e9\u3081\u306b\u6c17\u3065\u3051\u305f\u306f\u305a\u306e\u30a4\u30f3\u30b7\u30c7\u30f3\u30c8\u306e\u30b3\u30b9\u30c8\u3082\u542b\u307e\u308c\u308b\u3002\u5148\u306b\u4f5c\u308c\u3001\u305f\u3068\u3048\u6642\u671f\u5c1a\u65e9\u306b\u611f\u3058\u3066\u3082\u3002<\/p>\n<h2>\u4eca\u304b\u3089\u4f5c\u308a\u76f4\u3059\u306a\u3089\u3001\u3053\u3046\u3059\u308b<\/h2>\n<p>\u66d6\u6627\u306a\u300c\u5834\u5408\u306b\u3088\u308b\u300d\u306f\u8a00\u308f\u306a\u3044\u3002\u30bc\u30ed\u304b\u3089\u59cb\u3081\u308b\u306a\u3089\u5b9f\u969b\u3053\u3046\u3059\u308b\u3002<\/p>\n<p><strong>SDK\u3092\u76f4\u63a5\u4f7f\u3046\u3002<\/strong> \u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u304cLLM\u30b3\u30fc\u30eb\u306e\u9023\u7d9a\u3068\u524d\u5f8c\u51e6\u7406\u306a\u3089\u3001LangChain\u306f\u4f7f\u308f\u306a\u3044\u3002\u62bd\u8c61\u5316\u30ec\u30a4\u30e4\u30fc\u304c\u30c7\u30d0\u30c3\u30b0\u3092\u96e3\u3057\u304f\u3059\u308b\u3057\u3001\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u306e\u305f\u3073\u306b\u4f55\u304b\u304c\u58ca\u308c\u308b\uff08langchain 0.2 \u2192 0.3\u306e\u79fb\u884c\u306f\u8f9b\u304b\u3063\u305f\uff09\u3002LangChain\u304c\u52b9\u679c\u3092\u767a\u63ee\u3059\u308b\u306e\u306f\u8907\u96d1\u306a\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u30eb\u30fc\u30d7\u3084\u30de\u30eb\u30c1\u30b9\u30c6\u30c3\u30d7RAG\u30b7\u30b9\u30c6\u30e0\u306e\u3068\u304d\u3002\u7d5e\u3089\u308c\u305f\u672c\u756a\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u5bfe\u3057\u3066\u306f\u3001\u4e0d\u8981\u306a\u8907\u96d1\u3055\u3067\u3057\u304b\u306a\u3044\u3002<\/p>\n<p><strong>\u30ea\u30c8\u30e9\u30a4\u53ef\u80fd\u306a\u30a8\u30e9\u30fc\u3068\u305d\u3046\u3067\u306a\u3044\u30a8\u30e9\u30fc\u3092\u6700\u521d\u304b\u3089\u5206\u3051\u308b\u3053\u3068\u3002<\/strong> \u30ea\u30c8\u30e9\u30a4\u56de\u6570\u3001\u6700\u7d42\u7d50\u679c\u3001\u5177\u4f53\u7684\u306a\u5931\u6557\u7406\u7531\u3092\u30ed\u30b0\u306b\u6b8b\u3059\u3002\u6df1\u591c11\u6642\u306b\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u3068\u304d\u3001\u305d\u308c\u3092\u81ea\u5206\u306b\u611f\u8b1d\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p><strong>\u30ea\u30af\u30a8\u30b9\u30c8\u5358\u4f4d\u306e\u30b3\u30b9\u30c8\u8ffd\u8de1\u3092\u6700\u521d\u304b\u3089\u5165\u308c\u308b\u3053\u3068\u3002<\/strong> OpenAI\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u4e00\u65e5\u3042\u305f\u308a\u306e\u652f\u51fa\u30a2\u30e9\u30fc\u30c8\u3082\u8a2d\u5b9a\u3059\u308b\u2014\u2014\u81ea\u5206\u306f$50\/\u65e5\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3002\u3053\u308c\u304c2\u56de\u767a\u52d5\u3057\u305f\u3002\u4e21\u65b9\u3068\u3082\u30d0\u30b0\u304c\u539f\u56e0\u3067\u3001\u6b63\u5f53\u306a\u8ca0\u8377\u3067\u306f\u306a\u304b\u3063\u305f\u3002<\/p>\n<p><strong>\u65b0\u3057\u3044\u30d7\u30ed\u30f3\u30d7\u30c8\u3068\u30e2\u30c7\u30eb\u5909\u66f4\u306f\u30ab\u30ca\u30ea\u30a2<a href=\"https:\/\/m.do.co\/c\/06956e5e2802\" title=\"DigitalOcean\u3067\u30c7\u30d7\u30ed\u30a4\" rel=\"nofollow sponsored\" target=\"_blank\">\u30c7\u30d7\u30ed\u30a4<\/a>\u3059\u308b\u3053\u3068\u3002<\/strong> \u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e10%\u3092\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u6d41\u3057\u3066\u6570\u6642\u9593\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u898b\u3066\u304b\u3089\u5168\u4f53\u306b\u5c55\u958b\u3059\u308b\u3002\u65b0\u3057\u3044\u30e2\u30c7\u30eb\u304c\u7279\u5b9a\u306e\u30bf\u30b9\u30af\u3067\u5fc5\u305a\u3057\u3082\u826f\u3044\u7d50\u679c\u3092\u51fa\u3059\u3068\u306f\u9650\u3089\u306a\u3044\u3002gpt-4o\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u5f8c\u306b\u5206\u985e\u51fa\u529b\u306e\u30ce\u30a4\u30ba\u304c\u5897\u3048\u3066\u3001\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3057\u305f\u3053\u3068\u304c2\u56de\u3042\u308b\u3002<\/p>\n<p><strong>Pydantic\u3067\u51fa\u529b\u3092\u691c\u8a3c\u3059\u308b\u3053\u3068\u3002<\/strong> \u30e2\u30c7\u30eb\u304c\u6307\u793a\u306b\u5f93\u3046\u306e\u304c\u4e0a\u624b\u3044\u304b\u3089\u3058\u3083\u306a\u3044\u2014\u2014\u5b9f\u969b\u304b\u306a\u308a\u4e0a\u624b\u3044\u2014\u2014\u3060\u304c\u300c\u304b\u306a\u308a\u4e0a\u624b\u3044\u300d\u3067\u306f\u3001\u670815,000\u30ea\u30af\u30a8\u30b9\u30c8\u30671%\u306e\u5931\u6557\u7387\u304c150\u4ef6\u306e\u7834\u640d\u30ec\u30b3\u30fc\u30c9\u3092\u610f\u5473\u3059\u308b\u5834\u5408\u306b\u306f\u4e0d\u5341\u5206\u3060\u3002\u305d\u308c\u306f\u8a31\u5bb9\u3067\u304d\u306a\u3044\u3002<\/p>\n<p>100%\u81ea\u4fe1\u304c\u3042\u308b\u3068\u306f\u8a00\u3048\u306a\u3044\u2014\u2014\u7279\u306b\u30ad\u30e5\u30fc\u30a4\u30f3\u30b0\u3084\u4e26\u884c\u7ba1\u7406\u5468\u308a\u306f\u300110\u500d\u306e\u8ca0\u8377\u306b\u306a\u3063\u305f\u3089\u8a2d\u8a08\u3092\u898b\u76f4\u3059\u5fc5\u8981\u304c\u3042\u308b\u3060\u308d\u3046\u3002\u3067\u3082\u3001\u793e\u5185AI\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3092\u672c\u756a\u3067\u52d5\u304b\u3057\u59cb\u3081\u3066\u3061\u3087\u3063\u3068\u30ac\u30bf\u304c\u6765\u3066\u304d\u305f\u611f\u3058\u304c\u3042\u308b\u306a\u3089\u3001\u3053\u308c\u306f6\u30f6\u6708\u524d\u306b\u8ab0\u304b\u306b\u6e21\u3057\u3066\u304a\u3044\u3066\u307b\u3057\u304b\u3063\u305f\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8\u3060\u3002\u6df1\u591c2\u6642\u306e\u30a2\u30e9\u30fc\u30c8\u306f\u9632\u3052\u308b\u3002\u5927\u62b5\u306f\u3001\u305d\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53bb\u5e74\u306e11\u6708\u3001\u6df1\u591c2\u6642\u306bSlack\u306e\u901a\u77e5\u3067\u76ee\u304c\u899a\u3081\u305f\u3002\u30b3\u30f3\u30c6\u30f3\u30c4\u5206\u985e\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u304c6\u6642\u9593\u52d5\u304d\u7d9a\u3051\u3066\u3001OpenAI API\u306e\u8cbb\u7528\u3092$340\u6eb6\u304b\u3057\u3066\u3044\u305f\u3002\u7d50\u679c\u7269\u306e\u7d0470%\u306f\u30b4\u30df\u3060\u3063\u305f\u3002\u539f\u56e0\u306f\u30ea\u30c8\u30e9\u30a4\u30ed\u30b8\u30c3\u30af\u306e\u30d0\u30b0\u2014\u2014\u306a\u305c\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5931\u6557\u3057\u3066\u3044\u308b\u304b\u3092\u533a\u5225\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u3002 context_length_exceed<\/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-28","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/28","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=28"}],"version-history":[{"count":3,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/posts\/28\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rebalai.com\/ja\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}