New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reask doesn't work on Langchain integration #155
Closed
Comments
same problem |
The reason this happens is because https://github.com/hwchase17/langchain/blob/master/langchain/output_parsers/rail_parser.py#L43 calls |
@Chromadream @fuergaosi233 Could you give langchain-ai/langchain#6089 a try? Pass a |
hwchase17
pushed a commit
to langchain-ai/langchain
that referenced
this issue
Jun 18, 2023
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> Fixes guardrails-ai/guardrails#155 Enables guardrails reasking by specifying an LLM api in the output parser.
Closing due to inactivity. |
kacperlukawski
pushed a commit
to kacperlukawski/langchain
that referenced
this issue
Jun 29, 2023
<!-- Thank you for contributing to LangChain! Your PR will appear in our release under the title you set. Please make sure it highlights your valuable contribution. Replace this with a description of the change, the issue it fixes (if applicable), and relevant context. List any dependencies required for this change. After you're done, someone will review your PR. They may suggest improvements. If no one reviews your PR within a few days, feel free to @-mention the same people again, as notifications can get lost. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle! --> <!-- Remove if not applicable --> Fixes guardrails-ai/guardrails#155 Enables guardrails reasking by specifying an LLM api in the output parser.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
We are trying to integrate Guardrails with Langchain, but encountered an issue when a reask is required, where it would throw an exception of
Here is the most basic reproducible snippet of the code:
Any advice would be greatly appreciated.
The text was updated successfully, but these errors were encountered: