Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài liệu này mô tả cách Gemini trong Colab Enterprise (một phần của Gemini cho Google Cloud) cung cấp tính năng hỗ trợ dựa trên AI để giúp bạn viết và chỉnh sửa mã trong sổ tay.
Trợ lý AI Gemini trong Colab Enterprise
Gemini trong Colab Enterprise cung cấp dịch vụ hỗ trợ AI để giúp bạn làm những việc sau:
Trò chuyện về sổ tay (Xem trước):
Sử dụng hộp thoại trò chuyện để giúp bạn hiểu và phát triển sổ tay.
Bạn có thể trò chuyện với Gemini về các giải pháp lập trình tiềm năng hoặc cách thực hiện các nhiệm vụ cụ thể trong sổ tay. Bạn cũng có thể xem nội dung giải thích về mã trong sổ tay. Để biết thêm thông tin, hãy xem bài viết Trò chuyện về sổ tay với Gemini.
Viết mã bằng cách sử dụng tính năng hoàn thành mã và tạo mã: Gemini trong Colab Enterprise đề xuất các đoạn mã trong khi bạn nhập vào một ô mã.
Bạn cũng có thể sử dụng Gemini trong Colab Enterprise để tạo mã dựa trên nội dung mô tả về những gì bạn muốn. Để biết thêm thông tin, hãy xem phần Sử dụng tính năng hoàn tất mã và tạo mã.
Giải thích các ô mã (Bản xem trước): Sử dụng Gemini trong Colab Enterprise để xem nội dung giải thích về các ô mã. Nội dung giải thích có thể bao gồm các nguồn và nội dung cải tiến được đề xuất cho mã. Sử dụng hộp thoại trò chuyện để đặt câu hỏi tiếp theo. Để biết thêm thông tin, hãy xem phần Giải thích các ô mã.
Giải thích và khắc phục lỗi (Bản xem trước): Gemini trong Colab Enterprise đề xuất các biện pháp khắc phục lỗi cú pháp và giải thích các lỗi khác. Nội dung giải thích có thể bao gồm các nguồn và đoạn mã đề xuất để giải quyết lỗi. Sử dụng hộp thoại trò chuyện để đặt câu hỏi tiếp theo. Để biết thêm thông tin, hãy xem phần Giải thích và khắc phục lỗi.
Các mô hình ngôn ngữ lớn (LLM) của Gemini mà Gemini sử dụng trong Colab Enterprise được huấn luyện dựa trên các tập dữ liệu về mã có sẵn công khai, tài liệu dành riêng choGoogle Cloudvà các thông tin kỹ thuật liên quan khác, ngoài các tập dữ liệu dùng để huấn luyện mô hình cơ sở của Gemini.
Các mô hình được huấn luyện để các câu trả lời của Gemini trong Colab Enterprise hữu ích nhất có thể cho người dùng Gemini trong Colab Enterprise.
Để trò chuyện về sổ tay của bạn với Gemini, hãy mở một sổ tay Colab Enterprise, sau đó nhấp vào nút sparkHiện Gemini. Bắt đầu thảo luận về sổ tay của bạn trong hộp thoại trò chuyện.
Để sử dụng tính năng hoàn thành mã, hãy bắt đầu nhập vào một ô mã để xem các đề xuất hoàn thành mã.
Để sử dụng tính năng tạo mã, hãy nhấp vào sparkCác tính năng AI hiện có, sau đó nhấp vào Tạo mã.
Nhập nội dung mô tả mã bạn muốn tạo, sau đó nhấn phím Enter.
Để xem nội dung giải thích về các ô mã, hãy chuyển đến ô mà bạn muốn giải thích, nhấp vào biểu tượng sparkCác tính năng AI hiện có, sau đó nhấp vào Giải thích mã.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Khó hiểu","hardToUnderstand","thumb-down"],["Thông tin hoặc mã mẫu không chính xác","incorrectInformationOrSampleCode","thumb-down"],["Thiếu thông tin/mẫu tôi cần","missingTheInformationSamplesINeed","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-06-11 UTC."],[[["\u003cp\u003eGemini in Colab Enterprise provides AI-powered assistance for writing code within notebooks, using large language models (LLMs) trained on publicly available code, Google Cloud-specific material, and other technical information.\u003c/p\u003e\n"],["\u003cp\u003eUsers can generate Python code with Gemini in Colab Enterprise, which suggests code segments as you type and offers a \u003cstrong\u003eHelp me code\u003c/strong\u003e tool for generating code based on a description.\u003c/p\u003e\n"],["\u003cp\u003eIt is recommended to validate all output from Gemini for Google Cloud products, as they may generate responses that appear plausible but are factually incorrect due to being an early-stage technology.\u003c/p\u003e\n"],["\u003cp\u003eYou can learn how to setup Gemini, use the coding assistance, and understand how data is used through the linked documentation in this content.\u003c/p\u003e\n"]]],[],null,["# Gemini in Colab Enterprise\n\nThis document describes how Gemini in Colab Enterprise, which is part of\n[Gemini for Google Cloud](/gemini/docs/overview), provides\nAI-powered assistance to help you write and edit code in notebooks.\n\nAI assistance with Gemini in Colab Enterprise\n---------------------------------------------\n\nGemini in Colab Enterprise provides AI assistance to help you do the following:\n\n- **Chat about your notebook** ([Preview](/products#product-launch-stages)): Use a chat dialog to help you understand and develop your notebook. You can chat with Gemini about potential coding solutions or how to do specific tasks in your notebook. You can also get explanations of the code in a notebook. For more information, see [Chat about your notebook with Gemini](/colab/docs/chat).\n- **Write code by using code completion and code generation** : Gemini in Colab Enterprise suggests code segments while you type in a code cell. You can also use Gemini in Colab Enterprise to generate code based on a description of what you want. For more information, see [Use code completion and code generation](/colab/docs/use-code-completion).\n- **Explain code cells** (Preview): Use Gemini in Colab Enterprise to get explanations of code cells. The explanations can include sources and suggested improvements to the code. Use the chat dialog to ask follow-up questions. For more information, see [Explain code cells](/colab/docs/explain-cells).\n- **Explain and fix errors** (Preview): Gemini in Colab Enterprise suggests fixes for syntax errors and provides explanations of other errors. The explanations can include sources and suggested code snippets for resolving the error. Use the chat dialog to ask follow-up questions. For more information, see [Explain and fix errors](/colab/docs/explain-errors).\n\nThe Gemini large language models (LLMs) that are used by Gemini in Colab Enterprise are trained on datasets of publicly available code, Google Cloud-specific material, and other relevant technical information in addition to the datasets used to train the Gemini [foundation models](https://storage.googleapis.com/deepmind-media/gemini/gemini_1_report.pdf). Models are trained so that Gemini in Colab Enterprise responses are as useful to Gemini in Colab Enterprise users as possible.\n\nLearn [how and when Gemini\nfor Google Cloud uses your data](/gemini/docs/discover/data-governance).\n| As an early-stage technology, Gemini for Google Cloud\n| products can generate output that seems plausible but is factually incorrect. We recommend that you\n| validate all output from Gemini for Google Cloud products before you use it.\n| For more information, see\n| [Gemini for Google Cloud and responsible AI](/gemini/docs/discover/responsible-ai).\n\nWhere to interact with Gemini\n-----------------------------\n\nAfter you [set up Gemini in Colab Enterprise](/gemini/docs/colab/set-up-gemini), you\ncan use Gemini in Colab Enterprise to do the following in Colab Enterprise:\n\n- To [chat about your notebook with Gemini](/colab/docs/chat), open a Colab Enterprise notebook, and then click the spark **Show\n Gemini** button. Start discussing your notebook in the chat dialog.\n- To\n [use code completion and code generation](/colab/docs/use-code-completion),\n do any of the following:\n\n - To use code completion, start typing in a code cell to see code completion suggestions.\n - To use code generation, click spark **Available\n AI features** , and then click **Generate code** . Enter a description of the code that you want to generate, and then press \u003ckbd\u003eEnter\u003c/kbd\u003e.\n- To [get explanations of code cells](/colab/docs/explain-cells), go to the\n cell that you want to explain, click\n spark **Available\n AI features** , and then click **Explain code**.\n\n- To [explain and fix errors](/colab/docs/explain-errors), do any of the\n following:\n\n - To use a suggested fix for a syntax error, click the **Fix error** button, and then accept the suggested edit.\n - To get an explanation of an error, click the **Explain error** button.\n\nSet up Gemini in Colab Enterprise\n---------------------------------\n\nFor detailed setup steps, see\n[Set up Gemini in Colab Enterprise](/gemini/docs/colab/set-up-gemini).\n\nWhat's next\n-----------\n\n- See the latest enhancements and fixes in [release notes](/gemini/docs/release-notes).\n- Learn how to [set up Gemini in Colab Enterprise](/gemini/docs/colab/set-up-gemini).\n- Learn how to [write code with Gemini assistance](/colab/docs/use-code-completion).\n- Learn how [Gemini for Google Cloud uses your data](/gemini/docs/discover/data-governance).\n- Learn more about [Google Cloud compliance](/security/compliance)."]]