templates[patch]: rag-google-cloud-sdp readme (#14043)

This commit is contained in:
Erick Friis 2023-11-30 08:17:51 -08:00 committed by GitHub
parent f4d520ccb5
commit 8078caf764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,9 +11,13 @@ check [here](https://cloud.google.com/dlp/docs/sensitive-data-protection-overvie
## Environment Setup
Before using this template, please ensure that you enable the DLP API and Vertex AI Search API in your Google Cloud
Before using this template, please ensure that you enable the [DLP API](https://console.cloud.google.com/marketplace/product/google/dlp.googleapis.com)
and [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) in your Google Cloud
project.
For some common environment troubleshooting steps related to Google Cloud, see the bottom
of this readme.
Set the following environment variables:
* `GOOGLE_CLOUD_PROJECT_ID` - Your Google Cloud project ID.
@ -79,3 +83,14 @@ from langserve.client import RemoteRunnable
runnable = RemoteRunnable("http://localhost:8000/rag-google-cloud-sensitive-data-protection")
```
```
# Troubleshooting Google Cloud
You can set your `gcloud` credentials with their CLI using `gcloud auth application-default login`
You can set your `gcloud` project with the following commands
```bash
gcloud config set project <your project>
gcloud auth application-default set-quota-project <your project>
export GOOGLE_CLOUD_PROJECT_ID=<your project>
```