mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-28 10:39:23 +00:00
templates[patch]: rag-google-cloud-sdp readme (#14043)
This commit is contained in:
parent
f4d520ccb5
commit
8078caf764
@ -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>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user