If AgNO3 is added to KI medium then negative charged sol is formed due to adsorption of iodide ions from KI onto the AgI precipitate.
If KI is added to AgNO3 then postive sol is formed due to Ag+ ions in solution which get adsorbed on AgI.
Regards
Arun(askIITians forum expert)