Bi-Encoder — AI Glossary

A bi-encoder is a dual-tower transformer architecture in which the query and the document are encoded independently by the same (or twin) encoder into separate fixed-size vectors, and relevance is computed as cosine or dot-product similarity between those vectors.