Text this: Smart adaptive learning and optimized feature clustering for enhanced image retrieval