While creating the RetrievalQA, it shows this error of not being able to instantiate abstract class BaseRetriever with abstract methods _aget_relevant_documents, _get_relevant_documents. The error can be seen in the screenshot below:
After this, I inspected the inheritance of VectorStoreRetriever from BaseRetriever along with the presence of relevant methods, as shown below:
Kindly help me identify where the issue is and how it can be resolved.
While creating the RetrievalQA, it shows this error of not being able to instantiate abstract class BaseRetriever with abstract methods _aget_relevant_documents, _get_relevant_documents. The error can be seen in the screenshot below:
After this, I inspected the inheritance of
VectorStoreRetriever
fromBaseRetriever
along with the presence of relevant methods, as shown below:Kindly help me identify where the issue is and how it can be resolved.