# Create the query engine
query_engine = index.as_query_engine(
    node_postprocessors=[cohere_rerank]
)