이 문서에서는 Google Cloud 제품 및 서비스를 사용하여 생산성을 높일 수 있도록 Google Cloud 를 위한 Gemini에 전송하는 프롬프트와 제공되는 지원 유형을 최적화하는 방법을 설명합니다.
사용 중인Google Cloud 제품에 따라 다양한 방법으로 Google Cloud 를 위한 Gemini에 프롬프트를 작성할 수 있습니다. 일부 제품에서는 대화형 인터페이스를 통해 Google Cloud 를 위한 Gemini에 프롬프트를 작성하고 다른 제품에서는 코드 또는 쿼리 편집기에서 프롬프트를 작성합니다. 프롬프트를 입력하는 방법은 제품 문서를 참조하세요.
Gemini가 분석하거나 완료하도록 하려는 입력 정보나 코드를 포함하여 Google Cloud를 위한 Gemini에 묻는 질문을 프롬프트라고 합니다. Gemini로부터 받는 답변이나 코드 완성을 응답이라고 합니다.
Google Cloud 를 위한 Gemini에 도움을 요청할 때는 최대한 많은 컨텍스트와 구체적인 세부정보를 포함해야 합니다. AI 생성 응답은 폭넓은 가능성을 기반으로 하므로 프롬프트가 정확해야 합니다. 최상의 결과를 얻으려면 프롬프트에 4,000자(영문 기준)를 초과하지 않는 것이 좋습니다.
프롬프트에 유용한 맥락과 세부정보를 제공하는 방법은 다음과 같습니다.
다른 사람과 대화하는 것처럼 프롬프트를 작성합니다. 온라인으로 문서를 검색할 때는 키워드만 입력하지 말고, 다른 사람에게 문제를 설명할 때 포함할 세부정보를 입력하세요. 예를 들어 '워크로드 GKE'라는 용어를 입력하는 대신 'GKE가 지원하는 워크로드 종류는?'이라는 완전한 질문을 입력합니다.
수행하려는 태스크의 목적을 설명합니다.
수행하려는 작업에 대한 세부정보는 Google Cloud 를 위한 Gemini에서 더 유용한 답변을 제공하는 데 도움이 됩니다. 예를 들어 Google Cloud 를 위한 Gemini에게 '블로그를 호스팅할 수 있는 간단하고 안전한 Google Cloud 사이트를 설정'해 달라고 지시하는 것이 '웹사이트 배포 방법'만 묻는 것보다 더 유용한 세부정보를 얻을 수 있습니다. 기술 목표를 달성하는 데에는 적합한 방법이 여러 개 있으므로 Google Cloud 를 위한 Gemini에 충분한 컨텍스트를 제공하면 좋은 응답을 보장하는 데 도움이 됩니다.
명령어에 모든 파라미터가 포함되도록 요청합니다.
예를 들어 Gemini Code Assist에게 코드 함수를 생성해 달라고 요청할 때 '모든 메서드가 필수 인수를 사용하도록 보장해줘'라고 지시하면 더욱 유용하고 자세한 응답이 생성될 가능성이 높습니다.
사용자의 전문성 수준을 포함합니다. 제안을 요청할 때 프롬프트를 사용자의 전문성 수준과 일치시키는 것이 특히 유용합니다. 전문 프로그래머(또는 초보 프로그래머)가 Google Cloud 를 위한 Gemini에게 개념이나 코드를 설명해 달라고 요청하면 서로 다른 적절한 결과를 받을 수 있습니다.
예를 들어 Gemini가 전문가 컨텍스트에서 응답하도록 지시하려면 다음과 같이 프롬프트를 작성합니다. '모든 Compute Engine 인스턴스가 나열되도록 Python 코드를 작성해줘. 너는Google Cloud를 사용하는 전문 소프트웨어 개발자야.' 마찬가지로Google Cloud 를 위한 Gemini에게 '가능한 한 간단한 용어로 Kubernetes와 그 이점을 설명해줘'라고 요청할 수 있습니다.
제품 및 기술에 대한 세부정보를 포함합니다. 특정 제품, 기술 또는 기술 역량에 관한 답을 찾고 있다면 프롬프트에 해당 사항을 포함하세요. 마찬가지로 프로그래밍 언어를 지정하면 더욱 관련성 높은 응답을 받을 수 있습니다. 어떤 기술이나 어떤 제품을 고려해야 할지 잘 모르겠으면 Gemini에 여러 옵션을 비교하도록 요청하세요.
복잡한 문제를 여러 요청으로 분할합니다. 구분해서 프롬프트를 작성하면 Gemini가 제공하는 답변을 구체화하고 집중하는 데 도움이 되므로 점진적으로 해결책에 다가갈 수 있습니다.
Gemini에서 제공할 수 있는 지원 유형은 무엇인가요?
Google Cloud를 위한 Gemini에서 언어 및 코드 기능을 사용하는 방법에는 여러 가지가 있지만 다음 섹션에서는 Gemini 지원이 가장 유용할 수 있는 몇 가지 주요 영역을 설명합니다.
'이 함수가 수행하는 작업을 요약해 줘.'(예를 들어 IDE에서 C 코드 함수를 선택한 다음에).
'IAM 권한을 최적화하려면 어떻게 해야 하니?'
작업 프롬프트
Google Cloud 를 위한 Gemini에게 특정 태스크나 여러 태스크를 수행하는 데 도와달라고 요청할 수 있습니다. 복잡한 태스크의 경우 프롬프트를 여러 단계로 나누어보세요. 예를 들어 다음과 같은 질문으로 절차와 태스크 작업 정보를 얻을 수 있습니다.
' Google Cloud 계정을 어떻게 설정하니?'
'버킷을 어떻게 공개하니?'
'Pub/Sub 구독에서 메시지를 가져오려면 어떻게 해야 하니?'
'Vertex AI를 사용하여 모델을 배포하려면 어떻게 해야 하니?'
생성형 프롬프트
IDE 또는 Google Cloud 콘솔에서 요청을 입력하면 Google Cloud 를 위한 Gemini에서 코드 구조를 생성하고 완료할 수 있습니다.
Google Cloud 를 위한 Gemini를 사용하면 코드 설계 및 개발을 위한 프로세스 문서를 생성할 수도 있습니다.
예를 들어 Google Cloud 를 위한 Gemini에게 다음을 수행하는 데 도와달라고 요청할 수 있습니다.
'C에서 특정 변수가 있는 함수를 만들어줘.'
' Google Cloud에서 웹 앱을 설계, 빌드, 배포하기 위한 대략적인 계획을 수립해줘.' =
'기본 IP 주소를 사용하여 베어메탈 Kubernetes 클러스터 YAML 파일을 만들어줘.'
'드롭다운 메뉴의 자바스크립트 코드를 작성해줘.'
'Vertex AI 모델을 설계한 Kim이라는 데이터 과학자에 관해 간단하고 이해하기 쉬운 사용자 스토리를 작성해줘.'
'개발자 Google 그룹에 내 Google Cloud 프로젝트를 볼 수 있는 액세스 권한을 부여하는 gcloud 명령어를 만들어줘.'
애플리케이션 관련 프롬프트
폴더에 Gemini Cloud Assist를 설정하고Google Cloud 콘솔에서 Cloud Assist 패널을 폴더 수준에서 사용하는 경우 지원 및 응답은 애플리케이션을 지원하는 제품의 폴더와 관련된 애플리케이션으로 제한됩니다. 다음 목록에는 폴더 수준에서 지원되는 Google Cloud 제품이 포함됩니다.
Google Cloud 콘솔에서 폴더로 범위가 지정된 경우 이러한 Google Cloud제품에서는 애플리케이션과 관련된 프롬프트만 지원됩니다. 이 범위 내 애플리케이션과 관련 없는 질문을 제출하면 Gemini Cloud Assist에서 폴더는 애플리케이션 관련 프롬프트를 위한 것이라고 설명하는 일반적인 응답을 제공합니다. 다음 목록에는 애플리케이션 관련 프롬프트 예시가 나와 있습니다.
'프로덕션에 애플리케이션이 몇 개 있니?'
'애플리케이션 example-application 문제를 해결하는 데 도와줘'
다른 제품 및 리소스에 대한 구체적인 지원을 받으려면 Google Cloud 콘솔 페이지 상단에 있는 프로젝트 선택 도구를 사용하여 프로젝트 리소스를 선택합니다.
또한 폴더 수준에서 Cloud Assist 패널을 사용하려면 폴더에서 애플리케이션 관리를 사용 설정해야 합니다.
의견 보내기
Google Cloud를 위한 Gemini의 대화형 환경에 대한 긍정적 또는 부정적인 의견을 Google에 제공해 주시면 Google 응답을 제공하는 데 사용되는 기본 서비스를 개선하는 데 도움이 됩니다. Google에서는 의견과 명시적 권한을 사용하여 Google Cloud 를 위한 Gemini를 개선해 실수가 적은 더 우수한 추천을 제공하고 더 나은 응답을 강화합니다. 자세한 내용은 Google Cloud 를 위한 Gemini 의견 제공을 참조하세요.
다음 단계
대규모 언어 모델(LLM) 프롬프트 설계에 대한 자세한 내용은 프롬프트 설계 소개를 참조하세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003eGemini for Google Cloud assists users in being more productive with Google Cloud products and services by providing responses to user prompts.\u003c/p\u003e\n"],["\u003cp\u003eTo get the best responses from Gemini, users should provide detailed context and specifics in their prompts, ideally keeping them under 4,000 characters, using a conversational tone, and breaking down complex tasks.\u003c/p\u003e\n"],["\u003cp\u003eGemini can provide various types of assistance, including information about Google Cloud products, analytical and operational suggestions, task guidance, and code generation.\u003c/p\u003e\n"],["\u003cp\u003eUsers can enhance Gemini's accuracy and helpfulness by giving positive or negative feedback on the responses they receive, to help improve future interactions and suggestions.\u003c/p\u003e\n"],["\u003cp\u003eGemini for Google Cloud can help users at any skill level by having the prompt request match the users expertise, and giving detailed instructions on the technologies and programming languages that they are using.\u003c/p\u003e\n"]]],[],null,["# Write better prompts for Gemini for Google Cloud\n\nThis document describes how to optimize the prompts that you send to\nGemini for Google Cloud and the type of assistance it provides so that you can be more\nproductive using Google Cloud products and services.\n\nYou can prompt Gemini for Google Cloud in different ways depending on which\nGoogle Cloud product you're using. For some products, you prompt\nGemini for Google Cloud in a conversational interface,\nwhile in others you prompt in code or query editors. For instructions on how to\nenter prompts, see the [documentation for your product](/gemini/docs/overview).\n\nFor more information about Gemini for Google Cloud, an\nAI-powered collaborator in Google Cloud, see\n[Gemini for Google Cloud overview](/gemini/docs/overview).\n\nProvide context and details in your prompts\n-------------------------------------------\n\nThe questions that you ask Gemini for Google Cloud,\nincluding any input information or code you want Gemini to\nanalyze or complete, are called *prompts* . The answers or code completions that\nyou receive from Gemini are called *responses*.\n\nWhen you ask Gemini for Google Cloud for help, you should\ninclude as much context and specific detail as possible. Because AI-generated\nresponses are based on a vast range of possibilities, it's important for you to\nbe precise. For the best results, your prompts shouldn't exceed 4,000 characters.\n\nHere are some ways to provide helpful context and detail in your prompts:\n\n- **Write your prompt like you're talking with a person.** Don't enter only\n keywords as you might when searching for a document online, but include the\n kind of detail you'd include when explaining a problem to someone. For\n example, instead of entering the terms \"workload GKE,\" ask a complete\n question: \"What kinds of workloads does GKE support?\"\n\n- **Describe why you're trying to accomplish a task.**\n Details about what you're trying to accomplish can help Gemini\n for Google Cloud provide a more useful answer. For example, telling\n Gemini for Google Cloud that you want to \"set up a\n simple, secure Google Cloud site for hosting a blog\" has more helpful\n details than only asking \"how to deploy a website.\" Because there are often\n multiple correct ways to accomplish a technical goal, providing\n Gemini for Google Cloud sufficient context can help\n ensure a good response.\n\n- **Ask to include all the parameters in a command.**\n For example, when you ask Gemini Code Assist to generate code\n functions, you are likely to produce a more useful and detailed response by\n telling it to \"make sure all methods use their required arguments.\"\n\n- **Include your level of expertise.** It's especially helpful to match your\n prompt request with your expertise level when you ask for a suggestion. Asking\n Gemini for Google Cloud to explain a concept or code as\n if you're an expert programmer--or a novice programmer--can give you different,\n and more appropriate, results.\n\n For example, to direct Gemini to respond from an expert\n context, you could prompt it with \"create Python code to list all\n Compute Engine instances. You are an expert software developer using\n Google Cloud.\" Similarly, you could ask Gemini for\n Google Cloud to \"explain Kubernetes and its benefits to me in the\n simplest terms possible.\"\n- **Include details about products and technologies.** If you're looking for\n answers about a specific product, technology, or technical capability, include\n that in your prompt. Similarly, specifying a programming language can help you get\n more relevant responses. If you're unsure about what technologies or products\n to consider, ask Gemini to compare different options for you.\n\n- **Break complex problems into multiple requests.** Writing separate prompts\n can help Gemini refine and focus the answers that it gives,\n helping you move progressively toward a solution.\n\nWhat types of assistance can Gemini give you?\n---------------------------------------------\n\nWhile there are many ways to use the language and code capabilities in\nGemini for Google Cloud, the following sections describe\nsome key areas where Gemini assistance can be most useful.\n\nRemember that Gemini for Google Cloud can produce\nunexpected, incomplete, or erroneous results when you ask for assistance.\nFor more information, see\n[Gemini for Google Cloud and responsible AI](/gemini/docs/discover/responsible-ai).\n\n### Information and reference prompts\n\nYou can ask Gemini for Google Cloud for information about\nGoogle Cloud products and services, general technologies, definitions, and\nhow those concepts and technologies relate to one another. For example, you can\nask the following:\n\n- \"What does \"serverless architecture\" mean in Google Cloud?\"\n- \"What Google Cloud products provide managed Kubernetes cluster support?\"\n- \"What are the key technical features of BigQuery?\"\n- \"When should I use Compute Engine instead of App Engine?\"\n- \"What kinds of model testing does Vertex AI support?\"\n- \"What vulnerability scanning does Google's Security Command Center offer?\"\n\n### Analytical and operational prompts\n\nYou can ask Gemini for Google Cloud to summarize and\nsimplify code functions, and give operational suggestions---for example:\n\n- \"Simplify the code I've selected\" (for example, after selecting Python code in an [IDE](/gemini/docs/codeassist/overview#ide)).\n- \"Summarize what this function does\" (for example, after selecting a C code function in an IDE).\n- \"How do I optimize IAM permissions?\"\n\n### Task prompts\n\nYou can ask Gemini for Google Cloud to help you accomplish\na specific task or set of tasks. For complex tasks, try breaking your prompts\ninto separate steps. For example, you can get procedures and task information\nwith questions like the following:\n\n- \"How do I set up a Google Cloud account?\"\n- \"How do I make a bucket public?\"\n- \"How can I pull messages from a Pub/Sub subscription?\"\n- \"How do I use Vertex AI to deploy a model?\"\n\n### Generative prompts\n\nGemini for Google Cloud can generate and complete code\nstructures as you enter a request from an\n[IDE](/gemini/docs/codeassist/overview#ide) or from the Google Cloud console.\nGemini for Google Cloud can also help you generate process\ndocumentation for code design and development.\n\nFor example, you can ask Gemini for Google Cloud to help\nyou do the following:\n\n- \"Create a function with specific variables in C.\"\n- \"Create a high-level plan for designing and building and deploying a web app in Google Cloud.\"\n- \"Create a bare metal kubernetes cluster YAML file with default IP addresses.\"\n- \"Create javascript code for a drop-down menu.\"\n- \"Create a brief, easy-to-understand user story about a data scientist named Kim designing a Vertex AI model.\"\n- \"Create a gcloud command to give the developer Google group access to view my Google Cloud project.\"\n\n### Application-related prompts\n\nIf you\n[set up Gemini Cloud Assist for a folder](/gemini/docs/cloud-assist/set-up-gemini)\nand are using the **Cloud Assist** panel at the folder level in the\nGoogle Cloud console, then assistance and responses are limited to\napplications related to the folder for products that support applications. The\nfollowing list includes Google Cloud products supported at the folder level:\n\n- [Application Design Center](/application-design-center/docs/overview)\n- [App Hub](/app-hub/docs/overview)\n- [Cloud Asset Inventory](/asset-inventory/docs/asset-inventory-overview)\n- [Cloud Monitoring](/monitoring/docs/monitoring-overview)\n- [Logs Explorer](/logging/docs/view/logs-explorer-interface)\n\nOnly prompts related to applications are supported in these Google Cloud\nproducts if you are scoped to a folder in the Google Cloud console. If you\nsubmit a question that doesn't relate to applications within this scope, then\nGemini Cloud Assist provides a generic response stating that folders\nare intended for application-related prompts. The following list shows example\napplication-related prompts:\n\n- \"How many applications are in production?\"\n- \"Help troubleshoot application example-application.\"\n\nTo get specific assistance on other products and resources, use project picker\nat the top of the Google Cloud console page to select a project resource.\n\nAdditionally, you must enable\n[application management](/app-hub/docs/overview#application-management) on the\nfolder to use the **Cloud Assist** panel at the folder level.\n\nProvide feedback\n----------------\n\nWhen you provide us with positive or negative feedback about your conversational\nexperience with Gemini for Google Cloud, you're helping us\nimprove the underlying services that we use to provide you with responses. With\nfeedback, [and your explicit permission](/gemini/docs/discover/data-governance),\nwe can improve Gemini for Google Cloud to make better\nsuggestions with fewer mistakes, as well as ensure that good responses are\nreinforced. For more information, see\n[Provide Gemini for Google Cloud feedback](/gemini/docs/support/feedback).\n\nWhat's next\n-----------\n\n- For more about large language model (LLM) prompt design, see [Introduction to prompt design](/vertex-ai/docs/generative-ai/learn/introduction-prompt-design).\n- To learn more about generative AI, see [Generative AI learning path](https://www.cloudskillsboost.google/journeys/118).\n- For more on Gemini and LLM models, see [Gemini for Google Cloud and responsible AI](/gemini/docs/discover/responsible-ai).\n- For more on how we only use your feedback data with your permission, see [How Gemini for Google Cloud uses your data](/gemini/docs/discover/data-governance)."]]