Pergunta de entrevista da empresa Schibsted

implement a couple of functions for a RAG skeleton in python