mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 03:26:17 +00:00
templates[minor]: Add rag google sensitive data protection template (#13921)
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:  --------- Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
committed by
GitHub
parent
8b9dc5e6d3
commit
6137894008
@@ -0,0 +1,9 @@
|
||||
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))
|
Reference in New Issue
Block a user