Embodiments of the present disclosure relate to a method, apparatus, device, storage medium and program product for
data query. The method comprises: determining, based on relevance to query information, a relevant
data set from candidate data sets, the relevant
data set comprising a plurality of relevant data, the relevance of the plurality of relevant data to the query information exceeding a threshold; adjusting, based on a preset sequence
insertion operation, an arrangement order of the plurality of relevant data in the relevant
data set; determining, based on the adjusted arrangement order of the plurality of relevant data, a prompt word having a preset format, the prompt word having the preset format being at least associated with an
insertion mode of the preset sequence
insertion operation; and obtaining a query result for the query information by inputting the prompt word and the relevant data associated with the prompt word into a preset query model. Thus, the accuracy of the search result can be improved.