Title: Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b - freem URL Source: https://freemwiki.com/wiki/Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b Markdown Content: From freem [Template:ChatGPT Share](https://freemwiki.com/index.php?title=Template:ChatGPT_Share&action=edit&redlink=1 "Template:ChatGPT Share (page does not exist)")[Template:Share Info](https://freemwiki.com/index.php?title=Template:Share_Info&action=edit&redlink=1 "Template:Share Info (page does not exist)") ## 对话内容[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=1 "Edit section: 对话内容") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=1 "Edit section's source code: 对话内容")] ## Introducing the File Search Tool in Gemini API[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=2 "Edit section: Introducing the File Search Tool in Gemini API") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=2 "Edit section's source code: Introducing the File Search Tool in Gemini API")] _Generated: 2025-11-08 22:12:18_ **Prompt:** Introducing the File Search Tool in Gemini API [https://blog.google/technology/developers/file-search-gemini-api/](https://blog.google/technology/developers/file-search-gemini-api/) **ChatGPT:** 以下は、Googleの開発者向けブログ「Introducing the File Search Tool in Gemini API」の要点です。Introducing_the_File_Search_Too… ## 概要[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=3 "Edit section: 概要") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=3 "Edit section's source code: 概要")] * Gemini APIにFile Search Toolが追加。RAG(Retrieval-Augmented Generation)をフルマネージドで提供し、ストレージ、チャンク分割、埋め込み生成、検索、プロンプトへの動的コンテキスト注入、引用付き回答までを一気通貫で面倒見てくれます。Introducing_the_File_Search_Too… ## 仕組みと特徴[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=4 "Edit section: 仕組みと特徴") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=4 "Edit section's source code: 仕組みと特徴")] * 統合体験:既存のgenerateContent呼び出し内で、tools.file_searchにストア名を渡すだけで検索→根拠注入まで自動。開発・運用の配管作業を大幅削減。Introducing_the_File_Search_Too… * ベクター検索:最新のGemini Embeddingモデルで意味検索。語彙一致でなく意味でヒット。Introducing_the_File_Search_Too… * 自動引用(ソース特定):回答に使用したドキュメントの出典リンクやタイトルが返り、検証容易。Introducing_the_File_Search_Too… * 幅広い対応形式:PDF/DOCX/TXT/JSON/主要プログラミング言語ファイルなど。Introducing_the_File_Search_Too… ## 料金モデル(ポイント)[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=5 "Edit section: 料金モデル(ポイント)") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=5 "Edit section's source code: 料金モデル(ポイント)")] * ストレージとクエリ時の埋め込み生成は無料。 * 初回インデックス時の埋め込み生成のみ課金(例:gemini-embedding-001で**$0.15 / 100万トークン**)。スケールさせやすい価格設計。Introducing_the_File_Search_Too… ## 使い方(流れのイメージ)[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=6 "Edit section: 使い方(流れのイメージ)") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=6 "Edit section's source code: 使い方(流れのイメージ)")] 1. File Search ストア作成 2. ファイルをストアへアップロード(非同期オペレーション完了待ち) 3. **generateContent**でtools.file_searchにストア名を指定して質問 4. **grounding_metadata**から使用ソース(タイトル等)を取得可能 ※公式サンプルはPythonで掲載。Introducing_the_File_Search_Too… ## 事例[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=7 "Edit section: 事例") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=7 "Edit section's source code: 事例")] * Phaser StudioのBeam(AIゲーム生成プラットフォーム):6つのコーパス/3000+ファイルに対し並列検索を日常的に実行し、2秒未満で統合結果を返すワークフローに。テンプレや設計資料、コード断片の横断参照が手作業の数時間→即時へ短縮。Introducing_the_File_Search_Too… ## はじめ方[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=8 "Edit section: はじめ方") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=8 "Edit section's source code: はじめ方")] * ドキュメント:ai.google.dev/gemini-api/docs/file-search * Google AI StudioのAsk the Manualデモアプリ(要APIキー)で挙動を確認・改造可能。Introducing_the_File_Search_Too… ## まとめ(開発者視点の利点)[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=9 "Edit section: まとめ(開発者視点の利点)") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=9 "Edit section's source code: まとめ(開発者視点の利点)")] * RAGの面倒な部分(ストレージ、チャンク、埋め込み、検索、引用注入)をAPI一発に集約。 * **検証可能性(引用)**がデフォルト、運用コストは初回インデックス中心で読み込み時は軽量。 * 意味検索×幅広いファイル形式×汎用のgenerateContent統合で、FAQボット、社内ナレッジ検索、開発ドキュメント質問応答などを迅速に構築可能。Introducing_the_File_Search_Too… **Prompt:** 詳細に解説してください。 **ChatGPT:** 以下は、Google開発者ブログ「Introducing the File Search Tool in Gemini API」の技術的ディープダイブです。公開日は2025-11-06です。Introducing_the_File_Search_Too… ## これは何?(一言で)[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=10 "Edit section: これは何?(一言で)") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=10 "Edit section's source code: これは何?(一言で)")] File Search Toolは、Gemini APIにフルマネージドRAG(Retrieval-Augmented Generation)を直結した機能。取得パイプラインの配管(ストレージ、分割、埋め込み、検索、引用の注入)を丸ごと抽象化し、generateContentの呼び出しの中だけで“自分のドキュメントを根拠にした回答”を組み立てられるようにします。Introducing_the_File_Search_Too… ## 何が自動化される?[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=11 "Edit section: 何が自動化される?") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=11 "Edit section's source code: 何が自動化される?")] * 統合された開発体験:ファイル保存、最適なチャンク分割、埋め込み生成、取得結果の動的プロンプト注入を自動管理。既存のgenerateContent APIの範囲で完結します。Introducing_the_File_Search_Too… * ベクター検索:最新のGemini Embeddingで意味検索。語彙一致に依らず、クエリの意味に沿って関連情報を引き当てます。Introducing_the_File_Search_Too… * ビルトイン引用:回答にはどの文書のどの部分を使ったかを示す引用が自動添付。検証容易性が前提になります。Introducing_the_File_Search_Too… * 幅広いファイル形式:PDF/DOCX/TXT/JSONに加え、主要なプログラミング言語ファイルにも対応(詳細はドキュメント一覧を参照)。Introducing_the_File_Search_Too… ## 料金モデル(開発者目線でのポイント)[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=12 "Edit section: 料金モデル(開発者目線でのポイント)") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=12 "Edit section's source code: 料金モデル(開発者目線でのポイント)")] * ストレージおよびクエリ時の埋め込み生成は無料。 * 初回インデックス時の埋め込み生成のみ課金(例:gemini-embedding-001で**$0.15 / 100万トークン**。使用モデルに応じて変動)。この**“初回だけ課金”**の設計により、スケール時も運用コストの見通しが立てやすくなります。Introducing_the_File_Search_Too… ## 典型ワークフロー(APIの実像)[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=13 "Edit section: 典型ワークフロー(APIの実像)") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=13 "Edit section's source code: 典型ワークフロー(APIの実像)")] 1. ストア作成:client.file_search_stores.create()で検索対象のFile Search Storeを作成。 2. アップロード:upload_to_file_search_store(file_search_store_name=..., file=...)でファイル投入。 3. 非同期完了待ち:client.operations.get(...)でインデクシング完了をポーリング。 4. 生成+検索:client.models.generate_content(..., tools=[Tool(FileSearch(file_search_store_names=[store.name])]) )で生成と同時に検索・根拠注入。 5. 引用の取得:response.candidates[0].grounding_metadata.grounding_chunksから**使用ソース(タイトル等)**を取り出して表示。 — 上記の一連はブログのPythonスニペットどおりです。Introducing_the_File_Search_Too… Introducing_the_File_Search_Too… ## どんな用途に向く?[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=14 "Edit section: どんな用途に向く?") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=14 "Edit section's source code: どんな用途に向く?")] * サポートボット、社内ナレッジQA、クリエイティブなコンテンツ探索など、取得と検証可能性が重要な場面に最適。ブログでは“開発者はこのツールで正確・関連・検証可能な応答を提供できる”と明記されています。Introducing_the_File_Search_Too… ## 実運用の手応え(事例)[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=15 "Edit section: 実運用の手応え(事例)") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=15 "Edit section's source code: 実運用の手応え(事例)")] * Phaser StudioのBeam(AIゲーム生成プラットフォーム): * 6つのコーパス/3000+ファイルに対して数千回/日の検索を実施。 * 全コーパス横断の並列クエリを扱い、2秒未満で結果を統合。以前は**手動の横断参照に“数時間”**かかっていた作業が激減。Introducing_the_File_Search_Too… Introducing_the_File_Search_Too… ## 触って学ぶ[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=16 "Edit section: 触って学ぶ") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=16 "Edit section's source code: 触って学ぶ")] * Ask the ManualというGoogle AI Studioのデモから挙動を試せます(APIキー要)。あわせて公式ドキュメントへの導線も提供されています。Introducing_the_File_Search_Too… Introducing_the_File_Search_Too… ## まとめ(設計思想)[[edit](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&veaction=edit§ion=17 "Edit section: まとめ(設計思想)") | [edit source](https://freemwiki.com/index.php?title=Openai/690e63ee-df2c-8006-9af4-0ca010cdb09b&action=edit§ion=17 "Edit section's source code: まとめ(設計思想)")] * 配管仕事をゼロに寄せる:RAGの面倒な工程をAPI一発に凝縮。 * 検証可能性をデフォルトに:引用が自動で付くため、**「出典に基づく回答」**を標準化。 * スケール前提の課金設計:初回インデックスのみ課金で、運用コストの読みが立てやすい。 * “いつもの生成コール”の延長:generateContentにFile Search Toolをツールとして差し込むだけで、意味検索→根拠注入→引用出力までが一気通貫。Introducing_the_File_Search_Too… (参考リンク:File Search ドキュメント/Ask the Manual デモ。どちらも記事内から案内されています。)Introducing_the_File_Search_Too…