No output when using guardrails "content safety check output" with a custom langchain_core.Runnable #1252
Unanswered
abhijeetsourav
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've made a custom langchain_core.Runnable to get model output of a diffusion pipeline, converting the output to a base64encoded url, to be used for content safety check and other output checks by the guardrails with vision-language model defined in config.yml. The class created is shown below:
The SDXLPipelineRunnable along with prompt runnable is wrapped with nemoguardrails' RunnableRails as shown below:
the above all code gives the following result:
{'output': None}
that's it
Things I tried:
eventhough the max token limit error solved, guardrails showed no output
Important
I think the output from the custom runnable is not correct, the ouput format to be passed as bot_message to the prompt of content_safety_check_output is unknown to me, anyone who knows about this situation please help
Also , if any other method is there to do this please explain
I have also checked the Runnable-as-action section in the docs, but i don't know whether this wiil achieve me my desired results or not
Thank you very much!!!
Beta Was this translation helpful? Give feedback.
All reactions