We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd5a345 commit 13fa4cbCopy full SHA for 13fa4cb
genai/embeddings/embeddings-docretrieval-with-txt.js
@@ -22,7 +22,10 @@ const GOOGLE_CLOUD_PROJECT = process.env.GOOGLE_CLOUD_PROJECT;
22
async function generateEmbeddingsForRetrieval(
23
projectId = GOOGLE_CLOUD_PROJECT
24
) {
25
- const client = new GoogleGenAI(projectId);
+ const client = new GoogleGenAI({
26
+ vertexai: true,
27
+ project: projectId,
28
+ });
29
30
const prompt = [
31
"How do I get a driver's license/learner's permit?",
0 commit comments