Can't instantiate abstract class BaseRetriever with abstract methods when try to retreive from pinecone

    llm=llm, 
    chain_type="stuff", 
    retriever=docsearch.as_retriever(search_kwargs={'k': 2}),
    return_source_documents=True, 
    chain_type_kwargs=chain_type_kwargs)

above code gives below error.

ValidationError: 1 validation error for RetrievalQA
retriever
  Can't instantiate abstract class BaseRetriever with abstract methods _aget_relevant_documents, _get_relevant_documents (type=type_error)

i have this problem too

Hello @mkt.mohit and @aenodehi,

Welcome to the Pinecone forums. To help us debug this further, can you answer the following questions please:

  • What versions of the libraries are you using?
  • Can you provide a full code snippet that is triggering the error?