Dependency Injection and Interface Segregation in a Python RAG Retriever
In a hurry?
Dependency injection means an object is handed the things it uses instead of creating them itself. My vector store is handed its embedding model. A test hands it a fake that returns numbe
thearchitectsmind.hashnode.dev21 min read