mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
6137894008
This is a template demonstrating how to utilize Google Sensitive Data Protection in conjunction with ChatVertexAI(). Tagging you @efriis as you reviewed my last template. :) Thanks! Proof of successful execution: ![image](https://github.com/langchain-ai/langchain/assets/82172964/e4d678aa-85c8-482b-b09d-81fe7e912dd4) --------- Co-authored-by: Erick Friis <erick@langchain.dev>
10 lines
344 B
Python
10 lines
344 B
Python
from rag_google_cloud_sensitive_data_protection.chain import chain
|
|
|
|
if __name__ == "__main__":
|
|
query = {
|
|
"question": "Good morning. My name is Captain Blackbeard. My phone number "
|
|
"is 555-555-5555. And my email is lovely.pirate@gmail.com. Have a nice day.",
|
|
"chat_history": [],
|
|
}
|
|
print(chain.invoke(query))
|