{"id":80765,"date":"2025-11-26T16:30:00","date_gmt":"2025-11-26T07:30:00","guid":{"rendered":"https:\/\/www.creationline.com\/tech-blog\/?p=80765"},"modified":"2025-11-26T13:04:13","modified_gmt":"2025-11-26T04:04:13","slug":"gemini-api-file-search-tool%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f-google-ai-gemini-rag-llm","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765","title":{"rendered":"Gemini API File Search Tool\u3092\u4f7f\u3063\u3066\u307f\u305f #google #ai #gemini #rag #llm"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>2025\u5e7411\u6708\u521d\u65ec\u3001\u300c<a href=\"https:\/\/blog.google\/technology\/developers\/file-search-gemini-api\/\" target=\"_blank\" rel=\"noreferrer noopener\">Introducing the File Search Tool in Gemini API<\/a>\u300d\u306b\u3066<a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/file-search?hl=ja\" target=\"_blank\" rel=\"noreferrer noopener\">Gemini API \u30d5\u30a1\u30a4\u30eb\u691c\u7d22<\/a>\u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308aRAG (Retrieval Augmented Generation; \u691c\u7d22\u62e1\u5f35\u751f\u6210) \u30b7\u30b9\u30c6\u30e0\u304c\u7c21\u5358\u306b\u69cb\u7bc9\u3067\u304d\u308b\u3068\u306e\u3053\u3068\u3067\u3059\u3002RAG\u306b\u3064\u3044\u3066\u306f\u6b21\u306e\u904e\u53bb\u8a18\u4e8b\u3082\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.creationline.com\/tech-blog\/74639\" target=\"_blank\" rel=\"noreferrer noopener\">Azure AI Search\u3067RAG\u3057\u3066\u307f\u3088\u3046\uff01 \u30c1\u30e3\u30c3\u30c8\u30d7\u30ec\u30a4\u30b0\u30e9\u30a6\u30f3\u30c9\u3068Web\u30a2\u30d7\u30ea\u7de8<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.creationline.com\/tech-blog\/77039\" target=\"_blank\" rel=\"noreferrer noopener\">LangChain\u306eRAG\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u3084\u3063\u3066\u307f\u305f\uff08\u524d\u7de8\uff09<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.creationline.com\/tech-blog\/77047\" target=\"_blank\" rel=\"noreferrer noopener\">LangChain\u306eRAG\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u3084\u3063\u3066\u307f\u305f\uff08\u5f8c\u7de8\uff09<\/a><\/li>\n<\/ul>\n\n\n\n<p>\u672c\u7a3f\u3067\u306f\u300c<a href=\"https:\/\/blog.google\/technology\/developers\/file-search-gemini-api\/\" target=\"_blank\" rel=\"noreferrer noopener\">Introducing the File Search Tool in Gemini API<\/a>\u300d\u306b\u6319\u3052\u3089\u308c\u3066\u3044\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u901a\u3057\u3066\u3001<a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/file-search?hl=ja\" target=\"_blank\" rel=\"noreferrer noopener\">Gemini API \u30d5\u30a1\u30a4\u30eb\u691c\u7d22<\/a>\u306e\u4ed5\u7d44\u307f\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u524d\u63d0\u6761\u4ef6<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/workspace.google.co.jp\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Workspace<\/a>\u3092\u4f7f\u7528\u3002\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/workspace.google.com\/solutions\/ai\/\" target=\"_blank\" rel=\"noreferrer noopener\">Gemini<\/a>\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/cloud.google.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Cloud<\/a>\u3092\u4f7f\u7528\u3002\n<ul class=\"wp-block-list\">\n<li>\u3042\u3089\u304b\u3058\u3081\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>Generative Language API<\/code> \u3092\u5229\u7528\u3067\u304d\u308bAPI\u30ad\u30fc\u3092\u4f5c\u6210\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30ed\u30fc\u30ab\u30ebPC\n<ul class=\"wp-block-list\">\n<li>Python 3.13.9<\/li>\n\n\n\n<li>\u3042\u3089\u304b\u3058\u3081Google Cloud\u306b\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u516c\u5f0f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<\/h2>\n\n\n\n<p>\u516c\u5f0f\u30d6\u30ed\u30b0\u300c<a href=\"https:\/\/blog.google\/technology\/developers\/file-search-gemini-api\/\" target=\"_blank\" rel=\"noreferrer noopener\">Introducing the File Search Tool in Gemini API<\/a>\u300d\u306b\u6319\u3052\u3089\u308c\u3066\u3044\u308b\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import time\nfrom google import genai\nfrom google.genai import types\n\nclient = genai.Client()\nstore = client.file_search_stores.create()\n\nupload_op = client.file_search_stores.upload_to_file_search_store(\n    file_search_store_name=store.name,\n    file='path\/to\/your\/document.pdf'\n)\n\nwhile not upload_op.done:\n  time.sleep(5)\n  upload_op = client.operations.get(upload_op)\n\n# Use the file search store as a tool in your generation call\nresponse = client.models.generate_content(\n    model='gemini-2.5-flash',\n    contents='What does the research say about ...',\n    config=types.GenerateContentConfig(\n        tools=[types.Tool(\n            file_search=types.FileSearch(\n                file_search_store_names=[store.name]\n            )\n        )]\n    )\n)\nprint(response.text)\n\n# Support your response with links to the grounding sources.\ngrounding = response.candidates[0].grounding_metadata\nif not grounding:\n print('No grounding sources found')\nelse:\n sources = {c.retrieved_context.title for c in grounding.grounding_chunks}\n print('Sources:', *sources)<\/pre>\n\n\n\n<p>\u6271\u3044\u3084\u3059\u3044\u3088\u3046\u306b<a href=\"https:\/\/github.com\/theskumar\/python-dotenv\" target=\"_blank\" rel=\"noreferrer noopener\">python-dotenv<\/a>\u3092\u4f7f\u3063\u3066\u74b0\u5883\u5909\u6570 <code>GOOGLE_API_KEY<\/code> \u3067API\u30ad\u30fc\u3092\u53d6\u5f97\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3057\u3001\u300c<a href=\"https:\/\/www.creationline.com\/tech-blog\/76913\" target=\"_blank\" rel=\"noreferrer noopener\">\u307f\u3093\u306a\u3067\u80b2\u3080\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u30fb\u6b63\u5f0f\u5c0e\u5165\u3092\u6c7a\u5b9a\u3057\u307e\u3057\u305f<\/a>\u300d\u3067\u3082\u7d39\u4ecb\u3055\u308c\u305f\u5f0a\u793e\u793e\u5185\u306e\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u300d\u306e\u8aac\u660ePDF\u3092\u5bfe\u8c61\u306b\u3059\u308b\u3088\u3046\u5909\u66f4\u3057\u307e\u3059\u3002\u5dee\u5206\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">--- official.py    2025-11-19 16:11:20.951251206 +0900\n+++ google-official.py    2025-11-17 18:22:31.281478357 +0900\n@@ -1,13 +1,18 @@\n+# -*- coding: utf-8 -*-\n import time\n+import os\n+from dotenv import load_dotenv\n from google import genai\n from google.genai import types\n\n-client = genai.Client()\n+load_dotenv()\n+\n+client = genai.Client(api_key=os.getenv('GOOGLE_API_KEY'))\n store = client.file_search_stores.create()\n\n upload_op = client.file_search_stores.upload_to_file_search_store(\n     file_search_store_name=store.name,\n-    file='path\/to\/your\/document.pdf'\n+    file='document.pdf',\n )\n\n while not upload_op.done:\n@@ -17,7 +22,7 @@\n # Use the file search store as a tool in your generation call\n response = client.models.generate_content(\n     model='gemini-2.5-flash',\n-    contents='What does the research say about ...',\n+    contents='\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u306e\u7533\u8acb\u624b\u9806\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002',\n     config=types.GenerateContentConfig(\n         tools=[types.Tool(\n             file_search=types.FileSearch(<\/pre>\n\n\n\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u306e\u7533\u8acb\u624b\u9806\u306f\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002\n\n**1. \u76f8\u8ac7\u30fb\u7533\u8acb (\u672c\u4eba\u3068\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc)**\n*   **\u672c\u4eba\u304c\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306b\u76f8\u8ac7:** \u4f1a\u793e\u306e\u4e8b\u696d\u76ee\u6a19\u3084\u30c1\u30fc\u30e0\u76ee\u6a19\u306b\u3069\u306e\u3088\u3046\u306b\u8ca2\u732e\u3067\u304d\u308b\u304b\u3092\u5177\u4f53\u7684\u306b\u4f1d\u3048\u3001\u652f\u63f4\u306e\u63d0\u6848\u3092\u53d7\u3051\u307e\u3059\u3002\n*   **\u672c\u4eba\u304c\u7533\u8acb\u5185\u5bb9\u3092\u8a18\u8f09:** \u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u3092\u66f4\u65b0\u3057\u3001\u5fc5\u8981\u306a\u60c5\u5831\u30921\u5217\u307e\u3067\u5165\u529b\u3057\u307e\u3059\u3002\n\n**2. \u627f\u8a8d (\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc)**\n*   **\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u5224\u65ad\u5185\u5bb9\u3092\u8ffd\u8a18:** \u4f1a\u793e\u306e\u4e8b\u696d\u76ee\u6a19\u3084\u30c1\u30fc\u30e0\u76ee\u6a19\u3078\u306e\u8ca2\u732e\u5ea6\u3068\u3044\u3046\u8996\u70b9\u3067\u627f\u8a8d\u306e\u5224\u65ad\u3092\u884c\u3044\u3001\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002\n    *   **\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u81ea\u8eab\u306e\u7533\u8acb\u306e\u5834\u5408:** \u4e8b\u696d\u8cac\u4efb\u8005\u306e\u627f\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002\n\n**\u4e0a\u9650\u91d1\u984d\u3092\u4e0a\u56de\u308b\u652f\u63f4\u304c\u5fc5\u8981\u306a\u5834\u5408 (\u88dc\u8db3)**\n*   **\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u4e8b\u696d\u8cac\u4efb\u8005\u306b\u76f8\u8ac7:** \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u4e8b\u696d\u8cac\u4efb\u8005\u3078\u76f8\u8ac7\u3057\u307e\u3059\u3002\n*   **\u7d4c\u8cbb\u7533\u8acb\u30b7\u30b9\u30c6\u30e0\u306e\u4e8b\u524d\u7533\u8acb\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5229\u7528:** \u672c\u4eba\u304c\u7d4c\u8cbb\u7533\u8acb\u30b7\u30b9\u30c6\u30e0\u306e\u4e8b\u524d\u7533\u8acb\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5229\u7528\u3057\u3066\u300c\u8cfc\u5165\u7269\u7533\u8acb\u300d\u3092\u884c\u3044\u3001\u627f\u8a8d\u307e\u305f\u306f\u5374\u4e0b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\n    *   \u7533\u8acb\u7d4c\u8def\u306f\u300c\u7533\u8acb\u8005 \u21d2 \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc \u21d2 \u6700\u7d42\u627f\u8a8d\u8005\u300d\u3068\u306a\u308a\u307e\u3059\u3002\n    *   \u7533\u8acb\u6642\u306b\u627f\u8a8d\u8005\u3092\u6307\u5b9a\u3057\u3001\u6307\u5b9a\u3055\u308c\u305f\u30e1\u30f3\u30d0\u30fc\u306e\u627f\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002\n\n**3. \u8cfc\u5165\u652f\u6255\u65e5\u8a18\u8f09 (\u672c\u4eba)**\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306e\u627f\u8a8d\u5f8c\u3001\u7acb\u66ff\u8cfc\u5165\u3092\u884c\u3044\u3001\u652f\u6255\u65e5\u3092\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u306eJ\u5217\u306b\u8a18\u5165\u3057\u307e\u3059\u3002\n\n**4. \u8acb\u6c42\u65b9\u6cd5 (\u672c\u4eba)**\n*   **\u7d4c\u8cbb\u7533\u8acb\u30b7\u30b9\u30c6\u30e0\u3067\u7d4c\u8cbb\u7533\u8acb:** \u672c\u4eba\u304c\u7d4c\u8cbb\u7533\u8acb\u30b7\u30b9\u30c6\u30e0\u3092\u5229\u7528\u3057\u3066\u7d4c\u8cbb\u7533\u8acb\u3092\u884c\u3044\u307e\u3059\u3002\u9818\u53ce\u66f8\u304c\u5fc5\u9808\u3067\u3059\u3002\n    *   \u7533\u8acb\u65e5\u306f\u9818\u53ce\u66f8\u306e\u65e5\u4ed8\uff08\u652f\u6255\u3044\u65e5\uff09\u3068\u3057\u307e\u3059\u3002\n    *   \u8cbb\u76ee\u306f\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\n        *   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u7814\u4fee\n        *   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u66f8\u7c4d\n        *   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u8cc7\u683c\u53d6\u5f97\n    *   \u4e0a\u9650\u91d1\u984d\u3092\u4e0a\u56de\u308b\u7533\u8acb\u3067\u4e8b\u524d\u7533\u8acb\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4e8b\u524d\u7533\u8acb\u3068\u95a2\u9023\u4ed8\u3051\u3066\u7d4c\u8cbb\u7533\u8acb\u3092\u884c\u3044\u307e\u3059\u3002\n\n**5. \u8acb\u6c42\u627f\u8a8d (\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc)**\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u7533\u8acb\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3001\u627f\u8a8d\u3057\u307e\u3059\u3002\n\n**6. \u652f\u7d66\u65b9\u6cd5 (\u7d4c\u7406)**\n*   \u7d4c\u8cbb\u3068\u3057\u3066\u652f\u7d66\u3055\u308c\u307e\u3059\u3002\n\n**\u6ce8\u610f\u4e8b\u9805:**\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306e\u627f\u8a8d\u304c\u306a\u3044\u307e\u307e\u5148\u306b\u7d4c\u8cbb\u7cbe\u7b97\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u627f\u8a8d\u5f8c\u306b\u8cfc\u5165\u3068\u7d4c\u8cbb\u7cbe\u7b97\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\n*   \u8cfc\u5165\u652f\u6255\u6708\u306b\u5fc5\u305a\u7d4c\u8cbb\u7533\u8acb\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u7d4c\u8cbb\u7533\u8acb\u3092\u5fd8\u308c\u305f\u5834\u5408\u3001\u7cbe\u7b97\u306f\u3067\u304d\u307e\u305b\u3093\u3002\n*   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u3067\u8cfc\u5165\u3057\u305f\u66f8\u7c4d\u306f\u8fd4\u5374\u4e0d\u8981\u3067\u3059\u3002\n*   \u7814\u4fee\u53d7\u8b1b\u306b\u304b\u304b\u308b\u79fb\u52d5\u8cbb\u7528\u306f\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u306e10\u4e07\u5186\u306b\u306f\u542b\u307e\u308c\u307e\u305b\u3093\u304c\u3001\u5225\u306b\u7d4c\u8cbb\u7cbe\u7b97\u304c\u53ef\u80fd\u3067\u3059\u3002\n*   \u9818\u53ce\u66f8\u3092\u7d1b\u5931\u3057\u305f\u5834\u5408\u3001\u7cbe\u7b97\u306f\u3067\u304d\u307e\u305b\u3093\u3002\nSources: document.pdf<\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u307e\u3068\u3081\u3089\u308c\u305f\u624b\u9806\u304c\u751f\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u3069\u306e\u3088\u3046\u306b\u683c\u7d0d\u30fb\u691c\u7d22\u3055\u308c\u3066\u3044\u308b\u306e\u304b<\/h2>\n\n\n\n<p>\u3055\u3066\u3001\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305fPDF\u306f\u3069\u306e\u3088\u3046\u306b\u683c\u7d0d\u30fb\u691c\u7d22\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/file-search?hl=ja#how-it-works\" target=\"_blank\" rel=\"noreferrer noopener\">\u4ed5\u7d44\u307f<\/a>\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046(2025\u5e7411\u670819\u65e5\u73fe\u5728)\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<ol class=\"wp-block-list\">\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u3092\u4f5c\u6210\u3059\u308b:<\/strong> \u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306b\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u51e6\u7406\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30bb\u30de\u30f3\u30c6\u30a3\u30c3\u30af\u691c\u7d22\u304c\u52d5\u4f5c\u3059\u308b\u30a8\u30f3\u30d9\u30c7\u30a3\u30f3\u30b0\u306e\u6c38\u7d9a\u30b3\u30f3\u30c6\u30ca\u3067\u3059\u3002<\/li>\n<\/ol>\n<\/blockquote>\n\n\n\n<p>\u3053\u308c\u306f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">store = client.file_search_stores.create()<\/pre>\n\n\n\n<p>\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b:<\/strong> \u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3068\u540c\u6642\u306b\u3001\u7d50\u679c\u3092\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u672a\u52a0\u5de5\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3078\u306e\u53c2\u7167\u3067\u3042\u308b\u4e00\u6642\u7684\u306a <code>File<\/code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u306f\u30c1\u30e3\u30f3\u30af\u5316\u3055\u308c\u3001\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30a8\u30f3\u30d9\u30c7\u30a3\u30f3\u30b0\u306b\u5909\u63db\u3055\u308c\u3066\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002 <code>File<\/code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f 48 \u6642\u9593\u5f8c\u306b\u524a\u9664\u3055\u308c\u307e\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306f\u3001\u524a\u9664\u3059\u308b\u307e\u3067\u7121\u671f\u9650\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/blockquote>\n\n\n\n<p>\u3053\u308c\u306f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">upload_op = client.file_search_stores.upload_to_file_search_store(\n    file_search_store_name=store.name,\n    file='document.pdf',\n)\n\nwhile not upload_op.done:\n  time.sleep(5)\n  upload_op = client.operations.get(upload_op)<\/pre>\n\n\n\n<p>\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002\u3053\u306e\u6642\u70b9\u3067\u3001<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30c7\u30fc\u30bf\u306e\u30c1\u30e3\u30f3\u30af\u5316<\/li>\n\n\n\n<li>\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30a8\u30f3\u30d9\u30c7\u30a3\u30f3\u30b0\u306b\u5909\u63db<\/li>\n\n\n\n<li>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210<\/li>\n<\/ul>\n\n\n\n<p>\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5225\u9014\u3001\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u3084\u30d9\u30af\u30c8\u30ebDB\u306a\u3069\u3092\u6e96\u5099\u3057\u306a\u304f\u3066\u3082\u3088\u3044\u306e\u3067\u3059\u3002\u3057\u304b\u3082<a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/file-search?hl=ja#pricing\" target=\"_blank\" rel=\"noreferrer noopener\">\u6599\u91d1<\/a>\u306b\u3088\u308c\u3070\u3001\u3053\u306e\u30a8\u30f3\u30d9\u30c7\u30a3\u30f3\u30b0\u306e\u6599\u91d1\u3060\u3051\u304c\u304b\u304b\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306e<a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/file-search?hl=ja#rate-limits\" target=\"_blank\" rel=\"noreferrer noopener\">\u5408\u8a08\u30b5\u30a4\u30ba\u304c1GB\u307e\u3067\u306a\u3089\u7121\u6599<\/a>\u306e\u3088\u3046\u3067\u3059\u3002\u69cb\u6210\u8981\u7d20\u3092\u5225\u3005\u306b\u7528\u610f\u3059\u308b\u306e\u306f\u7ba1\u7406\u304c\u5927\u5909\u306b\u306a\u308a\u307e\u3059\u3057\u3001\u5408\u8a08\u3067\u3069\u308c\u3060\u3051\u6599\u91d1\u304c\u304b\u304b\u308b\u306e\u304b\u30fb\u304b\u304b\u3063\u3066\u3044\u308b\u306e\u304b\u308f\u304b\u308a\u306b\u304f\u3044\u305f\u3081\u3001\u624b\u3092\u51fa\u3059\u306e\u306b\u8e8a\u8e87\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u4e00\u65b9\u3001\u3053\u306eGemini API File Search Tool\u306a\u3089\u30701\u3064\u306b\u307e\u3068\u3081\u3089\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3068\u3066\u3082\u624b\u8efd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3068\u3053\u308d\u3067\u3001<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u672a\u52a0\u5de5\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3078\u306e\u53c2\u7167\u3067\u3042\u308b\u4e00\u6642\u7684\u306a <code>File<\/code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u306f\u30c1\u30e3\u30f3\u30af\u5316\u3055\u308c\u3001\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30a8\u30f3\u30d9\u30c7\u30a3\u30f3\u30b0\u306b\u5909\u63db\u3055\u308c\u3066\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002 <code>File<\/code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f 48 \u6642\u9593\u5f8c\u306b\u524a\u9664\u3055\u308c\u307e\u3059\u304c\u3001<\/p>\n<\/blockquote>\n\n\n\n<p>\u306e\u90e8\u5206\u3067\u3059\u304c\u3001\u3053\u306e\u300c48\u6642\u9593\u3067\u6d88\u3048\u308b <code>File<\/code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306f\u5185\u90e8\u7684\u306a\u3082\u306e\u306a\u306e\u304b\u3001\u30e6\u30fc\u30b6\u5074\u304b\u3089\u306f\u78ba\u8a8d\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u3068\u5225\u306b\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u5225\u306b\u898b\u3048\u308b\u306e\u304b\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u2026\u3002\u3082\u3057\u300c\u3053\u3046\u3057\u305f\u3089\u78ba\u8a8d\u3067\u304d\u308b\u300d\u3068\u3044\u3046\u65b9\u6cd5\u3092\u3054\u5b58\u77e5\u306e\u65b9\u306f\u304a\u77e5\u3089\u305b\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002\u3053\u308c\u306b\u9650\u3089\u305aGemini API File Search Tool\u306f\u30a6\u30a7\u30d6UI\u3084 <code>gcloud<\/code> \u30c4\u30fc\u30eb\u3067\u64cd\u4f5c\u30fb\u95b2\u89a7\u3067\u304d\u306a\u3044\u3053\u3068\u3082\u591a\u304f\u3001\u305d\u3046\u3044\u3046\u4ed5\u69d8\u306a\u306e\u304b\u51fa\u305f\u3070\u304b\u308a\u3067\u672a\u63d0\u4f9b\u306a\u306e\u304b\u3001\u5224\u65ad\u306b\u56f0\u308b\u3068\u3053\u308d\u304c\u591a\u3044\u3067\u3059(2025\u5e7411\u670819\u65e5\u73fe\u5728)\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u3067\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b:<\/strong> \u6700\u5f8c\u306b\u3001 <code>generateContent<\/code> \u547c\u3073\u51fa\u3057\u3067 <code>FileSearch<\/code> \u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30c4\u30fc\u30eb\u69cb\u6210\u3067\u3001\u691c\u7d22\u3059\u308b <code>FileSearchStore<\/code> \u3092\u6307\u3059 <code>FileSearchRetrievalResource<\/code> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30e2\u30c7\u30eb\u306f\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u3067\u30bb\u30de\u30f3\u30c6\u30a3\u30c3\u30af\u691c\u7d22\u3092\u5b9f\u884c\u3057\u3001\u56de\u7b54\u306e\u30b0\u30e9\u30a6\u30f3\u30c7\u30a3\u30f3\u30b0\u306b\u95a2\u9023\u3059\u308b\u60c5\u5831\u3092\u691c\u7d22\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/blockquote>\n\n\n\n<p>\u3053\u308c\u306f\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">response = client.models.generate_content(\n    model='gemini-2.5-flash',\n    contents='\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u306e\u7533\u8acb\u624b\u9806\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002',\n    config=types.GenerateContentConfig(\n        tools=[types.Tool(\n            file_search=types.FileSearch(\n                file_search_store_names=[store.name]\n            )\n        )]\n    )\n)<\/pre>\n\n\n\n<p>\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u7d50\u679c\u3092\u3001<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">print(response.text)\n\n# Support your response with links to the grounding sources.\ngrounding = response.candidates[0].grounding_metadata\nif not grounding:\n print('No grounding sources found')\nelse:\n sources = {c.retrieved_context.title for c in grounding.grounding_chunks}\n print('Sources:', *sources)<\/pre>\n\n\n\n<p>\u3067\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u751f\u6210AI\u3067\u4f5c\u6210\u3059\u308b\u5185\u5bb9\u3092\u3001\u691c\u8a3c\u53ef\u80fd\u306a\u60c5\u5831\u30bd\u30fc\u30b9\u306b\u95a2\u9023\u3065\u3051\u308b\u3053\u3068\u3092\u300c\u30b0\u30e9\u30a6\u30f3\u30c7\u30a3\u30f3\u30b0\u300d\u3068\u8a00\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5148\u306e\u7d50\u679c\u3067\u306f\u3001<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Sources: document.pdf<\/pre>\n\n\n\n<p>\u3068\u3044\u3046\u60c5\u5831\u30bd\u30fc\u30b9\u3092\u8868\u793a\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u3053\u308c\u3092\u5143\u306b\u56de\u7b54\u3092\u751f\u6210\u3057\u305f\u3001\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306e\u4e00\u89a7\u8868\u793a<\/h2>\n\n\n\n<p>\u3044\u307e\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u3092\u8868\u793a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u6b21\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3044\u307e\u3059\u3002\u306a\u304a\u3001\u3053\u308c\u306f<a href=\"https:\/\/www.claude.com\/ja-jp\/product\/claude-code\" target=\"_blank\" rel=\"noreferrer noopener\">Claude Code<\/a>\u3067\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># -*- coding: utf-8 -*-\nimport os\nfrom dotenv import load_dotenv\nfrom google import genai\n\nload_dotenv()\n\nclient = genai.Client(api_key=os.getenv('GOOGLE_API_KEY'))\n\n# \u3059\u3079\u3066\u306eFile Search Store\u3092\u53d6\u5f97\nprint(\"=== File Search Stores ===\\n\")\n\nstores = client.file_search_stores.list()\n\nstore_count = 0\nfor store in stores:\n    store_count += 1\n    print(f\"Store #{store_count}\")\n    print(f\"  Name: {store.name}\")\n\n    # display_name\u304c\u3042\u308b\u5834\u5408\u306e\u307f\u8868\u793a\n    if hasattr(store, 'display_name') and store.display_name:\n        print(f\"  Display Name: {store.display_name}\")\n\n    # \u30b5\u30a4\u30ba\u60c5\u5831\n    if hasattr(store, 'size_bytes') and store.size_bytes is not None:\n        size_mb = store.size_bytes \/ (1024 * 1024)\n        print(f\"  Size: {store.size_bytes:,} bytes ({size_mb:.2f} MB)\")\n    elif hasattr(store, 'size_bytes'):\n        print(f\"  Size: 0 bytes (empty store)\")\n\n    # \u4f5c\u6210\u6642\u523b\n    if hasattr(store, 'create_time'):\n        print(f\"  Created: {store.create_time}\")\n\n    # \u66f4\u65b0\u6642\u523b\n    if hasattr(store, 'update_time'):\n        print(f\"  Updated: {store.update_time}\")\n\n    # \u305d\u306e\u4ed6\u306e\u3059\u3079\u3066\u306e\u5c5e\u6027\u3092\u8868\u793a\n    print(f\"  All Store attributes:\")\n\n    # Pydantic\u30e2\u30c7\u30eb\u306e\u5834\u5408\u306fmodel_dump()\u3092\u4f7f\u7528\n    if hasattr(store, 'model_dump'):\n        data = store.model_dump()\n        for key, value in data.items():\n            print(f\"    {key}: {value}\")\n    else:\n        # \u901a\u5e38\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5834\u5408\n        for attr in dir(store):\n            # \u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u5c5e\u6027\u3084\u30e1\u30bd\u30c3\u30c9\u3092\u9664\u5916\n            if not attr.startswith('_') and not callable(getattr(store, attr)):\n                try:\n                    value = getattr(store, attr)\n                    print(f\"    {attr}: {value}\")\n                except Exception:\n                    # \u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u5c5e\u6027\u306f\u30b9\u30ad\u30c3\u30d7\n                    pass\n\n    # \u30b9\u30c8\u30a2\u5185\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4e00\u89a7\u8868\u793a\n    print(f\"\\n  Documents in this store:\")\n    try:\n        documents = client.file_search_stores.documents.list(parent=store.name)\n        doc_count = 0\n        for doc in documents:\n            doc_count += 1\n            print(f\"\\n    Document #{doc_count}:\")\n            print(f\"      Name: {doc.name}\")\n\n            # \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u57fa\u672c\u60c5\u5831\n            if hasattr(doc, 'display_name') and doc.display_name:\n                print(f\"      Display Name: {doc.display_name}\")\n\n            if hasattr(doc, 'size_bytes') and doc.size_bytes is not None:\n                size_mb = doc.size_bytes \/ (1024 * 1024)\n                print(f\"      Size: {doc.size_bytes:,} bytes ({size_mb:.2f} MB)\")\n\n            if hasattr(doc, 'create_time'):\n                print(f\"      Created: {doc.create_time}\")\n\n            if hasattr(doc, 'update_time'):\n                print(f\"      Updated: {doc.update_time}\")\n\n            # \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u3059\u3079\u3066\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u8868\u793a\n            print(f\"      All Document attributes:\")\n            if hasattr(doc, 'model_dump'):\n                doc_data = doc.model_dump()\n                for key, value in doc_data.items():\n                    print(f\"        {key}: {value}\")\n            else:\n                for attr in dir(doc):\n                    if not attr.startswith('_') and not callable(getattr(doc, attr)):\n                        try:\n                            value = getattr(doc, attr)\n                            print(f\"        {attr}: {value}\")\n                        except Exception:\n                            pass\n\n        if doc_count == 0:\n            print(f\"    (No documents)\")\n        else:\n            print(f\"\\n    Total documents: {doc_count}\")\n\n    except Exception as e:\n        print(f\"    Error listing documents: {e}\")\n\n    print(\"-\" * 60)\n\nif store_count == 0:\n    print(\"No File Search Stores found.\")\nelse:\n    print(f\"\\nTotal: {store_count} store(s)\")<\/pre>\n\n\n\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002\u4e00\u90e8\u3001ID\u3068\u601d\u308f\u308c\u308b\u3068\u3053\u308d\u306f\u4f0f\u305b\u5b57\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">=== File Search Stores ===\n\nStore #1\n  Name: fileSearchStores\/\u2605\u2605\u2605\u2605-\u25cf\u25cf\u25cf\u25cf\n  Size: 395,734 bytes (0.38 MB)\n  Created: 2025-11-19 08:56:07.028915+00:00\n  Updated: 2025-11-19 08:56:07.028915+00:00\n  All Store attributes:\n    name: fileSearchStores\/\u2605\u2605\u2605\u2605-\u25cf\u25cf\u25cf\u25cf\n    display_name: None\n    create_time: 2025-11-19 08:56:07.028915+00:00\n    update_time: 2025-11-19 08:56:07.028915+00:00\n    active_documents_count: 1\n    pending_documents_count: None\n    failed_documents_count: None\n    size_bytes: 395734\n\n  Documents in this store:\n\n    Document #1:\n      Name: fileSearchStores\/\u2605\u2605\u2605\u2605-\u25cf\u25cf\u25cf\u25cf\/documents\/documentpdf-\u25b2\u25b2\u25b2\u25b2\n      Display Name: document.pdf\n      Size: 395,734 bytes (0.38 MB)\n      Created: 2025-11-19 08:56:11.159178+00:00\n      Updated: 2025-11-19 08:56:14.083813+00:00\n      All Document attributes:\n        name: fileSearchStores\/\u2605\u2605\u2605\u2605-\u25cf\u25cf\u25cf\u25cf\/documents\/documentpdf-\u25b2\u25b2\u25b2\u25b2\n        display_name: document.pdf\n        state: DocumentState.STATE_ACTIVE\n        size_bytes: 395734\n        mime_type: application\/pdf\n        create_time: 2025-11-19 08:56:11.159178+00:00\n        custom_metadata: None\n        update_time: 2025-11-19 08:56:14.083813+00:00\n\n    Total documents: 1\n------------------------------------------------------------\n\nTotal: 1 store(s)<\/pre>\n\n\n\n<p>\u300c\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u300d\u3068\u3044\u3046\u5165\u308c\u7269\u306e\u4e2d\u306b\u300c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u300d\u3068\u3044\u3046\u5b9f\u969b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3057\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u4ed5\u7d44\u307f\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306b\u306f\u4f55\u304b\u72ec\u81ea\u306e\u540d\u524d\u304c\u3064\u304f\u3088\u3046\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u4f0f\u305b\u5b57\u8fbc\u307f\u3067\u300cfileSearchStores\/\u2605\u2605\u2605\u2605-\u25cf\u25cf\u25cf\u25cf\u300d\u3067\u8868\u3057\u3066\u3044\u308b\u7b87\u6240\u3067\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">store = client.file_search_stores.create()<\/pre>\n\n\n\n<p>\u3068\u3057\u3066\u4f5c\u6210\u3057\u3001<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">     file_search_store_name=store.name,<\/pre>\n\n\n\n<p>\u306a\u3069\u3067\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306e\u540d\u524d\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3064\u307e\u308a\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u65b0\u3057\u304f\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u300c\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306e\u4f5c\u6210\u300d\u300c\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u300d\u300c\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u5185\u3092\u691c\u7d22\u300d\u304c\u4e00\u4f53\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u5b9f\u969b\u306b\u30b7\u30b9\u30c6\u30e0\u69cb\u7bc9\u3059\u308b\u969b\u306f\u6700\u4f4e\u9650\u3053\u308c\u3089\u3092\u5206\u96e2\u3059\u308b\u3079\u304d\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306e\u60c5\u5831\u306e\u8a73\u7d30\u8868\u793a<\/h2>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u691c\u7d22\u3057\u3066\u3082\u6700\u4f4e\u9650\u306e\u60c5\u5831\u3057\u304b\u8868\u793a\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u3055\u3089\u306b\u60c5\u5831\u3092\u8868\u793a\u3055\u305b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u6b21\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u308c\u3082<a href=\"https:\/\/www.claude.com\/ja-jp\/product\/claude-code\" target=\"_blank\" rel=\"noreferrer noopener\">Claude Code<\/a>\u3067\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># -*- coding: utf-8 -*-\nimport os\nimport sys\nimport json\nfrom dotenv import load_dotenv\nfrom google import genai\nfrom google.genai import types\n\nload_dotenv()\n\nclient = genai.Client(api_key=os.getenv('GOOGLE_API_KEY'))\n\n# \u30b9\u30c8\u30a2\u540d\u306e\u6307\u5b9a\uff08\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5f15\u6570\u307e\u305f\u306f\u5bfe\u8a71\u5f0f\u3067\u53d6\u5f97\uff09\nif len(sys.argv) > 1:\n    store_name = sys.argv[1]\nelse:\n    # \u30b9\u30c8\u30a2\u306e\u4e00\u89a7\u3092\u8868\u793a\n    print(\"=== Available File Search Stores ===\")\n    stores = client.file_search_stores.list()\n    store_list = []\n\n    for idx, store in enumerate(stores, 1):\n        store_list.append(store)\n        size_info = \"empty\"\n        if hasattr(store, 'size_bytes') and store.size_bytes:\n            size_mb = store.size_bytes \/ (1024 * 1024)\n            size_info = f\"{size_mb:.2f} MB\"\n\n        print(f\"{idx}. {store.name}\")\n        print(f\"   Size: {size_info}\")\n        if hasattr(store, 'create_time'):\n            print(f\"   Created: {store.create_time}\")\n\n    if not store_list:\n        print(\"\\nNo stores found. Please upload files first using:\")\n        print(\"  python3 google-official-upload-only.py\")\n        sys.exit(1)\n\n    # \u30b9\u30c8\u30a2\u3092\u9078\u629e\n    print(\"\\n\" + \"=\" * 50)\n    choice = input(f\"Select store number (1-{len(store_list)}): \").strip()\n\n    try:\n        idx = int(choice) - 1\n        if 0 &lt;= idx &lt; len(store_list):\n            store_name = store_list[idx].name\n        else:\n            print(\"Invalid store number.\")\n            sys.exit(1)\n    except ValueError:\n        print(\"Invalid input.\")\n        sys.exit(1)\n\nprint(f\"\\nUsing store: {store_name}\")\n\n# \u30af\u30a8\u30ea\u306e\u5165\u529b\nif len(sys.argv) > 2:\n    query = sys.argv[2]\nelse:\n    print(\"\\nEnter your query (or press Ctrl+C to exit):\")\n    query = input(\"> \").strip()\n\n    if not query:\n        print(\"No query provided.\")\n        sys.exit(1)\n\nprint(f\"\\nQuery: {query}\")\nprint(\"Searching...\")\n\n# File Search\u3092\u4f7f\u3063\u305f\u8cea\u554f\u5fdc\u7b54\nresponse = client.models.generate_content(\n    model='gemini-2.5-flash',\n    contents=query,\n    config=types.GenerateContentConfig(\n        tools=[types.Tool(\n            file_search=types.FileSearch(\n                file_search_store_names=[store_name]\n            )\n        )]\n    )\n)\n\n# \u30ec\u30b9\u30dd\u30f3\u30b9\u30c6\u30ad\u30b9\u30c8\u306e\u8868\u793a\uff08\u8aad\u307f\u3084\u3059\u3055\u512a\u5148\uff09\nprint(\"\\n\" + \"=\" * 70)\nprint(\"RESPONSE TEXT\")\nprint(\"=\" * 70)\nprint(response.text)\n\n# \u5b8c\u5168\u306a\u30ec\u30b9\u30dd\u30f3\u30b9\u69cb\u9020\u306e\u8868\u793a\nprint(\"\\n\" + \"=\" * 70)\nprint(\"COMPLETE RESPONSE STRUCTURE (JSON)\")\nprint(\"=\" * 70)\n\nif hasattr(response, 'model_dump'):\n    try:\n        response_data = response.model_dump()\n        print(json.dumps(response_data, indent=2, ensure_ascii=False, default=str))\n    except Exception as e:\n        print(f\"Error dumping response: {e}\")\n        # \u30d5\u30a9\u30fc\u30eb\u30d0\u30c3\u30af: \u4e3b\u8981\u306a\u5c5e\u6027\u3092\u500b\u5225\u306b\u8868\u793a\n        print(\"\\nFalling back to attribute display:\")\n        for attr in dir(response):\n            if not attr.startswith('_') and not callable(getattr(response, attr)):\n                try:\n                    value = getattr(response, attr)\n                    print(f\"{attr}: {value}\")\n                except Exception:\n                    pass\nelse:\n    print(\"response.model_dump() not available\")<\/pre>\n\n\n\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002\u4e00\u90e8\u3001\u4f0f\u305b\u5b57\u306b\u3057\u305f\u308a\u7701\u7565\u3057\u305f\u308a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Using store: fileSearchStores\/\u2605\u2605\u2605\u2605-\u25cf\u25cf\u25cf\u25cf\n\nQuery: \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u306e\u7533\u8acb\u624b\u9806\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002\nSearching...\n\n======================================================================\nRESPONSE TEXT\n======================================================================\n\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u306e\u7533\u8acb\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002\n\n**1. \u76f8\u8ac7\u30fb\u7533\u8acb**\n*   \u672c\u4eba\u304c\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306b\u76f8\u8ac7\u3057\u307e\u3059\u3002\u3053\u306e\u969b\u3001\u4f1a\u793e\u306e\u4e8b\u696d\u76ee\u6a19\u3084\u30c1\u30fc\u30e0\u76ee\u6a19\u306b\u3069\u306e\u3088\u3046\u306b\u8ca2\u732e\u3067\u304d\u308b\u304b\u3068\u3044\u3046\u70b9\u3092\u4f1d\u3048\u307e\u3059\u3002\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304b\u3089\u652f\u63f4\u306b\u95a2\u3059\u308b\u63d0\u6848\u3092\u53d7\u3051\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\n*   \u672c\u4eba\u304c\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u306b\u7533\u8acb\u5185\u5bb9\u30921\u5217\u307e\u3067\u8a18\u8f09\u3057\u3066\u66f4\u65b0\u3057\u307e\u3059\u3002\n\n**2. \u627f\u8a8d**\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u3001\u4f1a\u793e\u306e\u4e8b\u696d\u76ee\u6a19\u3084\u30c1\u30fc\u30e0\u76ee\u6a19\u3078\u306e\u8ca2\u732e\u5ea6\u3092\u8003\u616e\u3057\u3066\u627f\u8a8d\u3092\u5224\u65ad\u3057\u307e\u3059\u3002\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306f\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u306b\u5224\u65ad\u5185\u5bb9\u3092\u8ffd\u8a18\u3057\u3001K\u5217\u4ee5\u964d\u3092\u5165\u529b\u3057\u307e\u3059\u3002\n    *   **\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u81ea\u8eab\u304c\u7533\u8acb\u3059\u308b\u5834\u5408**\u306f\u3001\u4e8b\u696d\u8cac\u4efb\u8005\u306e\u627f\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002\n\n**\u4e0a\u9650\u91d1\u984d\u3092\u4e0a\u56de\u308b\u652f\u63f4\u304c\u5fc5\u8981\u306a\u5834\u5408\uff08\u88dc\u8db3\uff09**\n*   \u307e\u305a\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u4e8b\u696d\u8cac\u4efb\u8005\u306b\u76f8\u8ac7\u3057\u307e\u3059\u3002\n*   \u305d\u306e\u5f8c\u3001\u672c\u4eba\u304c\u7d4c\u8cbb\u7533\u8acb\u30b7\u30b9\u30c6\u30e0\u306e\u4e8b\u524d\u7533\u8acb\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5229\u7528\u3057\u3001\u300c\u8cfc\u5165\u7269\u7533\u8acb\u300d\u3068\u3057\u3066\u627f\u8a8d\u307e\u305f\u306f\u5374\u4e0b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\n    *   \u7533\u8acb\u7d4c\u8def\u306f\u300c\u7533\u8acb\u8005 \u21d2 \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc \u21d2 \u6700\u7d42\u627f\u8a8d\u8005\u300d\u3068\u306a\u308a\u307e\u3059\u3002\n    *   \u7533\u8acb\u6642\u306b\u627f\u8a8d\u8005\u3092\u6307\u5b9a\u3057\u3001\u6307\u5b9a\u3055\u308c\u305f\u30e1\u30f3\u30d0\u30fc\u306e\u627f\u8a8d\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002\n\n**\u627f\u8a8d\u5f8c\u306e\u8acb\u6c42\u624b\u9806**\n\n**3. \u8cfc\u5165\u652f\u6255\u65e5\u8a18\u8f09**\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306e\u627f\u8a8d\u5f8c\u3001\u7acb\u66ff\u8cfc\u5165\u3092\u884c\u3044\u3001\u305d\u306e\u652f\u6255\u65e5\u3092\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u306eJ\u5217\u306b\u8a18\u8f09\u3057\u3066\u66f4\u65b0\u3057\u307e\u3059\u3002\n\n**4. \u8acb\u6c42\u65b9\u6cd5**\n*   \u672c\u4eba\u304c\u7acb\u66ff\u6255\u3044\u3092\u3057\u305f\u5f8c\u3001\u7d4c\u8cbb\u7533\u8acb\u30b7\u30b9\u30c6\u30e0\u3067\u8acb\u6c42\u7533\u8acb\u3092\u884c\u3044\u307e\u3059\u3002\n*   \u9818\u53ce\u66f8\u304c\u5fc5\u9808\u3067\u3001\u7533\u8acb\u65e5\u306f\u9818\u53ce\u66f8\u306e\u65e5\u4ed8\uff08\u652f\u6255\u65e5\uff09\u3068\u3057\u307e\u3059\u3002\n*   \u8cbb\u76ee\u306f\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u3092\u9078\u629e\u3057\u307e\u3059\u3002\n    *   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u7814\u4fee\n    *   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u66f8\u7c4d\n    *   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u8cc7\u683c\u53d6\u5f97\n*   \u4e0a\u9650\u91d1\u984d\u3092\u4e0a\u56de\u308b\u7533\u8acb\u3067\u3001\u4e8b\u524d\u7533\u8acb\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4e8b\u524d\u7533\u8acb\u3068\u95a2\u9023\u4ed8\u3051\u3066\u7d4c\u8cbb\u7533\u8acb\u3092\u884c\u3044\u307e\u3059\u3002\n\n**5. \u8acb\u6c42\u627f\u8a8d**\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u7533\u8acb\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3001\u627f\u8a8d\u3057\u307e\u3059\u3002\n\n**6. \u652f\u7d66\u65b9\u6cd5**\n*   \u7d4c\u8cbb\u3068\u3057\u3066\u652f\u7d66\u3055\u308c\u307e\u3059\u3002\n\n**\u91cd\u8981\u306a\u6ce8\u610f\u70b9**\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306e\u627f\u8a8d\u304c\u306a\u3044\u7533\u8acb\u306f\u7cbe\u7b97\u3067\u304d\u307e\u305b\u3093\u3002\u627f\u8a8d\u5f8c\u306b\u8cfc\u5165\u3068\u7d4c\u8cbb\u7cbe\u7b97\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\n*   \u8cfc\u5165\u652f\u6255\u6708\u306b\u5fc5\u305a\u7d4c\u8cbb\u7533\u8acb\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u7d4c\u8cbb\u7533\u8acb\u3092\u5fd8\u308c\u305f\u5834\u5408\u306f\u7cbe\u7b97\u3067\u304d\u307e\u305b\u3093\u3002\n*   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u3067\u8cfc\u5165\u3057\u305f\u66f8\u7c4d\u306f\u8fd4\u5374\u4e0d\u8981\u3067\u3059\u3002\n*   \u7814\u4fee\u53d7\u8b1b\u306b\u304b\u304b\u308b\u79fb\u52d5\u8cbb\u7528\u306f\u3001\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u306e10\u4e07\u5186\u306b\u306f\u542b\u307e\u308c\u305a\u3001\u5225\u9014\u7d4c\u8cbb\u7cbe\u7b97\u304c\u53ef\u80fd\u3067\u3059\u3002\u79fb\u52d5\u8cbb\u7528\u306f\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u4e00\u89a7\u306b\u8a18\u8f09\u4e0d\u8981\u3067\u3059\u3002\n*   \u9001\u6599\u3084\u4ee3\u5f15\u304d\u624b\u6570\u6599\u3082\u3001\u9818\u53ce\u66f8\u306b\u542b\u307e\u308c\u3066\u3044\u308c\u3070\u7cbe\u7b97\u91d1\u984d\u306b\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n*   \u9818\u53ce\u66f8\u3092\u7d1b\u5931\u3057\u305f\u5834\u5408\u306f\u3001\u901a\u5e38\u306e\u7d4c\u8cbb\u7cbe\u7b97\u3068\u540c\u69d8\u306b\u7cbe\u7b97\u5bfe\u8c61\u5916\u3068\u306a\u308a\u307e\u3059\u3002\n\n\u3054\u4e0d\u660e\u306a\u70b9\u304c\u3042\u308c\u3070\u3001\u4eba\u4e8b\u3042\u3066\u30d5\u30a9\u30fc\u30e0\u3088\u308a\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002\n\n======================================================================\nCOMPLETE RESPONSE STRUCTURE (JSON)\n======================================================================\n{\n  \"sdk_http_response\": {\n    \"headers\": {\n      \"content-type\": \"application\/json; charset=UTF-8\",\n      \"vary\": \"Origin, X-Origin, Referer\",\n      \"content-encoding\": \"gzip\",\n      \"date\": \"Thu, 20 Nov 2025 07:14:55 GMT\",\n      \"server\": \"scaffolding on HTTPServer2\",\n      \"x-xss-protection\": \"0\",\n      \"x-frame-options\": \"SAMEORIGIN\",\n      \"x-content-type-options\": \"nosniff\",\n      \"server-timing\": \"gfet4t7; dur=6869\",\n      \"alt-svc\": \"h3=\\\":443\\\"; ma=2592000,h3-29=\\\":443\\\"; ma=2592000\",\n      \"transfer-encoding\": \"chunked\"\n    },\n    \"body\": null\n  },\n  \"candidates\": [\n    {\n      \"content\": {\n        \"parts\": [\n          {\n            \"media_resolution\": null,\n            \"code_execution_result\": null,\n            \"executable_code\": null,\n            \"file_data\": null,\n            \"function_call\": null,\n            \"function_response\": null,\n            \"inline_data\": null,\n            \"text\": \"\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u306e\u7533\u8acb\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002\\n\\n**1. \u76f8\u8ac7\u30fb\u7533\u8acb**\\n*   \u672c\u4eba\u304c\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306b\u76f8\u8ac7\u3057\u307e\u3059\u3002\u3053\u306e\u969b\u3001\u4f1a\u793e\u306e\u4e8b\u696d\u76ee\u6a19\u3084\u30c1\u30fc\u30e0\u76ee\u6a19\u306b\u3069\u306e\u3088\u3046\u306b\u8ca2\u732e\u3067\u304d\u308b\u304b\u3068\u3044\u3046\u70b9\u3092\u4f1d\u3048\u307e\u3059\u3002\\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304b\u3089\u652f\u63f4\u306b\u95a2\u3059\u308b\u63d0\u6848\u3092\u53d7\u3051\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\\n*   \u672c\u4eba\u304c\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u306b\u7533\u8acb\u5185\u5bb9\u30921\u5217\u307e\u3067\u8a18\u8f09\u3057\u3066\u66f4\u65b0\u3057\u307e\u3059\u3002\\n\\n**2. \u627f\u8a8d**\\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u3001\u4f1a\u793e\u306e\u4e8b\u696d\u76ee\u6a19\u3084\u30c1\u30fc\u30e0\u76ee\u6a19\u3078\u306e\u8ca2\u732e\u5ea6\u3092\u8003\u616e\u3057\u3066\u627f\u8a8d\u3092\u5224\u65ad\u3057\u307e\u3059\u3002\\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306f\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u306b\u5224\u65ad\u5185\u5bb9\u3092\u8ffd\u8a18\u3057\u3001K\u5217\u4ee5\u964d\u3092\u5165\u529b\u3057\u307e\u3059\u3002\\n    *   **\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u81ea\u8eab\u304c\u7533\u8acb\u3059\u308b\u5834\u5408**\u306f\u3001\u4e8b\u696d\u8cac\u4efb\u8005\u306e\u627f\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002\\n\\n**\u4e0a\u9650\u91d1\u984d\u3092\u4e0a\u56de\u308b\u652f\u63f4\u304c\u5fc5\u8981\u306a\u5834\u5408\uff08\u88dc\u8db3\uff09**\\n*   \u307e\u305a\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u4e8b\u696d\u8cac\u4efb\u8005\u306b\u76f8\u8ac7\u3057\u307e\u3059\u3002\\n*   \u305d\u306e\u5f8c\u3001\u672c\u4eba\u304c\u7d4c\u8cbb\u7533\u8acb\u30b7\u30b9\u30c6\u30e0\u306e\u4e8b\u524d\u7533\u8acb\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5229\u7528\u3057\u3001\u300c\u8cfc\u5165\u7269\u7533\u8acb\u300d\u3068\u3057\u3066\u627f\u8a8d\u307e\u305f\u306f\u5374\u4e0b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\\n    *   \u7533\u8acb\u7d4c\u8def\u306f\u300c\u7533\u8acb\u8005 \u21d2 \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc \u21d2 \u6700\u7d42\u627f\u8a8d\u8005\u300d\u3068\u306a\u308a\u307e\u3059\u3002\\n    *   \u7533\u8acb\u6642\u306b\u627f\u8a8d\u8005\u3092\u6307\u5b9a\u3057\u3001\u6307\u5b9a\u3055\u308c\u305f\u30e1\u30f3\u30d0\u30fc\u306e\u627f\u8a8d\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002\\n\\n**\u627f\u8a8d\u5f8c\u306e\u8acb\u6c42\u624b\u9806**\\n\\n**3. \u8cfc\u5165\u652f\u6255\u65e5\u8a18\u8f09**\\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306e\u627f\u8a8d\u5f8c\u3001\u7acb\u66ff\u8cfc\u5165\u3092\u884c\u3044\u3001\u305d\u306e\u652f\u6255\u65e5\u3092\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u306eJ\u5217\u306b\u8a18\u8f09\u3057\u3066\u66f4\u65b0\u3057\u307e\u3059\u3002\\n\\n**4. \u8acb\u6c42\u65b9\u6cd5**\\n*   \u672c\u4eba\u304c\u7acb\u66ff\u6255\u3044\u3092\u3057\u305f\u5f8c\u3001\u7d4c\u8cbb\u7533\u8acb\u30b7\u30b9\u30c6\u30e0\u3067\u8acb\u6c42\u7533\u8acb\u3092\u884c\u3044\u307e\u3059\u3002\\n*   \u9818\u53ce\u66f8\u304c\u5fc5\u9808\u3067\u3001\u7533\u8acb\u65e5\u306f\u9818\u53ce\u66f8\u306e\u65e5\u4ed8\uff08\u652f\u6255\u65e5\uff09\u3068\u3057\u307e\u3059\u3002\\n*   \u8cbb\u76ee\u306f\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u3092\u9078\u629e\u3057\u307e\u3059\u3002\\n    *   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u7814\u4fee\\n    *   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u66f8\u7c4d\\n    *   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u8cc7\u683c\u53d6\u5f97\\n*   \u4e0a\u9650\u91d1\u984d\u3092\u4e0a\u56de\u308b\u7533\u8acb\u3067\u3001\u4e8b\u524d\u7533\u8acb\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4e8b\u524d\u7533\u8acb\u3068\u95a2\u9023\u4ed8\u3051\u3066\u7d4c\u8cbb\u7533\u8acb\u3092\u884c\u3044\u307e\u3059\u3002\\n\\n**5. \u8acb\u6c42\u627f\u8a8d**\\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u7533\u8acb\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3001\u627f\u8a8d\u3057\u307e\u3059\u3002\\n\\n**6. \u652f\u7d66\u65b9\u6cd5**\\n*   \u7d4c\u8cbb\u3068\u3057\u3066\u652f\u7d66\u3055\u308c\u307e\u3059\u3002\\n\\n**\u91cd\u8981\u306a\u6ce8\u610f\u70b9**\\n*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306e\u627f\u8a8d\u304c\u306a\u3044\u7533\u8acb\u306f\u7cbe\u7b97\u3067\u304d\u307e\u305b\u3093\u3002\u627f\u8a8d\u5f8c\u306b\u8cfc\u5165\u3068\u7d4c\u8cbb\u7cbe\u7b97\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\\n*   \u8cfc\u5165\u652f\u6255\u6708\u306b\u5fc5\u305a\u7d4c\u8cbb\u7533\u8acb\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u7d4c\u8cbb\u7533\u8acb\u3092\u5fd8\u308c\u305f\u5834\u5408\u306f\u7cbe\u7b97\u3067\u304d\u307e\u305b\u3093\u3002\\n*   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u3067\u8cfc\u5165\u3057\u305f\u66f8\u7c4d\u306f\u8fd4\u5374\u4e0d\u8981\u3067\u3059\u3002\\n*   \u7814\u4fee\u53d7\u8b1b\u306b\u304b\u304b\u308b\u79fb\u52d5\u8cbb\u7528\u306f\u3001\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u306e10\u4e07\u5186\u306b\u306f\u542b\u307e\u308c\u305a\u3001\u5225\u9014\u7d4c\u8cbb\u7cbe\u7b97\u304c\u53ef\u80fd\u3067\u3059\u3002\u79fb\u52d5\u8cbb\u7528\u306f\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u4e00\u89a7\u306b\u8a18\u8f09\u4e0d\u8981\u3067\u3059\u3002\\n*   \u9001\u6599\u3084\u4ee3\u5f15\u304d\u624b\u6570\u6599\u3082\u3001\u9818\u53ce\u66f8\u306b\u542b\u307e\u308c\u3066\u3044\u308c\u3070\u7cbe\u7b97\u91d1\u984d\u306b\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\\n*   \u9818\u53ce\u66f8\u3092\u7d1b\u5931\u3057\u305f\u5834\u5408\u306f\u3001\u901a\u5e38\u306e\u7d4c\u8cbb\u7cbe\u7b97\u3068\u540c\u69d8\u306b\u7cbe\u7b97\u5bfe\u8c61\u5916\u3068\u306a\u308a\u307e\u3059\u3002\\n\\n\u3054\u4e0d\u660e\u306a\u70b9\u304c\u3042\u308c\u3070\u3001\u4eba\u4e8b\u3042\u3066\u30d5\u30a9\u30fc\u30e0\u3088\u308a\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002\",\n            \"thought\": null,\n            \"thought_signature\": null,\n            \"video_metadata\": null\n          }\n        ],\n        \"role\": \"model\"\n      },\n      \"citation_metadata\": null,\n      \"finish_message\": null,\n      \"token_count\": null,\n      \"finish_reason\": \"STOP\",\n      \"avg_logprobs\": null,\n      \"grounding_metadata\": {\n        \"google_maps_widget_context_token\": null,\n        \"grounding_chunks\": [\n          {\n            \"maps\": null,\n            \"retrieved_context\": {\n              \"document_name\": null,\n              \"rag_chunk\": null,\n              \"text\": \"\u2605\u7701\u7565\u2605\",\n              \"title\": \"document.pdf\",\n              \"uri\": null\n            },\n            \"web\": null\n          },\n          {\n            \"maps\": null,\n            \"retrieved_context\": {\n              \"document_name\": null,\n              \"rag_chunk\": null,\n              \"text\": \"\u2605\u7701\u7565\u2605\",\n              \"title\": \"document.pdf\",\n              \"uri\": null\n            },\n            \"web\": null\n          }\n        ],\n        \"grounding_supports\": [\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 72,\n              \"part_index\": null,\n              \"start_index\": null,\n              \"text\": \"\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u306e\u7533\u8acb\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 96,\n              \"part_index\": null,\n              \"start_index\": 79,\n              \"text\": \"\u76f8\u8ac7\u30fb\u7533\u8acb**\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 269,\n              \"part_index\": null,\n              \"start_index\": 152,\n              \"text\": \"\u3053\u306e\u969b\u3001\u4f1a\u793e\u306e\u4e8b\u696d\u76ee\u6a19\u3084\u30c1\u30fc\u30e0\u76ee\u6a19\u306b\u3069\u306e\u3088\u3046\u306b\u8ca2\u732e\u3067\u304d\u308b\u304b\u3068\u3044\u3046\u70b9\u3092\u4f1d\u3048\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 361,\n              \"part_index\": null,\n              \"start_index\": 270,\n              \"text\": \"*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304b\u3089\u652f\u63f4\u306b\u95a2\u3059\u308b\u63d0\u6848\u3092\u53d7\u3051\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 481,\n              \"part_index\": null,\n              \"start_index\": 362,\n              \"text\": \"*   \u672c\u4eba\u304c\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u306b\u7533\u8acb\u5185\u5bb9\u30921\u5217\u307e\u3067\u8a18\u8f09\u3057\u3066\u66f4\u65b0\u3057\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 496,\n              \"part_index\": null,\n              \"start_index\": 488,\n              \"text\": \"\u627f\u8a8d**\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 624,\n              \"part_index\": null,\n              \"start_index\": 497,\n              \"text\": \"*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u3001\u4f1a\u793e\u306e\u4e8b\u696d\u76ee\u6a19\u3084\u30c1\u30fc\u30e0\u76ee\u6a19\u3078\u306e\u8ca2\u732e\u5ea6\u3092\u8003\u616e\u3057\u3066\u627f\u8a8d\u3092\u5224\u65ad\u3057\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 762,\n              \"part_index\": null,\n              \"start_index\": 625,\n              \"text\": \"*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306f\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u306b\u5224\u65ad\u5185\u5bb9\u3092\u8ffd\u8a18\u3057\u3001K\u5217\u4ee5\u964d\u3092\u5165\u529b\u3057\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 871,\n              \"part_index\": null,\n              \"start_index\": 767,\n              \"text\": \"*   **\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u81ea\u8eab\u304c\u7533\u8acb\u3059\u308b\u5834\u5408**\u306f\u3001\u4e8b\u696d\u8cac\u4efb\u8005\u306e\u627f\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 937,\n              \"part_index\": null,\n              \"start_index\": 873,\n              \"text\": \"**\u4e0a\u9650\u91d1\u984d\u3092\u4e0a\u56de\u308b\u652f\u63f4\u304c\u5fc5\u8981\u306a\u5834\u5408\uff08\u88dc\u8db3\uff09**\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1008,\n              \"part_index\": null,\n              \"start_index\": 938,\n              \"text\": \"*   \u307e\u305a\u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u4e8b\u696d\u8cac\u4efb\u8005\u306b\u76f8\u8ac7\u3057\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1165,\n              \"part_index\": null,\n              \"start_index\": 1009,\n              \"text\": \"*   \u305d\u306e\u5f8c\u3001\u672c\u4eba\u304c\u7d4c\u8cbb\u7533\u8acb\u30b7\u30b9\u30c6\u30e0\u306e\u4e8b\u524d\u7533\u8acb\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u5229\u7528\u3057\u3001\u300c\u8cfc\u5165\u7269\u7533\u8acb\u300d\u3068\u3057\u3066\u627f\u8a8d\u307e\u305f\u306f\u5374\u4e0b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1265,\n              \"part_index\": null,\n              \"start_index\": 1170,\n              \"text\": \"*   \u7533\u8acb\u7d4c\u8def\u306f\u300c\u7533\u8acb\u8005 \u21d2 \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc \u21d2 \u6700\u7d42\u627f\u8a8d\u8005\u300d\u3068\u306a\u308a\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1373,\n              \"part_index\": null,\n              \"start_index\": 1270,\n              \"text\": \"*   \u7533\u8acb\u6642\u306b\u627f\u8a8d\u8005\u3092\u6307\u5b9a\u3057\u3001\u6307\u5b9a\u3055\u308c\u305f\u30e1\u30f3\u30d0\u30fc\u306e\u627f\u8a8d\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1403,\n              \"part_index\": null,\n              \"start_index\": 1375,\n              \"text\": \"**\u627f\u8a8d\u5f8c\u306e\u8acb\u6c42\u624b\u9806**\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1433,\n              \"part_index\": null,\n              \"start_index\": 1410,\n              \"text\": \"\u8cfc\u5165\u652f\u6255\u65e5\u8a18\u8f09**\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1604,\n              \"part_index\": null,\n              \"start_index\": 1434,\n              \"text\": \"*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u306e\u627f\u8a8d\u5f8c\u3001\u7acb\u66ff\u8cfc\u5165\u3092\u884c\u3044\u3001\u305d\u306e\u652f\u6255\u65e5\u3092\u300c\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u5229\u7528\u4e00\u89a7\u300d\u306eJ\u5217\u306b\u8a18\u8f09\u3057\u3066\u66f4\u65b0\u3057\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1625,\n              \"part_index\": null,\n              \"start_index\": 1611,\n              \"text\": \"\u8acb\u6c42\u65b9\u6cd5**\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1710,\n              \"part_index\": null,\n              \"start_index\": 1626,\n              \"text\": \"*   \u672c\u4eba\u304c\u7acb\u66ff\u6255\u3044\u3092\u3057\u305f\u5f8c\u3001\u7d4c\u8cbb\u7533\u8acb\u30b7\u30b9\u30c6\u30e0\u3067\u8acb\u6c42\u7533\u8acb\u3092\u884c\u3044\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1799,\n              \"part_index\": null,\n              \"start_index\": 1711,\n              \"text\": \"*   \u9818\u53ce\u66f8\u304c\u5fc5\u9808\u3067\u3001\u7533\u8acb\u65e5\u306f\u9818\u53ce\u66f8\u306e\u65e5\u4ed8\uff08\u652f\u6255\u65e5\uff09\u3068\u3057\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1855,\n              \"part_index\": null,\n              \"start_index\": 1800,\n              \"text\": \"*   \u8cbb\u76ee\u306f\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u3092\u9078\u629e\u3057\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1901,\n              \"part_index\": null,\n              \"start_index\": 1860,\n              \"text\": \"*   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u7814\u4fee\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1947,\n              \"part_index\": null,\n              \"start_index\": 1906,\n              \"text\": \"*   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u66f8\u7c4d\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 1999,\n              \"part_index\": null,\n              \"start_index\": 1952,\n              \"text\": \"*   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6 \u8cc7\u683c\u53d6\u5f97\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 2142,\n              \"part_index\": null,\n              \"start_index\": 2000,\n              \"text\": \"*   \u4e0a\u9650\u91d1\u984d\u3092\u4e0a\u56de\u308b\u7533\u8acb\u3067\u3001\u4e8b\u524d\u7533\u8acb\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4e8b\u524d\u7533\u8acb\u3068\u95a2\u9023\u4ed8\u3051\u3066\u7d4c\u8cbb\u7533\u8acb\u3092\u884c\u3044\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 2163,\n              \"part_index\": null,\n              \"start_index\": 2149,\n              \"text\": \"\u8acb\u6c42\u627f\u8a8d**\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 2237,\n              \"part_index\": null,\n              \"start_index\": 2164,\n              \"text\": \"*   \u30c1\u30fc\u30e0\u30ea\u30fc\u30c0\u30fc\u304c\u7533\u8acb\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3001\u627f\u8a8d\u3057\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 2258,\n              \"part_index\": null,\n              \"start_index\": 2244,\n              \"text\": \"\u652f\u7d66\u65b9\u6cd5**\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 2299,\n              \"part_index\": null,\n              \"start_index\": 2259,\n              \"text\": \"*   \u7d4c\u8cbb\u3068\u3057\u3066\u652f\u7d66\u3055\u308c\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              1\n            ],\n            \"segment\": {\n              \"end_index\": 2460,\n              \"part_index\": null,\n              \"start_index\": 2400,\n              \"text\": \"\u627f\u8a8d\u5f8c\u306b\u8cfc\u5165\u3068\u7d4c\u8cbb\u7cbe\u7b97\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              1\n            ],\n            \"segment\": {\n              \"end_index\": 2585,\n              \"part_index\": null,\n              \"start_index\": 2528,\n              \"text\": \"\u7d4c\u8cbb\u7533\u8acb\u3092\u5fd8\u308c\u305f\u5834\u5408\u306f\u7cbe\u7b97\u3067\u304d\u307e\u305b\u3093\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 2665,\n              \"part_index\": null,\n              \"start_index\": 2586,\n              \"text\": \"*   \u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u3067\u8cfc\u5165\u3057\u305f\u66f8\u7c4d\u306f\u8fd4\u5374\u4e0d\u8981\u3067\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 2885,\n              \"part_index\": null,\n              \"start_index\": 2810,\n              \"text\": \"\u79fb\u52d5\u8cbb\u7528\u306f\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u652f\u63f4\u5236\u5ea6\u4e00\u89a7\u306b\u8a18\u8f09\u4e0d\u8981\u3067\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 3004,\n              \"part_index\": null,\n              \"start_index\": 2886,\n              \"text\": \"*   \u9001\u6599\u3084\u4ee3\u5f15\u304d\u624b\u6570\u6599\u3082\u3001\u9818\u53ce\u66f8\u306b\u542b\u307e\u308c\u3066\u3044\u308c\u3070\u7cbe\u7b97\u91d1\u984d\u306b\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              0\n            ],\n            \"segment\": {\n              \"end_index\": 3111,\n              \"part_index\": null,\n              \"start_index\": 3005,\n              \"text\": \"*   \u9818\u53ce\u66f8\u3092\u7d1b\u5931\u3057\u305f\u5834\u5408\u306f\u3001\u901a\u5e38\u306e\u7d4c\u8cbb\u7cbe\u7b97\u3068\u540c\u69d8\u306b\u7cbe\u7b97\u5bfe\u8c61\u5916\u3068\u306a\u308a\u307e\u3059\u3002\"\n            }\n          },\n          {\n            \"confidence_scores\": null,\n            \"grounding_chunk_indices\": [\n              1\n            ],\n            \"segment\": {\n              \"end_index\": 3206,\n              \"part_index\": null,\n              \"start_index\": 3113,\n              \"text\": \"\u3054\u4e0d\u660e\u306a\u70b9\u304c\u3042\u308c\u3070\u3001\u4eba\u4e8b\u3042\u3066\u30d5\u30a9\u30fc\u30e0\u3088\u308a\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002\"\n            }\n          }\n        ],\n        \"retrieval_metadata\": null,\n        \"retrieval_queries\": null,\n        \"search_entry_point\": null,\n        \"source_flagging_uris\": null,\n        \"web_search_queries\": null\n      },\n      \"index\": 0,\n      \"logprobs_result\": null,\n      \"safety_ratings\": null,\n      \"url_context_metadata\": null\n    }\n  ],\n  \"create_time\": null,\n  \"model_version\": \"gemini-2.5-flash\",\n  \"prompt_feedback\": null,\n  \"response_id\": \"\u2605\u7701\u7565\u2605\",\n  \"usage_metadata\": {\n    \"cache_tokens_details\": null,\n    \"cached_content_token_count\": null,\n    \"candidates_token_count\": 678,\n    \"candidates_tokens_details\": null,\n    \"prompt_token_count\": 12,\n    \"prompt_tokens_details\": [\n      {\n        \"modality\": \"TEXT\",\n        \"token_count\": 12\n      }\n    ],\n    \"thoughts_token_count\": 38,\n    \"tool_use_prompt_token_count\": 67,\n    \"tool_use_prompt_tokens_details\": [\n      {\n        \"modality\": \"TEXT\",\n        \"token_count\": 67\n      }\n    ],\n    \"total_token_count\": 795,\n    \"traffic_type\": null\n  },\n  \"automatic_function_calling_history\": [],\n  \"parsed\": null\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306e\u524a\u9664<\/h2>\n\n\n\n<p>\u6b21\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u3092\u524a\u9664\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u6b21\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u308c\u3082<a href=\"https:\/\/www.claude.com\/ja-jp\/product\/claude-code\" target=\"_blank\" rel=\"noreferrer noopener\">Claude Code<\/a>\u3067\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># -*- coding: utf-8 -*-\nimport os\nimport sys\nfrom dotenv import load_dotenv\nfrom google import genai\n\nload_dotenv()\n\nclient = genai.Client(api_key=os.getenv('GOOGLE_API_KEY'))\n\ndef list_stores():\n    \"\"\"\u3059\u3079\u3066\u306e\u30b9\u30c8\u30a2\u3092\u4e00\u89a7\u8868\u793a\"\"\"\n    print(\"=== Available File Search Stores ===\\n\")\n    stores = client.file_search_stores.list()\n\n    store_list = []\n    for idx, store in enumerate(stores, 1):\n        store_list.append(store)\n        size_info = \"empty\"\n        if hasattr(store, 'size_bytes') and store.size_bytes:\n            size_mb = store.size_bytes \/ (1024 * 1024)\n            size_info = f\"{size_mb:.2f} MB\"\n\n        print(f\"{idx}. {store.name}\")\n        print(f\"   Size: {size_info}\")\n        if hasattr(store, 'display_name') and store.display_name:\n            print(f\"   Display Name: {store.display_name}\")\n        if hasattr(store, 'create_time'):\n            print(f\"   Created: {store.create_time}\")\n        print()\n\n    return store_list\n\ndef delete_documents_in_store(store_name):\n    \"\"\"\u30b9\u30c8\u30a2\u5185\u306e\u3059\u3079\u3066\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u524a\u9664\"\"\"\n    try:\n        documents = client.file_search_stores.documents.list(parent=store_name)\n        doc_count = 0\n        for doc in documents:\n            try:\n                # force\u30d1\u30e9\u30e1\u30fc\u30bf\u3092config\u3067\u6e21\u3059\n                client.file_search_stores.documents.delete(\n                    name=doc.name,\n                    config={\"force\": True}\n                )\n                doc_count += 1\n                print(f\"  \u2713 Deleted document: {doc.name}\")\n            except Exception as e:\n                print(f\"  \u2717 Failed to delete document: {doc.name}\")\n                print(f\"    Error: {e}\")\n        return doc_count\n    except Exception as e:\n        print(f\"  Warning: Could not list documents: {e}\")\n        return 0\n\ndef delete_store(store_name):\n    \"\"\"\u30b9\u30c8\u30a2\u3092\u524a\u9664\uff08\u4e2d\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3082\u542b\u3081\u3066\uff09\"\"\"\n    try:\n        # \u307e\u305a\u3001\u30b9\u30c8\u30a2\u5185\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u524a\u9664\n        print(f\"Deleting documents in {store_name}...\")\n        doc_count = delete_documents_in_store(store_name)\n        if doc_count > 0:\n            print(f\"  Deleted {doc_count} document(s)\")\n\n        # \u30b9\u30c8\u30a2\u81ea\u4f53\u3092\u524a\u9664\n        client.file_search_stores.delete(name=store_name)\n        print(f\"\u2713 Successfully deleted store: {store_name}\")\n        return True\n    except Exception as e:\n        print(f\"\u2717 Failed to delete store: {store_name}\")\n        print(f\"  Error: {e}\")\n        return False\n\ndef main():\n    stores = list_stores()\n\n    if not stores:\n        print(\"No stores found.\")\n        return\n\n    print(f\"Total: {len(stores)} store(s)\")\n    print(\"\\n\" + \"=\" * 50)\n\n    # \u524a\u9664\u65b9\u6cd5\u306e\u9078\u629e\n    print(\"\\nDelete options:\")\n    print(\"1. Delete specific store by number\")\n    print(\"2. Delete all stores\")\n    print(\"3. Cancel\")\n\n    choice = input(\"\\nEnter your choice (1-3): \").strip()\n\n    if choice == \"1\":\n        # \u7279\u5b9a\u306e\u30b9\u30c8\u30a2\u3092\u524a\u9664\n        store_num = input(f\"Enter store number (1-{len(stores)}): \").strip()\n        try:\n            idx = int(store_num) - 1\n            if 0 &lt;= idx &lt; len(stores):\n                store = stores[idx]\n                confirm = input(f\"Delete '{store.name}'? (yes\/no): \").strip().lower()\n                if confirm == \"yes\":\n                    delete_store(store.name)\n                else:\n                    print(\"Cancelled.\")\n            else:\n                print(\"Invalid store number.\")\n        except ValueError:\n            print(\"Invalid input.\")\n\n    elif choice == \"2\":\n        # \u3059\u3079\u3066\u306e\u30b9\u30c8\u30a2\u3092\u524a\u9664\n        confirm = input(f\"Delete ALL {len(stores)} store(s)? This cannot be undone! (yes\/no): \").strip().lower()\n        if confirm == \"yes\":\n            print(\"\\nDeleting all stores...\")\n            success_count = 0\n            for store in stores:\n                if delete_store(store.name):\n                    success_count += 1\n            print(f\"\\nDeleted {success_count}\/{len(stores)} store(s)\")\n        else:\n            print(\"Cancelled.\")\n\n    else:\n        print(\"Cancelled.\")\n\nif __name__ == \"__main__\":\n    main()<\/pre>\n\n\n\n<p>\u6700\u521d\u306b\u524a\u9664\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u305f\u3068\u304d\u306f\u3001\u3044\u304d\u306a\u308a\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u3092\u524a\u9664\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u4e2d\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u6b8b\u3063\u3066\u3044\u308b\u3068\u524a\u9664\u3067\u304d\u306a\u3044\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u3053\u306e\u524a\u9664\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001\u5148\u306b\u4e2d\u8eab\u3092\u6d88\u3057\u3066\u304b\u3089\u5165\u308c\u7269\u3092\u6d88\u3059\u3001\u3068\u3044\u3046\u5f62\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u672c\u7a3f\u3067\u306f\u300c<a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/file-search?hl=ja\" target=\"_blank\" rel=\"noreferrer noopener\">Gemini API \u30d5\u30a1\u30a4\u30eb\u691c\u7d22<\/a>\u300d\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3057\u3066\u307f\u3066\u3001\u305d\u3053\u304b\u3089\u3055\u3089\u306b\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u30b9\u30c8\u30a2\u306e\u4e00\u89a7\u8868\u793a\u30fb\u8a73\u7d30\u60c5\u5831\u8868\u793a\u30fb\u524a\u9664\u306e\u305f\u3081\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092Claude Code\u3067\u4f5c\u3089\u305b\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u306eGemini API File Search Tool\u3092\u4f7f\u3046\u3068RAG\u30b7\u30b9\u30c6\u30e0\u306e\u69cb\u7bc9\u304c\u7c21\u5358\u304b\u3064\u5b89\u4fa1\u306b\u3067\u304d\u308b\u306e\u3067\u3001\u3053\u308c\u307e\u3067\u624b\u304c\u51fa\u305b\u306a\u304b\u3063\u305f\u5c64\u306b\u3082\u5c4a\u304d\u3046\u308b\u3068\u8003\u3048\u307e\u3059\u3002\u305f\u3060\u30012025\u5e7411\u670819\u65e5\u73fe\u5728\u3001Gemini API File Search Tool\u306f\u767b\u5834\u3057\u305f\u3070\u304b\u308a\u3067\u3042\u308a\u3001\u307e\u3060\u6a5f\u80fd\u304c\u5341\u5206\u3067\u306f\u306a\u3044\u306e\u304b\u3001\u305d\u308c\u3068\u3082\u4ed5\u69d8\u901a\u308a\u306a\u306e\u304b\u3001\u307e\u3060\u307e\u3060\u60c5\u5831\u304c\u8db3\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u51fa\u63c3\u3063\u3066\u304b\u3089\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u3063\u3066\u3044\u304f\u3088\u308a\u306f\u3001\u9014\u4e2d\u3067\u4ed5\u69d8\u5909\u66f4\u304c\u3042\u3063\u305f\u308a\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u73fe\u72b6\u306e\u60c5\u5831\u3067\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u308a\u59cb\u3081\u3066\u307f\u3066\u6163\u308c\u3066\u3044\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u3088\u3046\u306b\u3082\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u5f8c\u3082Gemini API File Search Tool\u306b\u3064\u3044\u3066\u7d99\u7d9a\u3057\u3066\u8abf\u67fb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b 2025\u5e7411\u6708\u521d\u65ec\u3001\u300cIntroducing the File Search Tool in Gemini API\u300d\u306b\u3066Gemini API \u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u304c\u767a\u8868\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308aRAG (Retrieva [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":80767,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[779,31,208,1004,323],"tags":[],"class_list":["post-80765","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-higuchi","category-gcp","category-llm","category-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Gemini API File Search Tool\u3092\u4f7f\u3063\u3066\u307f\u305f #google #ai #gemini #rag #llm - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"AI, d-higuchi, GCP, LLM, Python |\u306f\u3058\u3081\u306b 2025\u5e7411\u6708\u521d\u65ec\u3001\u300cIntroducing the File Search Tool in Gemini API\u300d\u306b\u3066Gemini API\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gemini API File Search Tool\u3092\u4f7f\u3063\u3066\u307f\u305f #google #ai #gemini #rag #llm - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"AI, d-higuchi, GCP, LLM, Python |\u306f\u3058\u3081\u306b 2025\u5e7411\u6708\u521d\u65ec\u3001\u300cIntroducing the File Search Tool in Gemini API\u300d\u306b\u3066Gemini API\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-26T07:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/11\/FileSearch-Keyword_RD2-V01.width-1600.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"902\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Daisuke Higuchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daisuke Higuchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"13\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"Gemini API File Search Tool\u3092\u4f7f\u3063\u3066\u307f\u305f #google #ai #gemini #rag #llm\",\"datePublished\":\"2025-11-26T07:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765\"},\"wordCount\":109,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/FileSearch-Keyword_RD2-V01.width-1600.png\",\"articleSection\":[\"AI\",\"d-higuchi\",\"GCP\",\"LLM\",\"Python\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765\",\"name\":\"Gemini API File Search Tool\u3092\u4f7f\u3063\u3066\u307f\u305f #google #ai #gemini #rag #llm - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/FileSearch-Keyword_RD2-V01.width-1600.png\",\"datePublished\":\"2025-11-26T07:30:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"AI, d-higuchi, GCP, LLM, Python |\u306f\u3058\u3081\u306b 2025\u5e7411\u6708\u521d\u65ec\u3001\u300cIntroducing the File Search Tool in Gemini API\u300d\u306b\u3066Gemini API\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/FileSearch-Keyword_RD2-V01.width-1600.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/FileSearch-Keyword_RD2-V01.width-1600.png\",\"width\":1600,\"height\":902,\"caption\":\"https:\\\/\\\/blog.google\\\/technology\\\/developers\\\/file-search-gemini-api\\\/\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/80765#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8457\u8005\uff08Author\uff09\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"d-higuchi\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Gemini API File Search Tool\u3092\u4f7f\u3063\u3066\u307f\u305f #google #ai #gemini #rag #llm\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\",\"name\":\"Daisuke Higuchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"caption\":\"Daisuke Higuchi\"},\"description\":\"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Gemini API File Search Tool\u3092\u4f7f\u3063\u3066\u307f\u305f #google #ai #gemini #rag #llm - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"AI, d-higuchi, GCP, LLM, Python |\u306f\u3058\u3081\u306b 2025\u5e7411\u6708\u521d\u65ec\u3001\u300cIntroducing the File Search Tool in Gemini API\u300d\u306b\u3066Gemini API","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765","og_locale":"ja_JP","og_type":"article","og_title":"Gemini API File Search Tool\u3092\u4f7f\u3063\u3066\u307f\u305f #google #ai #gemini #rag #llm - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"AI, d-higuchi, GCP, LLM, Python |\u306f\u3058\u3081\u306b 2025\u5e7411\u6708\u521d\u65ec\u3001\u300cIntroducing the File Search Tool in Gemini API\u300d\u306b\u3066Gemini API","og_url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2025-11-26T07:30:00+00:00","og_image":[{"width":1600,"height":902,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/11\/FileSearch-Keyword_RD2-V01.width-1600.png","type":"image\/png"}],"author":"Daisuke Higuchi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Daisuke Higuchi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"13\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"Gemini API File Search Tool\u3092\u4f7f\u3063\u3066\u307f\u305f #google #ai #gemini #rag #llm","datePublished":"2025-11-26T07:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765"},"wordCount":109,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/11\/FileSearch-Keyword_RD2-V01.width-1600.png","articleSection":["AI","d-higuchi","GCP","LLM","Python"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765","name":"Gemini API File Search Tool\u3092\u4f7f\u3063\u3066\u307f\u305f #google #ai #gemini #rag #llm - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/11\/FileSearch-Keyword_RD2-V01.width-1600.png","datePublished":"2025-11-26T07:30:00+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"AI, d-higuchi, GCP, LLM, Python |\u306f\u3058\u3081\u306b 2025\u5e7411\u6708\u521d\u65ec\u3001\u300cIntroducing the File Search Tool in Gemini API\u300d\u306b\u3066Gemini API","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/11\/FileSearch-Keyword_RD2-V01.width-1600.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/11\/FileSearch-Keyword_RD2-V01.width-1600.png","width":1600,"height":902,"caption":"https:\/\/blog.google\/technology\/developers\/file-search-gemini-api\/"},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/80765#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u8457\u8005\uff08Author\uff09","item":"https:\/\/www.creationline.com\/tech-blog\/author"},{"@type":"ListItem","position":3,"name":"d-higuchi","item":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"},{"@type":"ListItem","position":4,"name":"Gemini API File Search Tool\u3092\u4f7f\u3063\u3066\u307f\u305f #google #ai #gemini #rag #llm"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206","name":"Daisuke Higuchi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","caption":"Daisuke Higuchi"},"description":"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/80765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=80765"}],"version-history":[{"count":6,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/80765\/revisions"}],"predecessor-version":[{"id":80816,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/80765\/revisions\/80816"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/80767"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=80765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=80765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=80765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}