Time optimisation for elasticsearch cosine similarity

I have upload 29lakhs record with embeddings. I am trying to get cosine similarity for my input query. My query is currently taking 5secs to return the result. How Can I optimise the time to 1 sec or less?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.