Text this: AdaGeo: Adaptive geometric learning for optimization and sampling