agent-platform-rag-engine-management
यह क्या करती है
यह Agent Platform Python SDK से RAG Engine corpora और फ़ाइलें देखती है, प्रासंगिक संदर्भ निकालती है, और उसी डेटा पर आधारित जवाब बनाती है। यह उन डेवलपर्स के लिए है जो Google Cloud पर retrieval-आधारित AI बना रहे हैं।
कब इस्तेमाल करें
- ✓जब आप देखना चाहें कि आपके प्रोजेक्ट में कौन से RAG corpora या फ़ाइलें हैं।
- ✓जब आपको सवाल का जवाब देने के लिए corpus से प्रासंगिक अंश चाहिए।
- ✓जब आप चाहते हैं कि मॉडल का जवाब आपके RAG corpus पर आधारित हो।
Skill का लिंक
https://github.com/google/skills/blob/main/skills/cloud/agent-platform-rag-engine-management/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Agent Platform पर मेरे RAG corpora की सूची दीजिए, फिर रिफ़ंड नीति के बारे में अंश खोजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह corpora को स्वतंत्र रूप से सूचीबद्ध और पढ़ती है, क्वेरी से मेल खाता संदर्भ लाती है, और compute इस्तेमाल करने वाली किसी भी generation कॉल से पहले आपकी पुष्टि माँगती है।
तकनीकी सामग्री (मूल 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
अक्सर पूछे जाने वाले सवाल
क्या यह बिना पूछे जवाब बनाएगी?
नहीं। generation में compute संसाधन लगते हैं, इसलिए यह पहले पुष्टि माँगती है।
क्या यह दूसरे 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
finding-google-skills
22kआपके एजेंट को किसी सेटअप काम के लिए सही Google गाइड खोजने में मदद करती है, जैसे hosting, databases, storage, sign-in या AI model serving।
gcloud
22kयह आपके एजेंट को Google Cloud gcloud कमांड लिखने और जाँचने में मदद करती है, कुछ भी चलाने से पहले सटीक सिंटैक्स देखकर, ताकि फ़्लैग का अंदाज़ा न लगे।
google-cloud-recipe-auth
22kआपके एजेंट को Google Cloud की पहचान और पहुँच समझाती है, जिसमें यह शामिल है कि लोग और सेवाएँ कैसे साइन इन करते हैं और उन्हें कौन सी अनुमतियाँ मिलती हैं।
google-cloud-recipe-onboarding
22kएक नए डेवलपर को Google Cloud पर पहले कदमों में मदद करती है, जिसमें प्रोजेक्ट चुनना, बिलिंग जोड़ना और पहला संसाधन डिप्लॉय करना शामिल है।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।