Vector database
A vector database stores embeddings together with ids and metadata and finds the nearest vectors to a query quickly.
Most use approximate nearest-neighbour indexes that trade a little accuracy for speed. You can use a dedicated store, or the pgvector extension in Postgres if you already run it.
The hard parts are not the nearest-neighbour call. They are metadata filters, updates and deletes, access control and keeping the index in step with the source documents. A database you already operate often wins on those.
Common mistake. Picking a specialised store for a corpus of ten thousand chunks because it was in a tutorial, and then running a second database for it.
In practice. Start with pgvector if you use Postgres, measure recall and latency on your own data, and move to a dedicated engine only when the numbers demand it.