Skip to content

Commit

Permalink
Merge pull request #4420 from mq200/fix/reranking_pipeline_folder
Browse files Browse the repository at this point in the history
fix @folder not limiting context items to selected folder in reranking pipeline
  • Loading branch information
sestinj authored Mar 2, 2025
2 parents bf4a68e + 52dc6f9 commit 5975dea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class RerankerRetrievalPipeline extends BaseRetrievalPipeline {
if (filterDirectory) {
// Backup if the individual retrieval methods don't listen
retrievalResults = retrievalResults.filter(
(chunk) => !!findUriInDirs(chunk.filepath, [filterDirectory]),
(chunk) => !!findUriInDirs(chunk.filepath, [filterDirectory]).foundInDir,
);
}

Expand Down

0 comments on commit 5975dea

Please sign in to comment.