Skip to content

Commit

Permalink
fix:pass runManager to DocumentCompressor in MultiQueryRetriever (#5881)
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Szlendak <jakub.szlendak@merapar.com>
  • Loading branch information
jm-szlendak and jm-szlendak-merapar authored Jun 25, 2024
1 parent 4604a41 commit f6ef32d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion langchain/src/retrievers/multi_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ export class MultiQueryRetriever extends BaseRetriever {
if (this.documentCompressor && uniqueDocuments.length) {
outputDocs = await this.documentCompressor.compressDocuments(
uniqueDocuments,
question
question,
runManager?.getChild()
);
if (this.documentCompressorFilteringFn) {
outputDocs = this.documentCompressorFilteringFn(outputDocs);
Expand Down

0 comments on commit f6ef32d

Please sign in to comment.