{"id":11736,"date":"2024-11-20T18:52:07","date_gmt":"2024-11-20T09:52:07","guid":{"rendered":"https:\/\/highreso.jp\/edgehub\/?p=11736"},"modified":"2024-12-18T19:37:40","modified_gmt":"2024-12-18T10:37:40","slug":"llamaindexrag","status":"publish","type":"post","link":"https:\/\/highreso.jp\/edgehub\/machinelearning\/llamaindexrag.html","title":{"rendered":"LlamaIndex\u3067RAG\u3092\u69cb\u7bc9\uff01\u300eHUNTER\u00d7HUNTER\u300f\u306b\u3064\u3044\u3066\u805e\u304f"},"content":{"rendered":"\n<p><span class=\"swl-format-2\">LlamaIndex\u3067\u306f\u3001\u5916\u90e8\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3057\u3066\u8cea\u554f\u306b\u56de\u7b54\u3059\u308bRAG\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u300eHUNTER\u00d7HUNTER\u300f\u306eWikipedia\u3092\u8aad\u307f\u8fbc\u3093\u3067\u8cea\u554f\u306b\u56de\u7b54\u3059\u308bRAG\u3092\u4f5c\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-balloon_box\">\u3056\u3063\u304f\u308a\u8a00\u3046\u3068<\/p>\n\n\n\n<div class=\"wp-block-group is-style-big_icon_good\"><div class=\"wp-block-group__inner-container\">\n<ul class=\"wp-block-list\">\n<li>LlamaIndex\u3067\u306f\u5916\u90e8\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3057\u3066\u8cea\u554f\u306b\u56de\u7b54\u3059\u308bRAG\u3092\u69cb\u7bc9\u3067\u304d\u308b<\/li>\n\n\n\n<li>\u300eHUNTER\u00d7HUNTER\u300f\u306eWikipedia\u3092\u8aad\u307f\u8fbc\u3093\u3067\u8cea\u554f\u306b\u56de\u7b54\u3059\u308bRAG\u3092\u4f5c\u6210\u3059\u308b<\/li>\n\n\n\n<li>\u65e5\u672c\u8a9e\u306e\u30ed\u30fc\u30ab\u30ebLLM\u300cLlama-3-ELYZA-JP-8B\u300d\u3092\u4f7f\u7528<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">LlamaIndex\u3067\u300eHUNTER\u00d7HUNTER\u300f\u3092\u56de\u7b54\u3059\u308bRAG\u3092\u69cb\u7bc9<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"600\" height=\"300\" src=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/09\/2_midashi_anime0921.jpg\" alt=\"\u898b\u51fa\u3057\u753b\u50cf\" class=\"wp-image-11883\" srcset=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/09\/2_midashi_anime0921.jpg 600w, https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/09\/2_midashi_anime0921-300x150.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>LlamaIndex\u3067\u306f\u3001\u5916\u90e8\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3057\u3066\u8cea\u554f\u306b\u56de\u7b54\u3059\u308bRAG\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-format-2\">\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u300eHUNTER\u00d7HUNTER\u300f\u306eWikipedia\u3092\u8aad\u307f\u8fbc\u3093\u3067\u8cea\u554f\u306b\u56de\u7b54\u3059\u308bRAG\u3092\u4f5c\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<p>RAG\u306e\u69cb\u7bc9\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-group is-style-big_icon_good\"><div class=\"wp-block-group__inner-container\">\n<ul class=\"wp-block-list\">\n<li>LLM\u306e\u8a2d\u5b9a<\/li>\n\n\n\n<li>\u57cb\u3081\u8fbc\u307f\u30e2\u30c7\u30eb\u306e\u8a2d\u5b9a<\/li>\n\n\n\n<li>Wikipedia\u30da\u30fc\u30b8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u62bd\u51fa<\/li>\n\n\n\n<li>\u30c6\u30ad\u30b9\u30c8\u3092\u30c1\u30e3\u30f3\u30af\u306b\u5206\u5272<\/li>\n\n\n\n<li>\u30d9\u30af\u30c8\u30eb\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u4f5c\u6210<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"p-blogParts post_content\" data-partsID=\"4485\"><p><div class=\"p-adBox -ranking -border-on\" data-id=\"4507\" data-ad=\"ranking\"><div class=\"p-adBox__title -rank1\">1\u6642\u959350\u5186\u304b\u3089\u4f7f\u3048\u308bGPU\u30af\u30e9\u30a6\u30c9\u300cGPUSOROBAN\u300d<\/div><div class=\"p-adBox__body\"><div class=\"p-adBox__img\"><div class=\"centerw250\"><a href=\"https:\/\/soroban.highreso.jp\/?utm_medium=edgehub&utm_source=edgehub&utm_campaign=highend-boxtop&adid=edgehub\" rel=\"nofollow\" referrerpolicy=\"no-referrer-when-downgrade\"><img decoding=\"async\" src=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/06\/gpusorobanlllm_banner.jpg\" alt=\"GPUSOROBAN\"><\/a><\/div><\/div><div class=\"p-adBox__details\"><div class=\"p-adBox__star c-reviewStars\"><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><i class=\"icon-star-full\"><\/i><\/div><div class=\"p-adBox__price u-thin u-fz-s\">GPU\u306e\u30b3\u30b9\u30c8\u3067\u304a\u60a9\u307f\u306e\u65b9\u306b\uff01<\/div><div class=\"p-adBox__desc\">\u751f\u6210AI\u30fbLLM\u5411\u3051\u306e\u9ad8\u901fGPU\u3092\u696d\u754c\u6700\u5b89\u7d1a\u306e1\u6642\u959350\u5186\u304b\u3089\u5229\u7528\u3067\u304d\u307e\u3059\u3002\r\n\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u74b0\u5883\u3055\u3048\u3042\u308c\u3070\u3001GPU\u30b5\u30fc\u30d0\u30fc\u3092\u3059\u3050\u306b\u4f7f\u3048\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8d77\u52d5\u3057\u3066\u3044\u308b\u3068\u304d\u306e\u307f\u306e\u8ab2\u91d1\u3067\u3001\u30b3\u30b9\u30c8\u3092\u6700\u5c0f\u5316\u3067\u304d\u307e\u3059\u3002\r\n<\/div><\/div><\/div><div class=\"p-adBox__btns\"><a href=\"https:\/\/soroban.highreso.jp\/compute\/?utm_medium=edgehub&utm_source=edgehub&utm_campaign=boxtop&adid=edgehub\" class=\"p-adBox__btn -btn1\" target=\"_blank\" rel=\"noopener nofollow\">\u516c\u5f0f\u30b5\u30a4\u30c8\u3092\u898b\u308b<\/a><a href=\"https:\/\/soroban.highreso.jp\/download\/compute-catalog\/?utm_medium=edgehub&utm_source=edgehub&utm_campaign=boxtop&adid=edgehub\" class=\"p-adBox__btn -btn2\" target=\"_blank\" rel=\"noopener nofollow\">\u8cc7\u6599\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/div><\/div><\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">LlamaIndex RAG\u306e\u5b9f\u884c\u74b0\u5883<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"600\" height=\"300\" src=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/08\/cat41_midashi.jpg\" alt=\"\u898b\u51fa\u3057\u753b\u50cf\" class=\"wp-image-9941\" srcset=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/08\/cat41_midashi.jpg 600w, https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/08\/cat41_midashi-300x150.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u7528\u610f\u3057\u305f\u5b9f\u884c\u74b0\u5883\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-group is-style-big_icon_good\"><div class=\"wp-block-group__inner-container\">\n<ul class=\"wp-block-list\">\n<li>GPU\uff1aNVIDIA A100 80GB<\/li>\n\n\n\n<li>GPU\u30e1\u30e2\u30ea\uff08VRAM\uff09\uff1a80GB<\/li>\n\n\n\n<li>OS \uff1aUbuntu 22.04<\/li>\n\n\n\n<li>Docker<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Docker\u3067\u74b0\u5883\u69cb\u7bc9<\/h3>\n\n\n\n<p><span class=\"swl-format-2\">Docker\u3092\u4f7f\u7528\u3057\u3066LlamaIndex\u306e\u74b0\u5883\u69cb\u7bc9\u3092\u3057\u307e\u3059<\/span><\/p>\n\n\n\n<p>Docker\u306e\u4f7f\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/06\/ubuntudocker-eyecatch-300x158.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/highreso.jp\/edgehub\/machinelearning\/ubuntudocker.html\">Ubuntu\u306bDocker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff01GPU\u3092\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u4f7f\u3046\u65b9\u6cd5<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">GPU\u306e\u74b0\u5883\u69cb\u7bc9\u3067\u306f\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u4e0d\u4e00\u81f4\u306b\u3088\u308b\u30a8\u30e9\u30fc\u304c\u983b\u767a\u3057\u307e\u3059\u3002 Docker\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u3053\u306e\u3088\u3046\u306a\u4f9d\u5b58\u95a2\u4fc2\u306e\u30a8\u30e9\u30fc\u3092\u56de\u907f\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<div class=\"swell-block-step\" data-num-style=\"circle\">\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">Dockerfile\u306e\u4f5c\u6210<\/div><div class=\"swell-block-step__body\">\n<p>Ubuntu\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u3001Dockerfile\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>mkdir llamaindex\ncd llamaindex\nnano Dockerfile<\/code><\/pre>\n\n\n\n<p>Dockerfile\u306b\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code># \u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8(CUDA)\u306e\u6307\u5b9a\nFROM nvidia\/cuda:12.1.0-cudnn8-devel-ubuntu22.04\n\n# \u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nRUN apt-get update &amp;&amp; apt-get install -y python3-pip python3-venv git nano curl\n\nRUN curl -fsSL https:\/\/ollama.com\/install.sh | sh\n\n# \u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8a2d\u5b9a\nWORKDIR \/app\n\n# \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\nCOPY . \/app\n\n# Python\u4eee\u60f3\u74b0\u5883\u306e\u4f5c\u6210\nRUN python3 -m venv \/app\/.venv\n\n# \u4eee\u60f3\u74b0\u5883\u3092\u30a2\u30af\u30c6\u30a3\u30d9\u30fc\u30c8\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092.bashrc\u306b\u8ffd\u52a0\nRUN echo \"source \/app\/.venv\/bin\/activate\" &gt;&gt; \/root\/.bashrc\n\n# JupyterLab\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nRUN \/app\/.venv\/bin\/pip install Jupyter jupyterlab\n\n# LlamaIndex\u95a2\u9023\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nRUN \/app\/.venv\/bin\/pip install ollama llama-index llama-index-core llama-index-readers-file llama-index-llms-ollama llama-index-embeddings-huggingface llama-index-readers-web\n\n# \u30b3\u30f3\u30c6\u30ca\u306e\u8d77\u52d5\u6642\u306bbash\u3092\u5b9f\u884c\nCMD &#091;\"\/bin\/bash\"]<\/code><\/pre>\n\n\n\n<p class=\"is-style-icon_info\">[Ctrl + S]\u30ad\u30fc\u3067\u5909\u66f4\u5185\u5bb9\u3092\u4fdd\u5b58\u3057\u3001[Ctrl + X]\u30ad\u30fc\u3067\u7de8\u96c6\u30e2\u30fc\u30c9\u304b\u3089\u629c\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-onborder_ttl2\" data-colset=\"col3\"><div class=\"cap_box_ttl\"><span>\u30b3\u30de\u30f3\u30c9\u306e\u8aac\u660e<\/span><\/div><div class=\"cap_box_content\">\n<p><span class=\"swl-format-2\">FROM nvidia\/cuda:12.1.0-cudnn8-devel-ubuntu22.04<\/span><\/p>\n\n\n\n<p>CUDA12.1\u306e\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-format-2\">RUN apt-get update &amp;&amp; apt-get install -y python3-pip python3-venv git nano curl<\/span><\/p>\n\n\n\n<p>\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-format-1\"><span class=\"swl-format-2\">RUN curl -fsSL https:\/\/ollama.com\/install.sh | sh<\/span><\/span><\/p>\n\n\n\n<p>Linux\u7248\u306eOllama\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002Python\u3067Ollama\u3092\u52d5\u304b\u3059\u969b\u306b\u3082Linux\u7248Ollama\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><span class=\"swl-format-2\">RUN \/app\/.venv\/bin\/pip install Jupyter jupyterlab<\/span><\/p>\n\n\n\n<p>JupyterLab\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-format-2\">RUN \/app\/.venv\/bin\/pip install ollama llama-index llama-index-core llama-index-readers-file llama-index-llms-ollama llama-index-embeddings-huggingface llama-index-readers-web<\/span><\/p>\n\n\n\n<p>LlamaIndex\u3068Ollama\u95a2\u9023\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>LLM\u306fOllama\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u52d5\u304b\u3057\u307e\u3059\u306e\u3067\u3001PyTorch\u3084Transformer\u306f\u5225\u9014\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">docker-compose.yml\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/div><div class=\"swell-block-step__body\">\n<p>docker-compose.yml\u3067Docker\u30b3\u30f3\u30c6\u30ca\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>docker-compose.yml\u306eYAML\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u958b\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>nano docker-compose.yml<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001YAML\u30d5\u30a1\u30a4\u30eb\u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>services:\n  llamaindex:\n    build:\n      context: .\n      dockerfile: Dockerfile\n    image: llamaindex\n    runtime: nvidia\n    container_name: llamaindex\n    ports:\n      - \"8888:8888\"\n    volumes:\n      - .:\/app\/llamaindex\n    deploy:\n      resources:\n        reservations:\n          devices:\n            - driver: nvidia\n              count: 1\n              capabilities: &#091;gpu]\n    command: &gt;\n      bash -c '\/usr\/local\/bin\/ollama serve &amp; \/app\/.venv\/bin\/jupyter lab --ip=\"*\" --port=8888 --NotebookApp.token=\"\" --NotebookApp.password=\"\" --no-browser --allow-root'<\/code><\/pre>\n\n\n\n<p class=\"is-style-icon_info\">[Ctrl + S]\u30ad\u30fc\u3067\u5909\u66f4\u5185\u5bb9\u3092\u4fdd\u5b58\u3057\u3001[Ctrl + X]\u30ad\u30fc\u3067\u7de8\u96c6\u30e2\u30fc\u30c9\u304b\u3089\u629c\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-onborder_ttl2\" data-colset=\"col3\"><div class=\"cap_box_ttl\"><span>\u30b3\u30de\u30f3\u30c9\u306e\u8aac\u660e<\/span><\/div><div class=\"cap_box_content\">\n<p><span class=\"swl-format-2\">bash -c &#8216;\/usr\/local\/bin\/ollama serve &amp; \/app\/.venv\/bin\/jupyter lab &#8211;ip=&#8221;*&#8221; &#8211;port=8888 &#8211;NotebookApp.token=&#8221;&#8221; &#8211;NotebookApp.password=&#8221;&#8221; &#8211;no-browser &#8211;allow-root&#8217;<\/span><\/p>\n\n\n\n<p><code>bash -c '\/usr\/local\/bin\/ollama serve<\/code><\/p>\n\n\n\n<p>Ollama Server\u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002Python\u306eOllama\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u3001Ollama Server\u3092\u8d77\u52d5\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n\n\n\n\n<p><code>&amp; \/app\/.venv\/bin\/jupyter lab --ip=\"*\" --port=8888 --NotebookApp.token=\"\" --NotebookApp.password=\"\" --no-browser --allow-root'<\/code><\/p>\n\n\n\n<p>JupyterLab\u30928888\u756a\u30dd\u30fc\u30c8\u3067\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">Docker\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5<\/div><div class=\"swell-block-step__body\">\n<p>Dockerfile\u304b\u3089\u30d3\u30eb\u30c9\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>docker compose up<\/code><\/pre>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>Docker\u306e\u8d77\u52d5\u5f8c\u306b\u30d6\u30e9\u30a6\u30b6\u306e\u691c\u7d22\u7a93\u306b&#8221;localhost:8888&#8243;\u3092\u5165\u529b\u3059\u308b\u3068\u3001Jupyter Lab\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>localhost:8888<\/code><\/pre>\n<\/div><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">LlamaIndex RAG\u306e\u5b9f\u88c5<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"600\" height=\"300\" src=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/08\/buil12_midashi.jpg\" alt=\"\u898b\u51fa\u3057\u753b\u50cf\" class=\"wp-image-9752\" srcset=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/08\/buil12_midashi.jpg 600w, https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/08\/buil12_midashi-300x150.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p><span class=\"swl-format-2\">Docker\u30b3\u30f3\u30c6\u30ca\u3067\u8d77\u52d5\u3057\u305fJupyter Lab\u4e0a\u3067RAG\u306e\u5b9f\u88c5\u3092\u3057\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<div class=\"swell-block-step\" data-num-style=\"circle\">\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">LLM\u306e\u8a2d\u5b9a<\/div><div class=\"swell-block-step__body\">\n<p><span class=\"swl-format-2\">\u65e5\u672c\u8a9eLLM\u30e2\u30c7\u30eb\u300ctokyotech-llm-Llama-3.1-Swallow-8B-Instruct-v0.1-Q4_K_M.gguf\u300d\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>!curl -L -o tokyotech-llm-Llama-3.1-Swallow-8B-Instruct-v0.1-Q4_K_M.gguf \"https:\/\/huggingface.co\/mmnga\/tokyotech-llm-Llama-3.1-Swallow-8B-Instruct-v0.1-gguf\/resolve\/main\/tokyotech-llm-Llama-3.1-Swallow-8B-Instruct-v0.1-Q4_K_M.gguf?download=true\"<\/code><\/pre>\n\n\n\n<p>tokyotech-llm-Llama-3.1-Swallow\u306b\u3064\u3044\u3066\u306f\u3001\u5225\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/10\/swallow3_1-eyecatch-300x158.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/highreso.jp\/edgehub\/machinelearning\/llama31swallow.html\">\u3010Llama 3.1 Swallow\u3011\u6771\u5de5\u5927\u306e\u65e5\u672c\u8a9e\u306b\u5f37\u3044LLM\uff01<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Llama 3.1 Swallow\u306f\u3001Meta\u306eLlama 3.1\u3092\u30d9\u30fc\u30b9\u306b\u3001\u6771\u5de5\u5927\u30fb\u7523\u7dcf\u7814\u304c\u65e5\u672c\u8a9e\u80fd\u529b\u3092\u5f37\u5316\u3057\u305fLLM\u3067\u3059\u3002 \u30aa\u30fc\u30d7\u30f3\u306a\u65e5\u672c\u8a9eLLM\u306e\u4e2d\u3067\u3001\u65e5\u672c\u8a9e\u306e\u8a00\u8a9e\u7406\u89e3\u30fb\u751f\u6210\u30bf\u30b9\u30af\u306b\u304a\u3044\u3066&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n\n\n\n\n<p>LLM\u306e\u5b9f\u884c\u306b\u306fOllama\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-format-2\">LLM\u306e\u30e2\u30c7\u30eb\u304cOllama\u4f7f\u3048\u308b\u3088\u3046\u306b\u30d7\u30ed\u30f3\u30d7\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u3066\u3001\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>import ollama\nfrom llama_index.core import Settings\nfrom llama_index.llms.ollama import Ollama\n\nmodelfile='''\nFROM .\/tokyotech-llm-Llama-3.1-Swallow-8B-Instruct-v0.1-Q4_K_M.gguf\nTEMPLATE \"\"\"{{ if .System }}&lt;|start_header_id|&gt;system&lt;|end_header_id|&gt;\n\n{{ .System }}&lt;|eot_id|&gt;{{ end }}{{ if .Prompt }}&lt;|start_header_id|&gt;user&lt;|end_header_id|&gt;\n\n{{ .Prompt }}&lt;|eot_id|&gt;{{ end }}&lt;|start_header_id|&gt;assistant&lt;|end_header_id|&gt;\n\n{{ .Response }}&lt;|eot_id|&gt;\"\"\"\nPARAMETER stop \"&lt;|start_header_id|&gt;\"\nPARAMETER stop \"&lt;|end_header_id|&gt;\"\nPARAMETER stop \"&lt;|eot_id|&gt;\"\nPARAMETER stop \"&lt;|reserved_special_token\"\n'''\n\nollama.create(model='swallow3_1', modelfile=modelfile)\nSettings.llm = Ollama(model=\"swallow3_1\", request_timeout=360.0)<\/code><\/pre>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-onborder_ttl2\" data-colset=\"col3\"><div class=\"cap_box_ttl\"><span>\u30b3\u30fc\u30c9\u306e\u8aac\u660e<\/span><\/div><div class=\"cap_box_content\">\n<p><span class=\"swl-format-2\">FROM .\/tokyotech-llm-Llama-3.1-Swallow-8B-Instruct-v0.1-Q4_K_M.gguf<\/span><\/p>\n\n\n\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30e2\u30c7\u30eb\u306e\u30d1\u30b9\u304c\u5165\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-format-2\">TEMPLATE &#8220;&#8221;&#8221;{{ if .System }}&lt;|start_header_id|&gt;system&lt;|end_header_id|&gt;&#8230;<\/span><\/p>\n\n\n\n<p>\u30e2\u30c7\u30eb\u3067\u4f7f\u7528\u3059\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u5165\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-format-2\">ollama.create(model=&#8217;elyza8b&#8217;, modelfile=modelfile)<\/span><\/p>\n\n\n\n<p>\u30e2\u30c7\u30eb\u3068\u30d7\u30ed\u30f3\u30d7\u30c8\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3063\u3066Ollama\u7528\u306e\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<code>model<\/code>\u306b\u306fOllama\u3067\u547c\u3073\u51fa\u3059\u969b\u306b\u4f7f\u7528\u3059\u308b\u540d\u524d\u3092\u3064\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-format-2\">Settings.llm = Ollama(model=&#8221;elyza8b&#8221;, request_timeout=360.0)<\/span><\/p>\n\n\n\n<p><code>Settings.llm<\/code> \u306f\u3001LlamaIndex\u306b\u304a\u3051\u308bLLM\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002LlamaIndex\u3067LLM\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u3001\u81ea\u52d5\u7684\u306b\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u8a2d\u5b9a\u3057\u305fLLM\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><code> Ollama(model=\"elyza8b\", request_timeout=360.0)<\/code><\/p>\n\n\n\n<p>Ollama\u306e\u30e2\u30c7\u30eb\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u6642\u9593\u3092360\u79d2\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/div><\/div>\n\n\n\n<p class=\"is-style-balloon_box\">ollama.create\u306e\u30a8\u30e9\u30fc\u300cinvalid digest format\u300d\u306e\u89e3\u6d88\u65b9\u6cd5<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/12\/eyecatch_ollama_create_error-300x157.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/highreso.jp\/edgehub\/machinelearning\/ollama-create-error.html\">ollama.create\u306e\u30a8\u30e9\u30fc\u300cResponseError: invalid digest format\u300d<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u5916\u90e8\u306eLLM\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u3001ollama.create\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u300cResponseError:invalid digest format\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001\u3053\u306e\u30a8\u30e9&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<p class=\"is-style-balloon_box\">Ollama\u306e\u8a73\u3057\u3044\u4f7f\u3044\u65b9\u306f\u3001\u5225\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img decoding=\"async\" src=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/08\/ollamapython-eyecatch-300x158.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/highreso.jp\/edgehub\/machinelearning\/ollamapython.html\">Ollama\u3092Python\u3067\u4f7f\u3044\u305f\u3044\uff01\u30ed\u30fc\u30ab\u30ebLLM\u3092\u5feb\u9069\u306b\u52d5\u304b\u3059\uff01<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">ollama-python\u306fPython\u74b0\u5883\u3067Ollama\u304c\u4f7f\u3048\u308b\u7121\u6599\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002 ollama-python\u3092\u5229\u7528\u3059\u308c\u3070\u3001\u30ed\u30fc\u30ab\u30ebLLM\u3092API\u3067\u7c21\u5358\u306b\u6d3b\u7528\u3067\u304d\u305f\u308a\u3001RAG\u3084\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3078\u306e\u7d71\u5408\u3082&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div><\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\" data-num=\"2\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u57cb\u3081\u8fbc\u307f\u30e2\u30c7\u30eb\u306e\u8a2d\u5b9a<\/div><div class=\"swell-block-step__body\">\n<p>\u30c6\u30ad\u30b9\u30c8\u3092\u30d9\u30af\u30c8\u30eb\u8868\u73fe\u306b\u5909\u63db\u3059\u308b\u57cb\u3081\u8fbc\u307f\u30e2\u30c7\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-format-2\">\u65e5\u672c\u8a9e\u6027\u80fd\u304c\u9ad8\u304f\u3001\u7121\u6599\u3067\u4f7f\u3048\u308b\u57cb\u3081\u8fbc\u307f\u30e2\u30c7\u30eb\u300cintfloat\/multilingual-e5-large\u300d<\/span>\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>from llama_index.embeddings.huggingface import HuggingFaceEmbedding\n\nSettings.embed_model = HuggingFaceEmbedding(model_name=\"intfloat\/multilingual-e5-large\")<\/code><\/pre>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-onborder_ttl2\" data-colset=\"col3\"><div class=\"cap_box_ttl\"><span>\u30b3\u30fc\u30c9\u306e\u8aac\u660e<\/span><\/div><div class=\"cap_box_content\">\n<p><span class=\"swl-format-2\">Settings.embed_model<\/span><\/p>\n\n\n\n<p>\u57cb\u3081\u8fbc\u307f\u30e2\u30c7\u30eb\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002LlamaIndex\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210\u6642\u306b\u57cb\u3081\u8fbc\u307f\u30e2\u30c7\u30eb\u304c\u81ea\u52d5\u7684\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\" data-num=\"3\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">Wikipedia\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u3092\u62bd\u51fa<\/div><div class=\"swell-block-step__body\">\n<p><span class=\"swl-format-2\">Wikipedia\u304b\u3089\u30c6\u30ad\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3057\u3066\u3001\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<p>Wikipedia\u306e\u300e<a href=\"https:\/\/ja.wikipedia.org\/wiki\/HUNTER%C3%97HUNTER\">HUNTER\u00d7HUNTER<\/a>\u300f\u306b\u95a2\u3059\u308b\u30da\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>from llama_index.readers.web import SimpleWebPageReader\ndocuments = SimpleWebPageReader(html_to_text=True).load_data(\n    &#091;\"https:\/\/ja.wikipedia.org\/wiki\/HUNTER%C3%97HUNTER\",\n    \"https:\/\/ja.wikipedia.org\/wiki\/HUNTER%C3%97HUNTER%E3%81%AE%E7%99%BB%E5%A0%B4%E4%BA%BA%E7%89%A9\",\n    \"https:\/\/ja.wikipedia.org\/wiki\/%E5%B9%BB%E5%BD%B1%E6%97%85%E5%9B%A3\",\n    \"https:\/\/ja.wikipedia.org\/wiki\/%E3%82%BE%E3%83%AB%E3%83%87%E3%82%A3%E3%83%83%E3%82%AF%E5%AE%B6\"]\n)<\/code><\/pre>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-onborder_ttl2\" data-colset=\"col3\"><div class=\"cap_box_ttl\"><span>\u30b3\u30fc\u30c9\u306e\u8aac\u660e<\/span><\/div><div class=\"cap_box_content\">\n<p><span class=\"swl-format-1\"><span class=\"swl-format-2\">SimpleWebPageReader(html_to_text=True).load_data()<\/span><\/span><\/p>\n\n\n\n<p>\u6307\u5b9a\u3057\u305fWeb\u30da\u30fc\u30b8\u304b\u3089\u53d6\u5f97\u3057\u305fHTML\u30c7\u30fc\u30bf\u3092\u30c6\u30ad\u30b9\u30c8\u5f62\u5f0f\u3067\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<\/div><\/div>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\" data-num=\"4\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u30c6\u30ad\u30b9\u30c8\u3092\u30c1\u30e3\u30f3\u30af\u306b\u5206\u5272<\/div><div class=\"swell-block-step__body\">\n<p><span class=\"swl-format-2\">\u8aad\u307f\u8fbc\u3093\u3060\u30c7\u30fc\u30bf\u3092\u30c1\u30e3\u30f3\u30af\u306b\u5206\u5272\u3057\u3001\u5404\u30c1\u30e3\u30f3\u30af\u3092\u30ce\u30fc\u30c9\u3068\u3057\u3066\u51e6\u7406\u3057\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<p>\u30ce\u30fc\u30c9\u306f\u52b9\u7387\u7684\u306a\u691c\u7d22\u3084\u30af\u30a8\u30ea\u51e6\u7406\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u305f\u3081\u3001\u30e1\u30bf\u30c7\u30fc\u30bf\u3084\u95a2\u4fc2\u60c5\u5831\u3092\u542b\u3080\u5358\u4f4d\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>from llama_index.core import Settings\nfrom llama_index.core.node_parser import SentenceSplitter\nimport tiktoken\n\nsplitter = SentenceSplitter(\n    separator=\" \",\n    chunk_size=1000,\n    chunk_overlap=100,\n    paragraph_separator=\"\\n\\n\\n\",\n    secondary_chunking_regex=\"&#091;^,.;\u3002]+&#091;,.;\u3002]?\")\n\nnodes = splitter.get_nodes_from_documents(documents)\nnodes&#091;60:63]<\/code><\/pre>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-onborder_ttl2\" data-colset=\"col3\"><div class=\"cap_box_ttl\"><span>\u30b3\u30fc\u30c9\u306e\u8aac\u660e<\/span><\/div><div class=\"cap_box_content\">\n<p><span class=\"swl-format-2\">SentenceSplitter()<\/span><\/p>\n\n\n\n<p><code>separator=\" \"<\/code>: \u6587\u3092\u5206\u5272\u3059\u308b\u969b\u306b\u4f7f\u7528\u3059\u308b\u30bb\u30d1\u30ec\u30fc\u30bf\u30fc\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u30b9\u30da\u30fc\u30b9\u304c\u6307\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u30b9\u30da\u30fc\u30b9\u306b\u3088\u3063\u3066\u6587\u3092\u5206\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>chunk_size=1000<\/code>: \u5404\u30c1\u30e3\u30f3\u30af\u306e\u6700\u5927\u30c8\u30fc\u30af\u30f3\u6570\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>chunk_overlap=100<\/code>: \u30c1\u30e3\u30f3\u30af\u9593\u3067\u30aa\u30fc\u30d0\u30fc\u30e9\u30c3\u30d7\u3055\u305b\u308b\u30c8\u30fc\u30af\u30f3\u6570\u3067\u3059\u3002\u30aa\u30fc\u30d0\u30fc\u30e9\u30c3\u30d7\u3092\u6301\u305f\u305b\u308b\u3053\u3068\u3067\u3001\u30c6\u30ad\u30b9\u30c8\u9593\u306e\u6587\u8108\u3092\u4fdd\u3061\u306a\u304c\u3089\u6b21\u306e\u30c1\u30e3\u30f3\u30af\u306b\u7d9a\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>paragraph_separator=\"\\n\\n\\n\"<\/code>: \u30d1\u30e9\u30b0\u30e9\u30d5\uff08\u6bb5\u843d\uff09\u3092\u5206\u5272\u3059\u308b\u969b\u306b\u4f7f\u7528\u3059\u308b\u30bb\u30d1\u30ec\u30fc\u30bf\u30fc\u3067\u3059\u3002\u3053\u3053\u3067\u306f3\u3064\u306e\u6539\u884c<code>\\n\\n\\n<\/code>\u3067\u6bb5\u843d\u3092\u533a\u5207\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>secondary_chunking_regex=\"[^,.;\u3002]+[,.;\u3002]?\"<\/code>: \u3053\u306e\u6b63\u898f\u8868\u73fe\u306f\u3001\u30c1\u30e3\u30f3\u30af\u306e\u3055\u3089\u306b\u7d30\u304b\u3044\u5206\u5272\u65b9\u6cd5\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u6587\u306e\u7d42\u308f\u308a\u3092\u793a\u3059\u53e5\u8aad\u70b9<code>.,;\u3002<\/code>\u306b\u57fa\u3065\u3044\u3066\u30c6\u30ad\u30b9\u30c8\u3092\u5206\u5272\u3057\u307e\u3059\u3002<\/p>\n<\/div><\/div>\n\n\n\n<p class=\"is-style-balloon_box\">\u78ba\u8a8d\u306e\u305f\u3081\u3001\u5206\u5272\u3057\u305f\u30ce\u30fc\u30c9\u3092\uff13\u3064\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-swl-gray-background-color has-background\"><code>&#091;TextNode(id_='c95e0c9e-2488-4fec-998e-b08bc2b06dba', embedding=None, metadata={}, excluded_embed_metadata_keys=&#091;], excluded_llm_metadata_keys=&#091;], relationships={&lt;NodeRelationship.SOURCE: '1'&gt;: RelatedNodeInfo(node_id='https:\/\/ja.wikipedia.org\/wiki\/HUNTER%C3%97HUNTER', node_type=&lt;ObjectType.DOCUMENT: '4'&gt;, metadata={}, hash='a752d2b45c2d98384dd4ad7313bc97adce015daf92e499b8c00686ea06fa20ef'), &lt;NodeRelationship.PREVIOUS: '2'&gt;: RelatedNodeInfo(node_id='709998bb-1b4f-46be-abe2-0e7e3fb11ed7', node_type=&lt;ObjectType.TEXT: '1'&gt;, metadata={}, hash='731646b9d91214fcb53d6f8878251e3eea9680d8fe225c399e1800178da6a820'), &lt;NodeRelationship.NEXT: '3'&gt;: RelatedNodeInfo(node_id='7705eec0-1aeb-47dd-b877-1291f5e5edcf', node_type=&lt;ObjectType.TEXT: '1'&gt;, metadata={}, hash='58bb5808feb884e1b680111f569ae201f3f3d4e689e384a5699fd021d85534a1')}, text='\u767a\uff08\u30cf\u30c4\uff09\\n\\n    \u81ea\u5206\u306e\u30aa\u30fc\u30e9\u3092\u81ea\u5728\u306b\u64cd\u308b\u6280\u8853\u3002\u5ff5\u80fd\u529b\u306e\u96c6\u5927\u6210\u3002\u3044\u308f\u3086\u308b&#091;\u5fc5\u6bba\u6280](\/wiki\/%E5%BF%85%E6%AE%BA%E6%8A%80 \"\u5fc5\u6bba\u6280\")\u3068\u3044\u308f\u308c\u308b\u3082\u306e\u3002\u5f8c\u8ff0\u306e\u500b\u5225\u80fd\u529b\u3068\u3082\u91cd\u8907\u3059\u308b\u3002\\n\\n\u5ff5\u3092\u6559\u3048\u3066\u306f\u306a\u3089\u306a\u3044\u76f8\u624b\u306b\u306f\u3001\u7cbe\u795e\u8ad6\u306e\u5efa\u524d\u306e\u30cd\u30f3\uff1d\u300c**\u71c3** \u300d\u5fc3\u3092\u71c3\u3084\u3059\u610f\u5fd7\u306e\u5f37\u3055\u3068\u3057\u3066\u8aac\u660e\u3057\u3001\u5ff5\u80fd\u529b\u306e\u3053\u3068\u306f\u96a0\u3059\u3002\u30c6\u30f3\uff1d\u300c**\u70b9**\\n\u300d\u3067\u7cbe\u795e\u3092\u96c6\u4e2d\u3057\u3066\u76ee\u6a19\u3092\u5b9a\u3081\u3001\u30bc\u30c4\uff1d\u300c**\u820c** \u300d\u3067\u305d\u306e\u76ee\u6a19\u3092\u53e3\u982d\u307e\u305f\u306f\u982d\u306e\u4e2d\u3067\u8a00\u8449\u306b\u3057\u3001\u30ec\u30f3\uff1d\u300c**\u932c** \u300d\u3067\u305d\u306e\u610f\u5fd7\u3092\u9ad8\u3081\u3001\u30cf\u30c4\uff1d\u300c**\u767a**\\n\u300d\u3067\u5b9f\u969b\u306e\u884c\u52d5\u306b\u79fb\u3059\u3068\u8aac\u660e\u3055\u308c\u308b&#091;12]\u3002\u3053\u308c\u306f\u3053\u308c\u3067\u5ff5\u6280\u8853\u3092\u652f\u3048\u308b\u5fc3\u69cb\u3048\u3068\u3057\u3066\u91cd\u8981\u3067\u3042\u308a\u3001\u30b4\u30f3\u306f\u5ff5\u7981\u6b62\u306e\u7642\u990a\u4e2d\u306b\u300c\u71c3\u300d\u306e\u4fee\u884c\u3092\u884c\u3046\u3053\u3068\u3067\u3001\u5f8c\u306e\u5ff5\u3092\u5f37\u5316\u3057\u3066\u3044\u308b\u3002\\n\\n#### \u5ff5\u306e\u5fdc\u7528\u6280\\n\\n\u5fdc\u7528\u6280\u306f\u56db\u5927\u884c\u3068\u6bd4\u3079\u75b2\u52b4\u304c\u6fc0\u3057\u3044\u3002\\n\\n\u5468\uff08\u30b7\u30e5\u30a6\uff09\\n\\n    \u300c\u7e8f\u300d\u306e\u5fdc\u7528\u6280\u3002\u81ea\u5206\u306e\u4f53\u3067\u306f\u306a\u304f\u7269\u306b\u30aa\u30fc\u30e9\u3092\u7e8f\u308f\u305b\u308b\u6280\u8853\u3002\u5203\u7269\u306e\u5207\u308c\u5473\u3092\u5f37\u5316\u3059\u308b\u306a\u3069\u3001\u5bfe\u8c61\u7269\u306e\u6301\u3064\u80fd\u529b\u3092\u5f37\u5316\u3059\u308b\u3002\u3057\u3070\u3057\u3070\u300c\u786c\u300d\u3068\u4f75\u7528\u3055\u308c\u308b\u3002\u6b66\u5668\u306e\u300c\u5f37\u5316\u300d\u300c\u653e\u51fa\u300d\u300c\u64cd\u4f5c\u300d\u306b\u76f4\u7d50\u3059\u308b\u3002\\n\u96a0\uff08\u30a4\u30f3\uff09\\n\\n    \u300c\u7d76\u300d\u306e\u5fdc\u7528\u6280\u3002\u81ea\u5206\u306e\u30aa\u30fc\u30e9\u3092\u898b\u3048\u306b\u304f\u304f\u3059\u308b\u6280\u8853\u3002\\n    \u57fa\u672c\u7684\u306b\u300c\u51dd\u300d\u3092\u7528\u3044\u308c\u3070\u898b\u7834\u308b\u4e8b\u304c\u3067\u304d\u308b\u304c\u3001\u529b\u91cf\u5dee\u306b\u3088\u3063\u3066\u306f\u5168\u529b\u3092\u7528\u3044\u305f\u300c\u51dd\u300d\u3067\u3082\u300c\u90e8\u5206\u7684\u306b\u3057\u304b\u898b\u7834\u308c\u306a\u3044\u5834\u5408\u300d\u300c\u5168\u304f\u898b\u3048\u306a\u3044\u5834\u5408\u300d\u3082\u3042\u308b\u3002\\n\u51dd\uff08\u30ae\u30e7\u30a6\uff09\\n\\n    \u300c\u7df4\u300d\u306e\u5fdc\u7528\u6280\u3002\u30aa\u30fc\u30e9\u3092\u4f53\u306e\u4e00\u90e8\u306b\u96c6\u3081\u3001\u5897\u5e45\u3059\u308b\u6280\u8853\u3002\\n    \u9650\u3089\u308c\u305f\u30aa\u30fc\u30e9\u3092\u3069\u3046\u914d\u5206\u3059\u308b\u304b\u306a\u306e\u3067\u3001\u96c6\u4e2d\u3055\u305b\u305f\u7b87\u6240\u306f\u653b\u9632\u529b\u304c\u4e0a\u304c\u308a\u3001\u53cd\u9762\u30aa\u30fc\u30e9\u304c\u8584\u304f\u306a\u3063\u305f\u7b87\u6240\u306e\u653b\u9632\u529b\u306f\u4e0b\u304c\u308b\u3002\u6253\u6483\u306e\u5a01\u529b\u3092\u5897\u3057\u305f\u308a\u3001\u6025\u6240\u306b\u6e9c\u3081\u3066\u81f4\u547d\u50b7\u3092\u9003\u308c\u305f\u308a\u3068\u69d8\u3005\u306a\u5c40\u9762\u3067\u4f7f\u308f\u308c\u308b\u6280\u8853\u3067\u3042\u308b\u304c\u3001\u901a\u5e38\u305f\u3060\u300c\u51dd\u300d\u3068\u3044\u3046\u5834\u5408\u306f\u3001\u76ee\u306b\u96c6\u3081\u3066\u30aa\u30fc\u30e9\u3092\u898b\u308b\u3053\u3068\u3092\u610f\u5473\u3059\u308b\u3002\u719f\u7df4\u8005\u306f\u300c\u96a0\u300d\u3067\u96a0\u3055\u308c\u305f\u30aa\u30fc\u30e9\u3092\u3082\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002', mimetype='text\/plain', start_char_idx=31151, end_char_idx=31939, text_template='{metadata_str}\\n\\n{content}', metadata_template='{key}: {value}', metadata_seperator='\\n'),\n TextNode(id_='7705eec0-1aeb-47dd-b877-1291f5e5edcf', embedding=None, metadata={}, excluded_embed_metadata_keys=&#091;], excluded_llm_metadata_keys=&#091;], relationships={&lt;NodeRelationship.SOURCE: '1'&gt;: RelatedNodeInfo(node_id='https:\/\/ja.wikipedia.org\/wiki\/HUNTER%C3%97HUNTER', node_type=&lt;ObjectType.DOCUMENT: '4'&gt;, metadata={}, hash='a752d2b45c2d98384dd4ad7313bc97adce015daf92e499b8c00686ea06fa20ef'), &lt;NodeRelationship.PREVIOUS: '2'&gt;: RelatedNodeInfo(node_id='c95e0c9e-2488-4fec-998e-b08bc2b06dba', node_type=&lt;ObjectType.TEXT: '1'&gt;, metadata={}, hash='801af902ef6e289c797caaa5ee36239ec151e4eaf80e6b93447409f195f3e545'), &lt;NodeRelationship.NEXT: '3'&gt;: RelatedNodeInfo(node_id='a9fc4709-a7f9-4680-be1f-f575cfa5a2b4', node_type=&lt;ObjectType.TEXT: '1'&gt;, metadata={}, hash='122ae9d82e6add240917904f61e209dde47b7b8e19ab1030b09dd18730dfc0d6')}, text='\u719f\u7df4\u8005\u306f\u300c\u96a0\u300d\u3067\u96a0\u3055\u308c\u305f\u30aa\u30fc\u30e9\u3092\u3082\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\\n    \u526f\u8aad\u672c\u300e\u30cf\u30f3\u30bf\u30fc\u30ba\u30fb\u30ac\u30a4\u30c9\u300f\u306e\u89e3\u8aac\u306b\u3088\u308b\u3068\u3001\u300c\u51dd\u300d\u306f\u76ee\u306b\u96c6\u4e2d\u3055\u305b\u8996\u529b\u3092\u5f37\u5316\u3059\u308b\u3053\u3068\u3060\u3051\u3092\u610f\u5473\u3057\u3001\u8eab\u4f53\u80fd\u529b\u5411\u4e0a\u306e\u305f\u3081\u306b\u4ed6\u306e\u90e8\u4f4d\u306b\u96c6\u4e2d\u3055\u305b\u308b\u3053\u3068\u306f\u3059\u3079\u3066\u300c\u786c\u300d\u3068\u547c\u3076\u3001\u3068\u3044\u3046\u8a18\u8ff0\u304c\u3042\u308b\u304c\u3001\u4f5c\u4e2d\u3067\u306f\u4f8b\u3048\u3070\u30b2\u30f3\u30b9\u30eb\u30fc\u304c\u624b\u3084\u8db3\u306b\u30aa\u30fc\u30e9\u3092\u96c6\u4e2d\u3055\u305b\u308b\u3053\u3068\u3082\u300c\u51dd\u300d\u3068\u547c\u3093\u3067\u3044\u308b\u3053\u3068\u3001\u300c\u786c\u300d\u306f\u3042\u304f\u307e\u3067\u300c\u7d76\u300d\u3092\u3082\u4f75\u7528\u3057\u305f\u6280\u8853\u3067\u3042\u308b\u3053\u3068\u3092\u8e0f\u307e\u3048\u3001\u672c\u9805\u3067\u306f\u76ee\u4ee5\u5916\u306b\u96c6\u4e2d\u3055\u305b\u308b\u3053\u3068\u3082\u300c\u51dd\u300d\u3068\u5206\u985e\u3059\u308b\u3002\\n\u5805\uff08\u30b1\u30f3\uff09\\n\\n    \u300c\u7e8f\u300d\u300c\u7df4\u300d\u306e\u5fdc\u7528\u6280\u3002\u300c\u7df4\u300d\u3067\u5897\u5e45\u3057\u305f\u30aa\u30fc\u30e9\u3092\u7dad\u6301\u3059\u308b\u6280\u8853\u3002\\n    \u5168\u8eab\u306b\u5e73\u5747\u7684\u306b\u5e73\u5e38\u6642\u4ee5\u4e0a\u306e\u30aa\u30fc\u30e9\u3092\u7e8f\u3063\u3066\u3044\u308b\u72b6\u614b\u306e\u3053\u3068\u3002\u6226\u95d8\u6642\u306f\u4e3b\u306b\u300c\u5805\u300d\u3092\u7dad\u6301\u3057\u305f\u307e\u307e\u95d8\u3046\u3053\u3068\u306b\u306a\u308b\u3002\u300c\u5805\u300d\u304c\u89e3\u3051\u308b\u3068\uff08\u89e3\u304f\u3068\uff09\u9632\u5fa1\u529b\u304c\u8457\u3057\u304f\u843d\u3061\u308b\u305f\u3081\u3001\u76f8\u624b\u3068\u306e\u5b9f\u529b\u5dee\u304c\u5927\u304d\u3044\u3068\u4e00\u77ac\u3067\u6557\u5317\u3068\u3044\u3046\u72b6\u6cc1\u306b\u3082\u306a\u308a\u3046\u308b\u3002\\n    \u7dad\u6301\u3067\u304d\u308b\u30aa\u30fc\u30e9\u91cf\u304c\u57fa\u790e\u7684\u306a\u6226\u95d8\u529b\u3092\u5927\u304d\u304f\u5de6\u53f3\u3059\u308b\u3002\u4fee\u884c\u3057\u3066\u6301\u7d9a\u6642\u9593\u309210\u5206\u9593\u4f38\u3070\u3059\u3060\u3051\u3067\u30821\u304b\u6708\u304b\u304b\u308b\u3068\u8a00\u308f\u308c\u3066\u3044\u308b\u3002\\n\u5186\uff08\u30a8\u30f3\uff09\\n\\n    \u300c\u7e8f\u300d\u300c\u7df4\u300d\u306e\u5fdc\u7528\u6280\u3002\u4f53\u306e\u5468\u56f2\u3092\u8986\u3063\u3066\u3044\u308b\u30aa\u30fc\u30e9\u3092\u81ea\u5206\u3092\u4e2d\u5fc3\u306b\u534a\u5f842m\u4ee5\u4e0a\u5e83\u3052\u30011\u5206\u4ee5\u4e0a\u7dad\u6301\u3059\u308b\u6280\u8853\u3002\u808c\u3067\u306f\u306a\u304f\u30aa\u30fc\u30e9\u3067\u89e6\u308c\u308b\u3053\u3068\u306b\u3088\u308b\u611f\u77e5\u6280\u3002\u305d\u306e\u5e83\u3055\u306f\u500b\u3005\u4eba\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u3001\u9054\u4eba\u306b\u306a\u308b\u306850m\u4ee5\u4e0a\u306b\u9054\u3059\u308b\u3002\u901a\u5e38\u306f\u672c\u4eba\u3092\u4e2d\u5fc3\u3068\u3057\u305f\u5186\u5f62\u306b\u30aa\u30fc\u30e9\u304c\u5e83\u304c\u308b\u3002\u8584\u304f\u5e83\u3052\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u771f\u306e\u81e8\u6226\u614b\u52e2\u6642\u306f\u300c\u5186\u300d\u3092\u89e3\u3044\u3066\u5df1\u306e\u3082\u3068\u306b\u30aa\u30fc\u30e9\u3092\u5727\u7e2e\u3055\u305b\u308b\u3002\\n    \u5f97\u610f\u4e0d\u5f97\u610f\u304c\u9855\u8457\u306a\u6280\u8853\u3067\u3042\u308a\u3001\u5ff5\u4f7f\u3044\u306e\u4e2d\u3067\u3082\u4e00\u90e8\u306e\u8005\u3057\u304b\u4f7f\u7528\u3057\u305f\u63cf\u5199\u304c\u306a\u3044\u3002\u4f8b\u3048\u3070\u3001\u5ff5\u306e\u624d\u80fd\u305d\u306e\u3082\u306e\u306f1000\u4e07\u4eba\u306b1\u4eba\u3068\u547c\u3070\u308c\u308b\u307b\u3069\u306e\u30ad\u30eb\u30a2\u306f\u3053\u308c\u304c\u6975\u7aef\u306b\u82e6\u624b\u3067\u3042\u308a\u3001\u3084\u308d\u3046\u3068\u3057\u3066\u3082\u8eab\u4f53\u304b\u308950cm\u7a0b\u5ea6\u307e\u3067\u3057\u304b\u5e83\u3052\u3089\u308c\u306a\u3044\uff08\u306a\u306e\u3067\u300c\u5186\u300d\u304c\u3067\u304d\u3066\u3044\u308b\u3068\u8a00\u308f\u306a\u3044\uff09\u3002\u9006\u306b\u30cd\u30d5\u30a7\u30eb\u30d4\u30c8\u30fc\u306f\u7570\u5e38\u306b\u9577\u3051\u3066\u304a\u308a\u3001\u30a2\u30e1\u30fc\u30d0\u72b6\u306b\u4efb\u610f\u306e\u5f62\u3067\u300c\u5186\u300d\u3092\u4f38\u3070\u3059\u4e8b\u304c\u3067\u304d\u30012km\u4ee5\u4e0a\u5148\u306e\u6a19\u7684\u3059\u3089\u88dc\u8db3\u53ef\u80fd\u306a\u7bc4\u56f2\u3092\u8a87\u308b\u4e0a\u3001\u300c\u5186\u300d\u306e\u5185\u90e8\u306b\u7a74\u3092\u3042\u3051\u308b\u306a\u3069\u306e\u5fdc\u7528\u3055\u3048\u53ef\u80fd\u3002\\n\u786c\uff08\u30b3\u30a6\uff09\\n\\n    \u300c\u7e8f\u300d\u300c\u7d76\u300d\u300c\u7df4\u300d\u300c\u767a\u300d\u300c\u51dd\u300d\u3092\u8907\u5408\u3057\u305f\u5fdc\u7528\u6280\u3002', mimetype='text\/plain', start_char_idx=31913, end_char_idx=32789, text_template='{metadata_str}\\n\\n{content}', metadata_template='{key}: {value}', metadata_seperator='\\n'),\n TextNode(id_='a9fc4709-a7f9-4680-be1f-f575cfa5a2b4', embedding=None, metadata={}, excluded_embed_metadata_keys=&#091;], excluded_llm_metadata_keys=&#091;], relationships={&lt;NodeRelationship.SOURCE: '1'&gt;: RelatedNodeInfo(node_id='https:\/\/ja.wikipedia.org\/wiki\/HUNTER%C3%97HUNTER', node_type=&lt;ObjectType.DOCUMENT: '4'&gt;, metadata={}, hash='a752d2b45c2d98384dd4ad7313bc97adce015daf92e499b8c00686ea06fa20ef'), &lt;NodeRelationship.PREVIOUS: '2'&gt;: RelatedNodeInfo(node_id='7705eec0-1aeb-47dd-b877-1291f5e5edcf', node_type=&lt;ObjectType.TEXT: '1'&gt;, metadata={}, hash='58bb5808feb884e1b680111f569ae201f3f3d4e689e384a5699fd021d85534a1'), &lt;NodeRelationship.NEXT: '3'&gt;: RelatedNodeInfo(node_id='c2aefcdd-75f6-4be6-848a-b8c904c6a893', node_type=&lt;ObjectType.TEXT: '1'&gt;, metadata={}, hash='99f46b47dfb3f3b190fa74c4a4f11660b683ced206c376a57843cb8d15813411')}, text='\u786c\uff08\u30b3\u30a6\uff09\\n\\n    \u300c\u7e8f\u300d\u300c\u7d76\u300d\u300c\u7df4\u300d\u300c\u767a\u300d\u300c\u51dd\u300d\u3092\u8907\u5408\u3057\u305f\u5fdc\u7528\u6280\u3002\\n    \u300c\u51dd\u300d\u3068\u540c\u3058\u304f\u7279\u5b9a\u306e\u90e8\u4f4d\u3092\u30aa\u30fc\u30e9\u3092\u96c6\u4e2d\u3055\u305b\u308b\u4e8b\u3067\u5f37\u5316\u3059\u308b\u6280\u8853\u3067\u3042\u308b\u304c\u3001\u300c\u51dd\u300d\u3068\u306e\u9055\u3044\u306f\u300c\u7d76\u300d\u3092\u4f75\u7528\u3059\u308b\u4e8b\u3067\u96c6\u4e2d\u3055\u305b\u308b\u90e8\u4f4d\u4ee5\u5916\u306e\u300c\u4f59\u5206\u306a\u30aa\u30fc\u30e9\u306e\u6f0f\u308c\u300d\u3092\u7de0\u3081\u308b\u4e8b\u3067\u3001\u96c6\u4e2d\u91cf\u3092\u98db\u8e8d\u7684\u306b\u5897\u5927\u3055\u305b\u308b\u4e8b\u3067\u3042\u308b\u3002\u30c7\u30e1\u30ea\u30c3\u30c8\u90e8\u5206\u3082\u300c\u51dd\u300d\u306b\u6bd4\u3079\u3066\u6975\u7aef\u5316\u3055\u308c\u3001\u96c6\u4e2d\u90e8\u4f4d\u4ee5\u5916\u306f\u300c\u7d76\u300d\u72b6\u614b\u3067\u3042\u308b\u305f\u3081\u3001\u3044\u304f\u3070\u304f\u304b\u306e\u653b\u9632\u529b\u304c\u6b8b\u308b\u300c\u51dd\u300d\u3068\u9055\u3044\u3001\u5b8c\u5168\u306a\u30bc\u30ed\u306e\u751f\u8eab\u306b\u306a\u308b\u3002\\n    \u719f\u7df4\u8005\u306f\u66f4\u306a\u308b\u5fdc\u7528\u6280\u3068\u3057\u3066\u300c\u5468\u300d\u3068\u3082\u4f75\u7528\u3057\u3001\u5200\u306e\u5207\u3063\u5148\u306b\u5168\u30aa\u30fc\u30e9\u3092\u96c6\u4e2d\u3055\u305b\u308b\u7b49\u306e\u82b8\u5f53\u3082\u53ef\u80fd\u3002\\n    \u30b4\u30f3\u306e\u5f37\u5316\u7cfb\u306e\u300c\u767a\uff08\u30b8\u30e3\u30b8\u30e3\u30f3\u62f3\uff09\u300d\u306e\u57fa\u790e\u3002\u30b4\u30f3\u306f\u30a6\u30a3\u30f3\u30b0\u306e\u300c\uff08\u6559\u3048\u305f\u3053\u3068\u306e\uff09\u5168\u3066\u3092\u540c\u6642\u306b\u898b\u305b\u306a\u3055\u3044\u300d\u3068\u3044\u3046\u30a2\u30c9\u30d0\u30a4\u30b9\u3092\u5143\u306b\u81ea\u3089\u3053\u306e\u5fdc\u7528\u6280\u306b\u305f\u3069\u308a\u7740\u3044\u305f\u305f\u3081\u3001\u7279\u306b\u601d\u3044\u5165\u308c\u304c\u5f37\u3044\u69d8\u5b50\u3002\\n\u6d41\uff08\u30ea\u30e5\u30a6\uff09\\n\\n    \u5fdc\u7528\u6280\u3067\u3042\u308b\u300c\u51dd\u300d\u3092\u3001\u3055\u3089\u306b\u5fdc\u7528\u3059\u308b\u9ad8\u7b49\u6280\u8853\u3002\u300c\u51dd\u300d\u306e\u300c\u30aa\u30fc\u30e9\u3092\u79fb\u52d5\u3055\u305b\u3066\u96c6\u4e2d\u3059\u308b\u300d\u884c\u70ba\u3092\u7d20\u65e9\u304f\u884c\u3046\u3001\u96c6\u4e2d\u3059\u308b\u91cf\u3092\u610f\u8b58\u7684\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u6280\u8853\u3002\\n    \u300c\u51dd\u300d\u305d\u306e\u3082\u306e\u306f\u3042\u308b\u7a0b\u5ea6\u30aa\u30fc\u30e9\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u6163\u308c\u308c\u3070\u5927\u534a\u306e\u8005\u304c\u3067\u304d\u308b\u6280\u8853\u3067\u3042\u308b\u304c\u3001\u672a\u719f\u306a\u4f7f\u3044\u624b\u3060\u3068\u300c\u4f53\u8853\u3067\u30d5\u30a7\u30a4\u30f3\u30c8\u3092\u304b\u3051\u3066\u3082\u672c\u547d\u306e\u65b9\u306b\u30aa\u30fc\u30e9\u304c\u96c6\u4e2d\u3057\u3066\u3044\u308b\u306e\u3067\u30d5\u30a7\u30a4\u30f3\u30c8\u306e\u610f\u5473\u3092\u6210\u3055\u306a\u3044\u300d\u300c\u7d20\u65e9\u3044\u6253\u6483\u306e\u5fdc\u916c\u306b\u30aa\u30fc\u30e9\u306e\u96c6\u4e2d\u304c\u9593\u306b\u5408\u308f\u305a\u30aa\u30fc\u30e9\u304c\u96c6\u4e2d\u3067\u304d\u308b\u524d\u306b\u653b\u6483\u3092\u5f53\u3066\u3066\u3057\u307e\u3046\u300d\u300c\u76f8\u624b\u306e\u653b\u6483\u3092\u98df\u3089\u3046\u307e\u3067\u306b\u30aa\u30fc\u30e9\u306e\u96c6\u4e2d\u304c\u9593\u306b\u5408\u308f\u306a\u3044\u300d\u306a\u3069\u3068\u8a00\u3063\u305f\u5f31\u70b9\u304c\u5b58\u5728\u3059\u308b\u3002\u30aa\u30fc\u30e9\u306e\u79fb\u52d5\u3092\u7d20\u65e9\u304f\u3059\u308b\u4e8b\u3067\u3001\u30d5\u30a7\u30a4\u30f3\u30c8\u3092\u304b\u3051\u308b\u6642\u70b9\u3067\u306f\u5b9f\u969b\u306b\u30aa\u30fc\u30e9\u306e\u96c6\u4e2d\u306f\u884c\u308f\u305a\u672c\u547d\u306e\u6253\u6483\u304c\u5f53\u305f\u308b\u76f4\u524d\u306b\u77ac\u9593\u7684\u306b\u30aa\u30fc\u30e9\u3092\u96c6\u4e2d\u3055\u305b\u308b\u3001\u76f8\u624b\u306e\u6253\u6483\u3092\u5bdf\u77e5\u3057\u3066\u304b\u3089\u5f53\u305f\u308b\u307e\u3067\u306b\u3068\u3063\u3055\u306b\u30aa\u30fc\u30e9\u3092\u96c6\u4e2d\u3055\u305b\u308b\u3068\u3044\u3063\u305f\u82b8\u5f53\u3092\u53ef\u80fd\u306b\u3059\u308b\u3002\\n    \u307e\u305f\u3001\u6bce\u56de\u4f55\u3082\u8003\u3048\u305a\u306b\u5168\u529b\u3067\u30aa\u30fc\u30e9\u3092\u96c6\u4e2d\u3057\u3066\u3044\u308b\u3068\u3001\u300c\u786c\u300d\u307b\u3069\u3067\u306f\u306a\u3044\u306b\u305b\u3088\u975e\u96c6\u4e2d\u90e8\u4f4d\u306e\u653b\u9632\u529b\u304c\u4e0b\u304c\u308a\u3059\u304e\u3066\u3057\u307e\u3046\u3002\u305d\u3046\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u9762\u306f\u3068\u3082\u304b\u304f\u3001\u5c11\u3057\u96c6\u4e2d\u3055\u305b\u308b\u7a0b\u5ea6\u306e\u653b\u9632\u529b\u3067\u4e8b\u8db3\u308a\u308b\u5834\u9762\u3067\u305d\u3046\u3059\u308b\u4e8b\u306f\u30c7\u30e1\u30ea\u30c3\u30c8\u3057\u304b\u306a\u3044\u305f\u3081\u3001\u72b6\u6cc1\u3092\u3088\u304f\u898b\u6975\u3081\u3066\u5fc5\u8981\u306a\u5206\u3060\u3051\u96c6\u4e2d\u3055\u305b\u308b\u6280\u8853\u3082\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u3002\u307e\u305f\u3001\u8907\u6570\u500b\u6240\u306b\u5225\u3005\u306b\u632f\u308a\u5206\u3051\u3066\u540c\u6642\u306b\u300c\u51dd\u300d\u3092\u884c\u3046\u4e8b\u3082\u542b\u307e\u308c\u308b\u3002', mimetype='text\/plain', start_char_idx=32754, end_char_idx=33673, text_template='{metadata_str}\\n\\n{content}', metadata_template='{key}: {value}', metadata_seperator='\\n')]<\/code><\/pre>\n<\/div><\/div>\n\n\n\n<div class=\"swell-block-step__item\"><div class=\"swell-block-step__number u-bg-main\"><span class=\"__label\">STEP<\/span><\/div><div class=\"swell-block-step__title u-fz-l\">\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u8a2d\u5b9a<\/div><div class=\"swell-block-step__body\">\n<p>\u30ce\u30fc\u30c9\u304b\u3089\u30d9\u30af\u30c8\u30eb\u8868\u73fe\u304c\u4f7f\u3048\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3057\u3001\u985e\u4f3c\u691c\u7d22\u3092\u3059\u308b\u30af\u30a8\u30ea\u30a8\u30f3\u30b8\u30f3\u3092\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>from llama_index.core import VectorStoreIndex\nindex = VectorStoreIndex(nodes)\nquery_engine = index.as_query_engine(similarity_top_k=3)<\/code><\/pre>\n\n\n\n<div class=\"swell-block-capbox cap_box is-style-onborder_ttl2\" data-colset=\"col3\"><div class=\"cap_box_ttl\"><span>\u30b3\u30fc\u30c9\u306e\u8aac\u660e<\/span><\/div><div class=\"cap_box_content\">\n<p><span class=\"swl-format-2\">index = VectorStoreIndex(nodes)<\/span><\/p>\n\n\n\n<p>\u6e21\u3055\u308c\u305f\u30ce\u30fc\u30c9\u3092\u3082\u3068\u306b \u30d9\u30af\u30c8\u30eb\u8868\u73fe\u304c\u4f7f\u3048\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9 \u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u30b0\u30ed\u30fc\u30d0\u30eb\u3067\u8a2d\u5b9a\u3055\u308c\u305f\u57cb\u3081\u8fbc\u307f\u30e2\u30c7\u30eb<code>Settings.embed_model<\/code>\u304c\u81ea\u52d5\u7684\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><span class=\"swl-format-2\">index.as_query_engine(similarity_top_k=3)<\/span><\/p>\n\n\n\n<p>\u4f5c\u6210\u3057\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304b\u3089\u30af\u30a8\u30ea\u30a8\u30f3\u30b8\u30f3\u3092\u751f\u6210\u3057\u3001\u985e\u4f3c\u5ea6\u306e\u9ad8\u3044\u4e0a\u4f4d3\u3064\u306e\u30ce\u30fc\u30c9\u3092\u8fd4\u3059\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u30b0\u30ed\u30fc\u30d0\u30eb\u3067\u8a2d\u5b9a\u3057\u305fLLM<code>Settings.llm<\/code>\u304c\u81ea\u52d5\u7684\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/div><\/div>\n<\/div><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">LlamaIndex RAG\u306b\u300eHUNTER\u00d7HUNTER\u300f\u306b\u3064\u3044\u3066\u805e\u3044\u3066\u307f\u308b<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"600\" height=\"300\" src=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/09\/17_midashi_0921.jpg\" alt=\"\u898b\u51fa\u3057\u753b\u50cf\" class=\"wp-image-11824\" srcset=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/09\/17_midashi_0921.jpg 600w, https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/09\/17_midashi_0921-300x150.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p><span class=\"swl-format-2\">LlamaIndex\u3067\u69cb\u7bc9\u3057\u305fRAG\u306b\u300eHUNTER\u00d7HUNTER\u300f\u306b\u3064\u3044\u3066\u8cea\u554f\u3057\u3066\u307f\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>response = query_engine.query(\"\u30ad\u30eb\u30a2\u306e\u7656\u306f\uff1f\")\nprint(response)<\/code><\/pre>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-right\" data-col=\"green\"><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p>\u30ad\u30eb\u30a2\u306e\u7656\u306f\uff1f<\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p>\u30ad\u30eb\u30a2\u306e\u7656\u306f\u6697\u6b69\u3067\u3059\u3002<\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>response = query_engine.query(\"\u30ce\u30d6\u30ca\u30ac\u306e\u5186\u306e\u5927\u304d\u3055\u306f\uff1f\")\nprint(response)<\/code><\/pre>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-right\" data-col=\"green\"><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p>\u30ce\u30d6\u30ca\u30ac\u306e\u5186\u306e\u5927\u304d\u3055\u306f\uff1f<\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p>\u30ce\u30d6\u30ca\u30ac\u306e\u5186\u306e\u5927\u304d\u3055\u306f\u534a\u5f844m\u3067\u3059\u3002<\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>response = query_engine.query(\"\u30ab\u30b9\u30c8\u30ed\u306e\u6557\u56e0\u306f\u4f55\u3067\u3059\u304b\uff1f\")\nprint(response)<\/code><\/pre>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-right\" data-col=\"green\"><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p>\u30ab\u30b9\u30c8\u30ed\u306e\u6557\u56e0\u306f\u4f55\u3067\u3059\u304b\uff1f<\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p>\u30ab\u30b9\u30c8\u30ed\u306e\u6557\u56e0\u306f\u3001\u5bb9\u91cf\uff08\u30e1\u30e2\u30ea\uff09\u306e\u30e0\u30c0\u4f7f\u3044\u3067\u3059\u3002\u5f7c\u306f\u672c\u6765\u306e\u80fd\u529b\u3067\u3042\u308b\u5f37\u5316\u7cfb\u3068\u76f8\u6027\u306e\u60aa\u3044\u8d85\u9ad8\u5ea6\u306a\u5177\u73fe\u5316\u7cfb\u30fb\u64cd\u4f5c\u7cfb\u306e\u8907\u5408\u80fd\u529b\u3067\u3042\u308b\u5206\u8eab\uff08\u30c0\u30d6\u30eb\uff09\u3092\u4f7f\u3046\u3053\u3068\u3092\u6279\u5224\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>response = query_engine.query(\"\u30b2\u30f3\u30b9\u30eb\u30fc\u306e\u80fd\u529b\u3092\u89e3\u9664\u3059\u308b\u65b9\u6cd5\u306f\uff1f\")\nprint(response)<\/code><\/pre>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-right\" data-col=\"green\"><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p>\u30b2\u30f3\u30b9\u30eb\u30fc\u306e\u80fd\u529b\u3092\u89e3\u9664\u3059\u308b\u65b9\u6cd5\u306f\uff1f<\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p>\u30b2\u30f3\u30b9\u30eb\u30fc\u306e\u300c\u547d\u306e\u97f3\uff08\u30ab\u30a6\u30f3\u30c8\u30c0\u30a6\u30f3\uff09\u300d\u3092\u89e3\u9664\u3059\u308b\u306b\u306f\u3001\u89e6\u308c\u306a\u304c\u3089\u300c\u30dc\u30de\u30fc\u6355\u307e\u3048\u305f\u300d\u3068\u8a00\u3048\u3070\u3088\u3044\u3002\u307e\u305f\u3001\u300c\u89e3\u653e\uff08\u30ea\u30ea\u30fc\u30b9\uff09\u300d\u3068\u8a00\u3046\u3053\u3068\u3067\u3001\u4f5c\u52d5\u4e2d\u306e\u7206\u5f3e\u3092\u5f37\u5236\u7684\u306b\u8d77\u7206\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u65b9\u6cd5\u306f\u4ef2\u9593\u306e\u30b5\u30d6\u3001\u30d0\u30e9\u3068\u4e09\u4eba\u3067\u4e92\u3044\u306e\u89aa\u6307\u3092\u304f\u3063\u3064\u3051\u5408\u3046\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>response = query_engine.query(\"\u30cf\u30f3\u30bf\u30fc\u30cf\u30f3\u30bf\u30fc\u306f\u3044\u3064\u9803\u304b\u3089\u4f11\u8f09\u3057\u3066\u3044\u307e\u3059\u304b\uff1f\")\nprint(response)<\/code><\/pre>\n\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-right\" data-col=\"green\"><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p>\u30cf\u30f3\u30bf\u30fc\u30cf\u30f3\u30bf\u30fc\u306f\u3044\u3064\u9803\u304b\u3089\u4f11\u8f09\u3057\u3066\u3044\u307e\u3059\u304b\uff1f<\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n<div class=\"swell-block-balloon\"><div class=\"c-balloon -bln-left\" data-col=\"gray\"><div class=\"c-balloon__body -speaking -border-none\"><div class=\"c-balloon__text\">\n<p>1999\u5e74\u4ee5\u964d\u3001\u6bce\u5e7410\u56de\u4ee5\u4e0a\u4f11\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<span class=\"c-balloon__shapes\"><span class=\"c-balloon__before\"><\/span><span class=\"c-balloon__after\"><\/span><\/span><\/div><\/div><\/div><\/div>\n\n\n<p class=\"is-style-icon_good\">Wikipedia\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u5185\u5bb9\u304b\u3089\u751f\u6210\u3067\u304d\u3066\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"index_id8\">\u751f\u6210AI\u30fbLLM\u306e\u30b3\u30b9\u30c8\u3067\u304a\u56f0\u308a\u306a\u3089<\/h2>\n\n\n\n<p>GPU\u306e\u30b9\u30da\u30c3\u30af\u4e0d\u8db3\u3067\u751f\u6210AI\u306e\u958b\u767a\u304c\u601d\u3046\u3088\u3046\u306b\u9032\u307e\u306a\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u3068\u304d\u306b\u306f\u3001<strong><span class=\"swl-format-2\">\u9ad8\u6027\u80fd\u306aGPU\u3092\u30ea\u30fc\u30ba\u30ca\u30d6\u30eb\u306a\u4fa1\u683c\u3067\u4f7f\u3048\u308bGPU\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u304c\u304a\u3059\u3059\u3081\u3067\u3059\uff01<\/span><\/strong><\/p>\n\n\n\n<div class=\"p-blogParts post_content\" data-partsID=\"4543\">\n<div class=\"swell-block-capbox cap_box\" data-colset=\"col2\"><div class=\"cap_box_ttl\"><span>GPUSOROBAN<\/span><\/div><div class=\"cap_box_content\">\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1462\" height=\"508\" src=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/06\/h100_banner.jpg\" alt=\"GPUSOROBAN\" class=\"wp-image-10134\" srcset=\"https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/06\/h100_banner.jpg 1462w, https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/06\/h100_banner-300x104.jpg 300w, https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/06\/h100_banner-1024x356.jpg 1024w, https:\/\/highreso.jp\/edgehub\/wp-content\/uploads\/2024\/06\/h100_banner-768x267.jpg 768w\" sizes=\"(max-width: 1462px) 100vw, 1462px\" \/><\/figure>\n\n\n\n<p>GPUSOROBAN\u306f\u3001<span class=\"swl-marker mark_yellow\"><span class=\"swl-format-1\">\u9ad8\u6027\u80fdGPU\u300cNVIDIA H200\u300d\u3092\u696d\u754c\u6700\u5b89\u7d1a\u306e\u6599\u91d1\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/span><\/p>\n\n\n\n<p>NVIDIA H200\u306f\u3001\u751f\u6210AI\u30fbLLM\u306e\u8a08\u7b97\u306b\u304b\u304b\u308b\u6642\u9593\u3092\u5927\u5e45\u306b\u77ed\u7e2e\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30af\u30e9\u30a6\u30c9\u3067\u4f7f\u3048\u308b\u305f\u3081\u3001\u5927\u898f\u6a21\u306a\u8a2d\u5099\u6295\u8cc7\u306e\u5fc5\u8981\u304c\u306a\u304f\u3001\u7169\u96d1\u306a\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u304b\u3089\u3082\u89e3\u653e\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"swell-block-columns\"><div class=\"swell-block-columns__inner\">\n<div class=\"swell-block-column swl-has-mb--s\">\n<div class=\"swell-block-button blue_ -size-l is-style-btn_normal\"><a href=\"https:\/\/soroban.highreso.jp\/?utm_medium=edgehub&amp;utm_source=edgehub&amp;utm_campaign=highend_boxb&amp;adid=edgehub\" class=\"swell-block-button__link\"><span>\u516c\u5f0f\u30b5\u30a4\u30c8\u3092\u307f\u308b<\/span><\/a><\/div>\n<\/div>\n\n\n\n<div class=\"swell-block-column swl-has-mb--s\">\n<div class=\"swell-block-button red_ -size-l is-style-btn_normal\"><a href=\"https:\/\/soroban.highreso.jp\/download\/compute-catalog\/?utm_medium=edgehub&amp;utm_source=edgehub&amp;utm_campaign=highend_boxb&amp;adid=edgehub\" class=\"swell-block-button__link\"><span>\u8cc7\u6599\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/span><\/a><\/div>\n<\/div>\n<\/div><\/div>\n<\/div><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>LlamaIndex\u3067\u306f\u3001\u5916\u90e8\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3057\u3066\u8cea\u554f\u306b\u56de\u7b54\u3059\u308bRAG\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u300eHUNTER\u00d7HUNTER\u300f\u306eWikipedia\u3092\u8aad\u307f\u8fbc\u3093\u3067\u8cea\u554f\u306b\u56de\u7b54\u3059\u308bRAG\u3092\u4f5c\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u3056\u3063\u304f\u308a\u8a00\u3046 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11903,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[20],"tags":[26],"class_list":["post-11736","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-machinelearning","tag-rag"],"_links":{"self":[{"href":"https:\/\/highreso.jp\/edgehub\/wp-json\/wp\/v2\/posts\/11736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/highreso.jp\/edgehub\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/highreso.jp\/edgehub\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/highreso.jp\/edgehub\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/highreso.jp\/edgehub\/wp-json\/wp\/v2\/comments?post=11736"}],"version-history":[{"count":2,"href":"https:\/\/highreso.jp\/edgehub\/wp-json\/wp\/v2\/posts\/11736\/revisions"}],"predecessor-version":[{"id":14252,"href":"https:\/\/highreso.jp\/edgehub\/wp-json\/wp\/v2\/posts\/11736\/revisions\/14252"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/highreso.jp\/edgehub\/wp-json\/wp\/v2\/media\/11903"}],"wp:attachment":[{"href":"https:\/\/highreso.jp\/edgehub\/wp-json\/wp\/v2\/media?parent=11736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/highreso.jp\/edgehub\/wp-json\/wp\/v2\/categories?post=11736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/highreso.jp\/edgehub\/wp-json\/wp\/v2\/tags?post=11736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}