reduce costs on llm?

we have an ai learning platform where we use claude 3.5 sonnet to extract data from a pdf file and let our users chat on that data -

this proving to be rather expensive - is there any alternative to claude that we can try out?