Skip to content

Commit

Permalink
add query bundle to node postprocessor call (#6780)
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich committed Jul 8, 2023
1 parent c829422 commit 6c6c8ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog

## Unreleased

### Bug Fixes / Nits
- fixed passing in query bundle to node postprocessors (#6780)

## [v0.7.3] - 2023-07-07

### New Features
Expand Down
4 changes: 3 additions & 1 deletion llama_index/query_engine/retriever_query_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def retrieve(self, query_bundle: QueryBundle) -> List[NodeWithScore]:
nodes = self._retriever.retrieve(query_bundle)

for node_postprocessor in self._node_postprocessors:
nodes = node_postprocessor.postprocess_nodes(nodes)
nodes = node_postprocessor.postprocess_nodes(
nodes, query_bundle=query_bundle
)

return nodes

Expand Down

0 comments on commit 6c6c8ef

Please sign in to comment.