Galileo Protect can also be used within your Langchain workflows. You can use Protect to validate inputs and outputs at different stages of your workflow. We provide a tool
that allows you to easily integrate Protect into your Langchain workflows.
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.
langchain
callbacks when you invoke your protected_chain
.