Text this: Accuracy Enhancement in Refractive Index Sensing via Full-Spectrum Machine Learning Modeling