guyellis / vertex-starter

A starter guide and framework to working with Vertex in Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vertex-starter

A starter guide and framework to working with Vertex in Node

Installation

git clone git@github.com:guyellis/vertex-starter.git
cd vertex-starter
npm ci

Setup GCP

  • Go to the GCP Console and login.
  • Create a new Project.
    • In lib/vertex.ts set PROJECT_ID to the name of this project.
  • Enable the Vertex AI API for that Project.
  • Install the gcloud CLI

Using this repo

Edit the lib/prompt.txt file and provide the prompt you want to send to Vertex.

From the root of the project run:

ts-node lib/vertex.ts

References

Vertex QuickStart

About

A starter guide and framework to working with Vertex in Node

License:MIT License


Languages

Language:TypeScript 100.0%