In this work, the authors propose a modified type of multi-stage directional couplers and combine it with a wavelength-tunable laser to measure the refractive index of an undetermined biochemical liquid/solution. Tuning the wavelength of the laser incident on the modified multi-stage directional couplers, the relationship between the wavelength corresponding to the maximal output optical power and the refractive index of the unknown fluid has been obtained.