Cluster-based Adaptive Retrieval: Dynamic Context Selection for RAG Applications