Hello
You are right that it's an anti psychotic or a medicine used in Schizophrenia. But at times it is also used in treating a person with Depression with obsessional thinking or Obsessive Compulsive Disorder or even as a sleep inducer.... Later ones are just off label use but this is for your doctor to describe to you because he is the one who is observing ur symptoms and knows the rationale for using a particular medicine. We here at best will only be predicting.
Next Steps
Please ask in depth questions about your treatment from your doctor. This is your right and prerogative. This is not disrespectful at all and any gud doctor will not get offended by that.
Health Tips
Don't use unreliable and unscientific sources on internet to arrive upon any conclusion not just about your health but any thing as such. Internet info is deceiving many a times.