from llama_index.llms.ollama import Ollama
llm=Ollama(model="llama3")
from llama_index.core.retrievers import VectorIndexRetriever
from llama_index.core.query_engine import RetrieverQueryEngine
from llama_index.core.indices.postprocessor import SimilarityPostprocessor
retriever=VectorIndexRetriever(index=index,similarity_top_k=2,)
postprocessor=SimilarityPostprocessor(similarity_cutoff=0.5)
query_engine=RetrieverQueryEngine(node_postprocessors=[postprocessor],retriever=retriever,response_synthesizer=llm)
query_engine.query("What is 8086?")