Text this: Bailicai: A Domain-Optimized Retrieval-Augmented Generation Framework for Medical Applications