VectorIndexRetriever
to achieve this?retriever = index.as_retriever(similarity_top_k=2) nodes = retriever.retrieve("query") from llama_index.core import get_response_synthesizer synth = get_response_synthesizer(response_mode="compact", llm=;;m) response = synth.synthesize("query", nodes)
nodes = retriever.retrieve(topic)
multiple times, and then it's business as usual?MetadataReplacementPostProcessor
?nodes = postprocessor.postprocess_nodes(nodes) response = synthesizer.synthesize(prompt, nodes)