~~ というのですか means something like "'are you saying?' or 'so you're saying'. It's certainly a rhetorical question, not a real one. This form is often in response to someone who has provided surprising information, but it can also be used when realizing something for yourself."
See the answer provided in the link:
「～～というのだ」、「～～というの」、「～～というのか」, etc. added at the end of a question
generally functions to emphasize the question itself.
By adding one of those phrases, you are expressing the fact that you
really want to know the answer because whatever happened that caused
you to ask the question perplexes, surprises, shocks you, etc.
~~というのか is more about rephrasing what has been told before, something like "I said this, but it indeed means that", "or how should I say it". It is used to nuance what you just said.
it is similar to と言うより