midpage interview question

Implement RAG with cosine similarity in Numpy and connect to a Postgres database