Offers a reference implementation and setup guide for integrating Apigee with Vertex AI, aimed at creating a user-friendly, domain-specific API for efficiently embedding AI models into user-facing applications. It includes the Apigee proxy configuration, which facilitates secure access to the model beyond an organization’s GCP environment, allowing for interactions across organizational boundaries. The API features a simplified interface and provides clear, intuitive request and response structures that align with public sector use cases rather than just technology platforms. Additionally, this repository includes the dataset used to train the AI regression model, along with scripts for environment setup and API testing. It serves as a template that works out of the box, ready to be adapted for other use cases, allowing developers to leverage Apigee for managing and customizing APIs for AI models deployed on Vertex AI or to rapidly demonstrate these Google Cloud products for public sector applications.
Employs a regression model to predict how many days it will take to get a decision on a U.S. immigration visa application.
- Clone this repo
- Deploy the proxy (see zip file) to Apigee
- Edit
test.shand changeLB_EXTERNAL_IPenv var for your Apigee environment - Edit
test.shand changeENDPOINT_IDandPROJECT_IDfor your Vertex AI environment - Run
chmod +x test.sh - Run
./test.sh
- Import the .json workspace into Postman
- Get an auth token to go direct to Vertex AI:
gcloud auth print-access-token - Update the bearer token in Postman
- Show the direct call to Vertex AI and its input and output complexity
- Show the direct call to Apigee and its input and output simplicity