Skip to content

Glossary: Embeddings and Vector Search

argsort

Also written: np.argsort

A NumPy function that returns the positions that would sort an array from smallest to largest. Sorting the negated scores puts the best matches first.

Where the book teaches it

Related terms

NumPy arraybrute-force searchtop-k