IME the implementation of ANN + metadata filtering is often the "secret sauce" behind many vector database implementations.