agent-platform-rag-engine-management
하는 일
Agent Platform Python SDK로 RAG Engine 코퍼스와 파일을 살펴보고, 관련 컨텍스트를 가져오며, 그 데이터에 근거한 답변을 생성합니다. Google Cloud에서 검색 기반 AI를 만드는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓프로젝트에 어떤 RAG 코퍼스나 파일이 있는지 보고 싶을 때.
- ✓질문에 답하기 위해 코퍼스에서 관련 구절이 필요할 때.
- ✓RAG 코퍼스에 근거한 모델 답변을 원할 때.
스킬 링크
https://github.com/google/skills/blob/main/skills/cloud/agent-platform-rag-engine-management/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 Agent Platform RAG 코퍼스를 나열한 뒤, 환불 정책에 대한 구절을 찾아 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 코퍼스를 자유롭게 나열하고 읽으며, 질의로 관련 컨텍스트를 검색하고, 컴퓨팅을 쓰는 생성 호출 전에는 확인을 요청합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Agent Platform RAG Engine Management
This skill provides instructions on how to interact with Agent Platform RAG
Engine using the Agent Platform Python SDK. You MUST use the vertexai Python
SDK to perform RAG Engine operations, rather than raw REST calls or MCP tools,
because this code is intended to be run by external clients.
Safety & Confirmation Tiers (CRITICAL)
Before executing any commands or scripts on behalf of the user, you must adhere to the following safety tiers based on the action requested:
Tier R: Read-only (
list_corpora,list_files,get_corpus,retrieval_query)- No confirmation needed. Execute immediately to gather information or retrieve grounded contexts.
Tier RC: Read-only but consumes Compute Resources (
client.models.generate_content)Requires interactive confirmation with 'Yes'/'No' options before executing grounded content generation. The confirmation prompt MUST clearly explain the proposed generation execution and its key parameters (e.g., target corpus ID, query text, target model). Natural-language paraphrases without specifying exact parameters are insufficient, as explicit parameter listing is required to ensure unambiguous user approval of the specific resource and configuration.
Same-turn restriction: Do not execute the generation code in the same turn as presenting the confirmation prompt. Stop and wait for the user's reply; only execute after explicit 'Yes' / approval.
Gold Standard Example:
I will perform grounded content generation with the following parameters. Please confirm this information before I proceed:
- Target Corpus ID:
projects/123/locations/us/ragCorpora/abc - Target Model:
gemini-2.5-pro - Query Text: "What are the company policies on remote work?"
Do you confirm? [Yes/No]
- Target Corpus ID:
Phase 0: Environment Setup
CRITICAL: Before running any of the Python snippets below, you must ensure the environment is correctly initialized by following these steps:
Google Cloud Authentication: Authenticate with your Google Cloud credentials and configure active Application Default Credentials (ADC) for Agent Platform access:
gcloud auth login gcloud auth application-default loginPython Dependencies: This skill needs
google-cloud-aiplatformandgoogle-genai, which the sandbox already provides. Do not create a virtual environment — it starts empty and hides packages the environment already provides, forcing a redundant install. Do not spend a separate command checking for them: run the snippet directly, and only if it fails withModuleNotFoundError, install in the same command as the retry:pip install -q google-cloud-aiplatform google-genai && python3 - <<'PY' ... PYExecution: Run each snippet as a quoted heredoc,
python3 - <<'PY'...PY, rather thanpython3 -c '...', whose nested quotes break easily. There is no environment to activate first. When one step needs several of the snippets below (for example, list the corpora and then the files in each), combine them into one script and one command. Thevertexai.preview.ragdeprecation warning printed on stderr is expected; keep using these snippets rather than switching clients because of it.
Workflow Decision Tree
Information Gathering: Has the user provided the Project ID, Region, and Corpus ID?
- No -> Proceed to [1. Listing Corpora and Files] to discover the necessary Resource Names and IDs. Only ask the user if discovery fails.
- Yes -> Proceed.
Task Type: What does the user want to do?
- List Corpora and Files -> Proceed to [1. Listing Corpora and Files].
- Inspect a Corpus -> Proceed to [2. Getting / Inspecting a RAG Engine Corpus].
- Search for Contexts -> Proceed to [3. Retrieving Contexts].
- Answer questions using RAG Engine -> Proceed to [4. Answering the User with Retrieved Context].
[!TIP]
Placeholder Parameter Replacement: The Python scripts below use bracketed string placeholders (like
"{project_id}","{region}", and"{corpus_id}"). You MUST dynamically replace these placeh
자주 묻는 질문
묻지 않고 답변을 생성하나요?
아닙니다. 생성은 컴퓨팅 리소스를 쓰므로 먼저 확인을 요청합니다.
다른 RAG 제품도 다루나요?
아닙니다. Google Workspace RAG와 gRAG는 이 스킬 범위 밖입니다.
일반 데이터베이스 쿼리도 다루나요?
아닙니다. 그런 작업은 다른 데이터베이스 스킬의 몫입니다.
상세 정보
작성자의 원본 설명
Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google Workspace RAG, or other RAG products like gRAG.
repo: google/skills
인기도
- GitHub 스타
- 22k
- 순위
- #10207
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
finding-google-skills
22k에이전트가 호스팅, 데이터베이스, 저장소, 로그인, AI 모델 제공처럼 설정 작업에 맞는 Google 가이드를 찾도록 돕습니다.
gcloud
22k에이전트가 Google Cloud gcloud 명령을 작성하고 확인하도록 돕습니다. 플래그를 추측하지 않도록 무엇이든 실행하기 전에 정확한 문법을 확인합니다.
google-cloud-recipe-auth
22k에이전트가 Google Cloud의 신원과 접근 권한을 안내합니다. 사람과 서비스가 어떻게 로그인하고 어떤 권한을 받는지 포함합니다.
google-cloud-recipe-onboarding
22k새 개발자가 Google Cloud에서 프로젝트 선택, 결제 연결, 첫 리소스 배포 같은 첫 단계를 밟도록 안내합니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.