File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -22,20 +22,19 @@ const GOOGLE_CLOUD_PROJECT = process.env.GOOGLE_CLOUD_PROJECT;
2222const GOOGLE_CLOUD_LOCATION = process . env . GOOGLE_CLOUD_LOCATION || 'global' ;
2323
2424// (DEVELOPER) put here your memory corpus
25- const MEMORY_CORPUS =
26- 'projects/cloud-ai-devrel-softserve/locations/us-central1/ragCorpora/2305843009213693952' ;
25+ const RAG_CORPUS_ID = '' ;
2726
2827async function generateLiveRagTextResponse (
29- memoryCorpus = MEMORY_CORPUS ,
3028 projectId = GOOGLE_CLOUD_PROJECT ,
31- location = GOOGLE_CLOUD_LOCATION
29+ location = GOOGLE_CLOUD_LOCATION ,
30+ rag_corpus_id = RAG_CORPUS_ID
3231) {
3332 const client = new GoogleGenAI ( {
3433 vertexai : true ,
3534 project : projectId ,
3635 location : location ,
3736 } ) ;
38-
37+ const memoryCorpus = `projects/ ${ projectId } /locations/ ${ location } /ragCorpora/ ${ rag_corpus_id } ` ;
3938 const modelId = 'gemini-2.0-flash-live-preview-04-09' ;
4039
4140 // RAG store config
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ const {GoogleGenAI} = require('@google/genai');
2020const GOOGLE_CLOUD_PROJECT = process . env . GOOGLE_CLOUD_PROJECT ;
2121const GOOGLE_CLOUD_LOCATION = process . env . GOOGLE_CLOUD_LOCATION || 'global' ;
2222// (Developer) put your path Data Store
23- const DATASTORE =
24- 'projects/cloud-ai-devrel-softserve/locations/global/collections/default_collection/dataStores/example-adk-website-datastore_1755611010401' ;
23+ const DATASTORE = `projects/${ GOOGLE_CLOUD_PROJECT } /locations/${ GOOGLE_CLOUD_LOCATION } /collections/default_collection/dataStores/data-store-id ` ;
2524
2625async function generateContent (
2726 datastore = DATASTORE ,
You can’t perform that action at this time.
0 commit comments