Gemini Code Assist 的運作方式
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Gemini Code Assist 使用的 Gemini 大型語言模型 (LLM) 除了用於訓練 Gemini 基礎模型的資料集外,還會以公開可用的程式碼、Google Cloud 專屬素材和其他相關技術資訊的資料集進行訓練。我們會訓練模型,讓 Gemini Code Assist 回覆盡可能對 Gemini Code Assist 使用者有所助益。
Gemini Code Assist Standard 和 Enterprise 不會使用您的提示或產生的回覆,用於訓練或微調基礎模型。Gemini Code Assist Standard 版和 Enterprise 版只會將您的資料用於提供要求回應,除非您另有指示,否則不會儲存這些資料。
Gemini Code Assist 引用來源的方式和情形
如同其他獨立的大型語言模型服務,Gemini Code Assist 大型語言模型旨在產生原創內容,而不是大量複製既有內容。我們的系統經過特別設計,可降低這類情況發生的機率,運作方式也會持續改善。
如果 Gemini Code Assist 直接大量引用網頁內容,會註明出處頁面。如果回覆含有網址,使用者可以在 Gemini Code Assist 中查看,在某些情況下還能點選連結,直接前往該網址的來源網頁。
產生程式碼或提供程式碼補全功能時,Gemini Code Assist 會直接引用其他來源 (例如現有的開放原始碼) 的長篇程式碼,並提供引用資訊。如果引用來源為程式碼存放區,Gemini 可能也會註明適用的開放原始碼授權。
為在 IDE 中提供更優質的程式碼生成功能,Gemini Code Assist 會從您在 IDE 中積極使用的檔案,以及專案中其他已開啟的相關本機檔案,收集相關資訊。
在 IDE 中使用 Gemini Code Assist 時,Gemini 會列出用於產生提示回覆的參考專案檔案 (即內容來源)。每次使用 Gemini Chat 時,系統都會顯示背景資訊來源。
您可以調整 VS Code 中的設定,避免 Gemini Code Assist 建議與引述來源相符的程式碼。
Gemini Code Assist Enterprise 中的程式碼自訂功能可讓您直接從 Gemini Code Assist 取得根據貴機構私人程式碼集產生的程式碼建議。如要進一步瞭解程式碼自訂功能,以及我們如何在存取及儲存私人程式碼時提供安全性,請參閱 Gemini Code Assist 總覽。如要設定及使用程式碼自訂功能,請參閱「設定及使用 Gemini Code Assist 程式碼自訂功能」。
如要進一步瞭解 Gemini Code Assist Standard 和 Enterprise 的安全控制項,請參閱「Gemini Code Assist Standard 和 Enterprise 的安全性、隱私權和法規遵循」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-05 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-06-05 (世界標準時間)。"],[[["Gemini for Google Cloud's large language models (LLMs) are trained on diverse datasets, including public code, Google Cloud-specific data, and technical information, and are designed to provide useful responses."],["When generating responses, Gemini in the Google Cloud console incorporates basic user context but does not store this contextual information persistently, ensuring data privacy."],["Gemini for Google Cloud doesn't use user prompts or generated responses for training its models; all data sent is solely used for generating a response and is not stored unless explicitly instructed."],["Gemini for Google Cloud cites sources when directly quoting from web pages or code, providing users with URLs and, in some cases, direct navigation to the source material, including any relevant open source licenses."],["Gemini for Google Cloud offers Generative AI Indemnification, meaning Google assumes certain responsibility for potential legal risks if a user is challenged on copyright grounds for content generated by Gemini."]]],[]]