Given a matrix of L2-normalized image embeddings of shape (n_images, d) and a matrix of L2-normalized text embeddings of shape (n_texts, d), compute the pairwise cosine similarity matrix of shape (n_images, n_texts). Then zero out (set to 0.0) every entry whose similarity is strictly less than a given threshold, and return the filtered matrix as a nested Python list.
If either input has zero rows, return an empty list [].