From the wiki article:
https://en.wikipedia.org/wiki/Slavery_in_India#Islamic_invasions_.288th_to_12th_century_AD.29
If my understanding is correct, the cast system was a product of slavery among other things. When slavery was first introduced, how were slaves treated and how were slave owners viewed?
Caste system eliminated slavery in India. caste system =/= slavery . Even lower caste people dont interact with other lower caste people. Caste is mainly part of tribe/race/ and varna system .
Can you explain before arrival Arabic influence where in India slavery was practiced , I never known such thing similar to what was happening in Africa/west Asia /Europe was practiced in India ?