Skip to content
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

langchain[patch]: fix:pass runManager to DocumentCompressor in MultiQueryRetriever #5881

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

jm-szlendak
Copy link
Contributor

The MultiQueryRetriever can accept an instance of DocumentCompressor, but when executing compression - it will not pass the run manager and effectively, any chains executed inside DocumentCompressor will not get callbacks executed.

This PR fixes this issue.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 24, 2024
Copy link

vercel bot commented Jun 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2024 11:26am
langchainjs-docs ✅ Ready (Inspect) Visit Preview Jun 24, 2024 11:26am

@dosubot dosubot bot added the auto:bug Related to a bug, vulnerability, unexpected error with an existing feature label Jun 24, 2024
@jacoblee93 jacoblee93 changed the title fix:pass runManager to DocumentCompressor in MultiQueryRetriever langchain[patch]: fix:pass runManager to DocumentCompressor in MultiQueryRetriever Jun 25, 2024
@jacoblee93
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants