What value should the resistors have and what power should they dissipate?
4.7 ohm and 1/2 W resistors would be okay?
And I understand that they must be connected between the 5V pin of 7i97T and the QA, QB and IDX pins.
470 Ohms 1/4W would be a good value (~10 mA)
(4.7 Ohms is way too low = ~ 1A)