Example
Here’s an example of how you can use Protect with Langchain:input
and output
, you will need to insert a Python function before the protected_chain
to format the output to match the expected input of the ProtectTool.
Logging Protect With Galileo Evaluate and Galileo Observe
Protect supports Galileo Evaluate and Galileo Observe. You can log Protect’s actions and responses in your Galileo Evaluate and Galileo Observe dashboards. To show your protect outputs in the Galileo Evaluate and Galileo Observe dashboards, simply include the Evaluate and Observe’slangchain
callbacks when you invoke your protected_chain
.