# Dual Encoder
Also known as a **bi-encoder**. These work with vector spaces. All documents are encoded into the vector space. Then, when a query arrives it is passed through the model and we see what it's nearest neighbor is (the nearest document) in the vector space.


### How to train these bi/dual encoders?



---
Date: 20230607
Links to:
Tags:
References:
* [Introduction - Recent Developments in Neural Search - YouTube](https://www.youtube.com/watch?v=ukIYZw3uRX0)