Men-deploy aplikasi contoh sekali klik yang menggunakan penyematan vektor yang disimpan di Cloud SQL untuk meningkatkan akurasi respons dari aplikasi chat.
Deploy aplikasi contoh sekali klik yang mengekstrak pasangan tanya jawab dari sekumpulan dokumen, beserta pipeline yang memicu aplikasi saat dokumen diupload.
Pelajari cara membuat aplikasi RAG berbasis Node yang memberikan rekomendasi investasi untuk penasihat keuangan. Contoh ini terintegrasi dengan Vertex AI, Cloud Run, AlloyDB, dan fungsi Cloud Run. Dibuat dengan Angular, TypeScript, Express.js, dan LangChain.
Pelajari cara membuat aplikasi RAG yang membantu pemilik mobil memecahkan masalah kendaraan mereka, tanpa harus membaca manual pemilik. Varian mencakup Cloud SQL dengan pgvector, dan Aplikasi AI. Dibuat dengan Java (Spring) dan Python (Streamlit).
MenengahJava
SDK dan Framework
Pelajari cara menggunakan API AI generatif Google Cloud' dengan cuplikan kode SDK.
Pelajari cara menerapkan Vertex AI Gemini SDK ke tugas seperti chat, perintah multimodal, dan pemrosesan dokumen. Jelajahi contoh kode lainnya di sini.
Mengintegrasikan produk lain, seperti Cloud Storage atau Firestore, ke dalam aplikasi AI generatif Anda? Jelajahi semua Google Cloudlibrary klien dalam bahasa pemrograman pilihan Anda.
Jelajahi cuplikan kode untuk menggunakan LangChain bersama produk, termasuk model chat (Vertex AI), database vektor (AlloyDB, Cloud SQL, Firestore, Aplikasi AI, BigQuery, dan lainnya), serta produk lainnya (Google Drive, Google Maps, YouTube, dan lainnya). Google Cloud
Jelajahi cuplikan kode untuk menggunakan LangChain bersama produk Google Cloud , termasuk model chat (Vertex AI), database vektor (Vertex AI Vector Search), dan lainnya (Google Penelusuran).
Genkit adalah framework open source yang membantu Anda membangun, men-deploy, dan memantau aplikasi web berteknologi AI yang siap produksi. Genkit dilengkapi dengan plugin untuk Vertex AI, Cloud Operations, dan Firestore.
Pelajari cara memanggil Gemini 1.5 Flash, dan memanfaatkan jendela konteks panjangnya, menggunakan Vertex AI SDK. Notebook ini mencakup modalitas teks, video, dan audio.
Pelajari cara mengonversi teks dan gambar menjadi embedding vektor menggunakan Vertex AI SDK, untuk digunakan dalam aplikasi retrieval-augmented generation (RAG).
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-25 UTC."],[[["\u003cp\u003eExplore pre-built generative AI sample applications that you can deploy and customize for your specific needs, including document summarization, RAG-based chat applications, and knowledge base creation.\u003c/p\u003e\n"],["\u003cp\u003eDiscover a range of sample applications demonstrating Retrieval-Augmented Generation (RAG) with various database integrations, such as Cloud SQL and AlloyDB for PostgreSQL, tailored for different use cases like an airport assistant and car troubleshooting.\u003c/p\u003e\n"],["\u003cp\u003eUtilize SDKs and frameworks like Vertex AI Gemini SDKs, Vertex AI Agent Builder SDKs, LangChain, and Genkit, in languages like Python, Node, Java, Go, and C#, to integrate generative AI capabilities into your applications.\u003c/p\u003e\n"],["\u003cp\u003eAccess numerous hands-on notebook tutorials for various generative AI tasks, including working with Gemini 1.5 Flash, analyzing sheet music and videos, and understanding text and multimodal embeddings.\u003c/p\u003e\n"],["\u003cp\u003eLearn how to implement function-calling with Gemini, and also migrate from PaLM to Gemini, along with information on supervised tuning with Gemini for specialized question-answering scenarios.\u003c/p\u003e\n"]]],[],null,["# Generative AI code samples and sample applications\n==================================================\n\nSample applications\n-------------------\n\nDeploy a prebuilt generative AI sample application, then fork the code to modify it for your own use-case.\n\n\n### [Jump Start Solution: Document Summarization](/architecture/ai-ml/generative-ai-document-summarization)\n\nDeploy a one-click sample application to summarize long documents with Vertex AI. \n\n\nBeginner\n\nPython\n\n### [Jump Start Solution: Generative AI RAG with Cloud SQL](/architecture/ai-ml/generative-ai-rag)\n\nDeploy a one-click sample application that uses vector embeddings stored in Cloud SQL to improve the accuracy of responses from a chat application. \n\n\nBeginner\n\nPython\n\n### [Jump Start Solution: Generative AI Knowledge Base](/architecture/ai-ml/generative-ai-knowledge-base)\n\nDeploy a one-click sample application that extracts question-and-answer pairs from a set of documents, along with a pipeline that triggers the application when a document is uploaded. \n\n\nBeginner\n\nPython\n\n### [Generate a marketing campaign with Gemini](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/sample-apps/gemini-streamlit-cloudrun)\n\nBuild a web app to generate marketing campaign ideas, using Gemini on Vertex AI, Cloud Run, and [Streamlit](https://streamlit.io/). \n\n\nBeginner\n\nPython\n\n### [Airport Assistant: RAG App](https://github.com/GoogleCloudPlatform/genai-databases-retrieval-app)\n\nSample app for retrieval-augmented generation with AlloyDB for PostgreSQL and Vertex AI. ([blog post](https://cloud.google.com/blog/products/databases/introducing-sample-genai-databases-retrieval-app), [codelab](https://codelabs.developers.google.com/codelabs/genai-db-retrieval-app)). \n\n\nIntermediate\n\nPython\n\n### [GenWealth: RAG app](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/sample-apps/genwealth)\n\nLearn to build a Node-based RAG app that provides investment recommendations for financial advisors. This sample integrates with Vertex AI, Cloud Run, AlloyDB, and Cloud Run functions. Built with Angular, TypeScript, Express.js, and LangChain. \n\n\nIntermediate\n\nNode\n\n### [Fix My Car: RAG app](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/sample-apps/fixmycar)\n\nLearn to build a RAG app that helps car owners troubleshoot their vehicle, without having to flip through their owner's manual. Variants include Cloud SQL with pgvector, and AI Applications. Built with Java (Spring) and Python (Streamlit). \n\n\nIntermediate\n\nJava\n\nSDKs and Frameworks\n-------------------\n\nLearn how to work with Google Cloud's generative AI APIs using SDK code snippets.\n\n\n### [Vertex AI - Gemini SDKs](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/sample-apps/genwealth)\n\nLearn how to apply the Vertex AI Gemini SDKs to tasks like chat, multimodal prompts, and document processing. [Browse additional code samples here.](/vertex-ai/docs/samples?text=gemini) \n\n\nBeginner\n\nPython\n\nNode\n\nJava\n\nGo\n\nC#\n\n### [AI Applications SDKs](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/sample-apps/genwealth)\n\nLearn how to store and retrieve RAG documents using AI Applications (formerly Vertex AI Search). \n\n\nBeginner\n\nPython\n\nNode\n\nJava\n\nGo\n\nC#\n\nPHP\n\nRuby\n\n### [Browse all Google Cloud client libraries](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/sample-apps/genwealth)\n\nIntegrating other products, like Cloud Storage or Firestore, into your generative AI app? Browse all Google Cloudclient libraries in your programming language of choice. \n\n\nBeginner\n\nPython\n\nNode\n\nJava\n\nGo\n\nC#\n\nPHP\n\nRuby\n\n### [LangChain (Python)](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/sample-apps/genwealth)\n\nExplore code snippets for using LangChain alongside Google Cloud products, including chat models (Vertex AI), vector databases (AlloyDB, Cloud SQL, Firestore, AI Applications, BigQuery, and others), and others (Google Drive, Google Maps, YouTube, and others). \n\n\nBeginner\n\nPython\n\n### [LangChain.js (Node)](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/sample-apps/genwealth)\n\nExplore code snippets for using LangChain alongside Google Cloud products, including chat models (Vertex AI), vector databases (Vertex AI Vector Search), and others (Google Search). \n\n\nBeginner\n\nNode\n\n### [Genkit (Node)](https://firebase.google.com/docs/genkit)\n\nGenkit is an open-source framework that helps you build, deploy, and monitor production-ready AI-powered web applications. Genkit comes with plugins for [Vertex AI](https://firebase.google.com/docs/genkit/plugins/vertex-ai), [Cloud Operations](https://firebase.google.com/docs/genkit/plugins/google-cloud), and [Firestore](https://firebase.google.com/docs/genkit/plugins/firebase). \n\n\nBeginner\n\nNode\n\n### [LangChain4j (Java)](https://docs.langchain4j.dev/integrations/language-models/google-gemini)\n\nExplore code snippets for using LangChain alongside Google Cloud products, including chat models (Vertex AI). \n\n\nBeginner\n\nJava\n\nNotebooks\n---------\n\nExplore hands-on walkthroughs of generative AI use cases.\n\n\n### [Getting started with Vertex AI Gemini 1.5 Flash](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/getting-started/intro_gemini_1_5_flash.ipynb)\n\nLearn how to call Gemini 1.5 Flash, and leverage its long context window, using the Vertex AI SDK. This notebook includes text, video, and audio modalities. \n\n\nBeginner\n\nPython\n\n### [Sheet Music Analysis with Gemini](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/document-processing/sheet_music.ipynb)\n\nLearn how to extract sheet music metadata, such as composer and tempo, from PDFs using the Vertex AI SDK. \n\n\nBeginner\n\nPython\n\n### [Video Analysis with Gemini](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/video-analysis/video_analysis.ipynb)\n\nLearn how to analyze video sentiment, including facial expressions, using the Vertex AI SDK. \n\n\nBeginner\n\nPython\n\n### [Analyzing movie posters in BigQuery with Gemini](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/applying-llms-to-data/analyze-poster-images-in-bigquery/poster_image_analysis.ipynb)\n\nLearn how to extract information from movie posters by calling Gemini directly from BigQuery. \n\n\nIntermediate\n\nPython\n\n### [Introduction to Vertex AI Embeddings - Text \\& Multimodal](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/qa-ops/intro_Vertex_AI_embeddings.ipynb)\n\nLearn how to convert text and images to vector embeddings using the Vertex AI SDK, for use in a retrieval-augmented generation (RAG) application. \n\n\nIntermediate\n\nPython\n\n### [Function-calling with Gemini](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/function-calling/use_case_company_news_and_insights.ipynb)\n\nLearn how to augment Gemini's response with real-time data, such as a company's stock price and latest news. \n\n\nIntermediate\n\nPython\n\n### [Code migration from PaLM to Gemini](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/language/migration/PaLM_to_gemini_codemigration.ipynb)\n\nLearn how to migrate your existing Vertex AI SDK code to call Gemini instead of PaLM. \n\n\nIntermediate\n\nPython\n\n### [Supervised Tuning with Gemini for Question-answering](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/language/migration/PaLM_to_gemini_codemigration.ipynb)\n\nLearn how to tune Gemini using Vertex AI, to train the model to respond well to questions about Python coding. \n\n\nAdvanced\n\nPython\n\n### [Browse all notebooks](https://cloud.google.com/vertex-ai/generative-ai/docs/samples?doctype=notebook)\n\nExplore dozens of other Vertex AI notebooks in the Google Cloud Sample Browser. \n\n\nIntermediate\n\nPython\n\nLearn more\n----------\n\n- [All Vertex AI code samples](/vertex-ai/generative-ai/docs/samples)\n- [Google Cloud sample browser](/docs/samples)"]]