We report the measurements of proton-deuteron (\(p\)-\(d\)) and deuteron-deuteron (\(d\)-\(d\)) correlation functions in Au+Au collisions at \(\sqrt{s_\mathrm{NN}}\) = 3 GeV using fixed-target mode with the STAR experiment at the Relativistic Heavy-Ion Collider (RHIC). For the first time, the source size (\(R_{G}\)), scattering length (\(f_{0}\)), and effective range (\(d_{0}\)) are extracted from the measured correlation functions with a simultaneous fit. The spin-averaged \(f_0\) for \(p\)-\(d\) and \(d\)-\(d\) interactions are determined to be -5.28 \(\pm\) 0.11(stat.) \(\pm\) 0.82(syst.) fm and -2.62 \(\pm\) 0.02(stat.) \(\pm\) 0.24(syst.) fm, respectively. The measured \(p\)-\(d\) interaction is consistent with theoretical calculations and low-energy scattering experiment results, demonstrating the feasibility of extracting interaction parameters using the femtoscopy technique. The reasonable agreement between the experimental data and the calculations from the transport model indicates that deuteron production in these collisions is primarily governed by nucleon coalescence.