A bi-encoder embeds query and document separately; a cross-encoder reads them together.
Often both: Retrieve with a bi-encoder (plus BM25), rerank the shortlist with a cross-encoder.