Skip to content

daiiz/vertexai-matching-engine-demo

Repository files navigation

vertexai-matching-engine-demo

Create a new Index

Ref. #5

$ sh create-stream-index.sh

Create a new IndexEndpoint

Public endpoint

$ sh create-index-endpoint.sh

Deploy Index

$ sh deploy-index.sh

Undeploy Index

$ INDEX_ENDPOINT="projects/349.../locations/us-central1/indexEndpoints/689..." sh undeploy-index.sh

Search

Run query in Node.js

$ node client/search.js "夕飯何にしよう"

Upsert datapoints

Upsert datapoints in Node.js

$ node client/upsert.js "ステーキ食べたい"

Experiments

$ cp sample.env .env
$ node create-index.js