Robust Implementation of Retrieval-Augmented Generation on Edge-based Computing-in-Memory Architectures