Pregunta de entrevista de Schibsted

implement a couple of functions for a RAG skeleton in python