Default top k is 2
Instead of modifying the prompt, you could also try just appending extra instructions to the query string (that seemed to work well for someone the other day)
For filtering by similarity score, you can do this
from llama_index.indices.postprocessor import SimilarityPostprocessor
index.as_query_engine(
node_postprocessors=[
SimilarityPostprocessor(similarity_cutoff=0.7)
])