There is preliminary evidence from genetic sequencing that Indian castes have been highly endogamous for at least 3000 years.
India is a vast place with an enormous population, and there's resistance to continuing this research, for fairly obvious reasons. But continue it will, you can't un-sequence a genome after all. So we may yet see a robust answer to this sort of question.
Your final point about selection via coercion holds more water, but one has to believe that the subjects would be explicitly chosen for their intelligence, rather than for any other features, which seems difficult to support.
As I said I assume the powerful selected politically powerful mates for their girls, which might or not be intelligent as well. However it is possible that high status was high intelligence. The lower castes not following that.
Look, the above is all just barely possible. you will have to work with me here...
Note the above uses words like "possible" and "if". I find it unlikely this is what was done. More likely - like every other society - they selected for politically powerful.
Note too that it is highly likely that in the past rape of lower casts was accepted in some form, which would bring any selected IQ genes to the lower casts.