How does the ANN (Approximate Nearest Neighbor) works?

If you are working with the RAG applications then you would have heard this terminology a lot, but what exactly is ANN.