From 2f27ef92fecef3b38b2b7bda0f45af1dcf652ebb Mon Sep 17 00:00:00 2001 From: Naoki Ainoya <2300438+ainoya@users.noreply.github.com> Date: Thu, 23 Mar 2023 23:08:04 +0900 Subject: [PATCH] Fix typo in VectorStoreIndexWrapper method (#1922) Fixed a typo in the argument of the query method within the VectorStoreIndexWrapper class. Specifically, the argument `retriver` has been changed to `retriever`. With this correction, the correct argument name is used, and potential bugs are avoided. --- langchain/indexes/vectorstore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/indexes/vectorstore.py b/langchain/indexes/vectorstore.py index 87e4f4d9..194942fa 100644 --- a/langchain/indexes/vectorstore.py +++ b/langchain/indexes/vectorstore.py @@ -33,7 +33,7 @@ class VectorStoreIndexWrapper(BaseModel): """Query the vectorstore.""" llm = llm or OpenAI(temperature=0) chain = RetrievalQA.from_chain_type( - llm, retriver=self.vectorstore.as_retriever(), **kwargs + llm, retriever=self.vectorstore.as_retriever(), **kwargs ) return chain.run(question)