Splice interview question

How does a vector database search algorithm work?