retriever = VectorIndexRetriever( index=index, similarity_top_k=10, ) # configure response synthesizer response_synthesizer = get_response_synthesizer() # assemble query engine query_engine = RetrieverQueryEngine( retriever=retriever, response_synthesizer=response_synthesizer, node_postprocessors=[ MetadataReplacementPostProcessor(target_metadata_key="window") ], )
tree_summarize
modeaccumulate
mode might be appropriate