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.
This commit is contained in:
Naoki Ainoya 2023-03-23 23:08:04 +09:00 committed by GitHub
parent 75149d6d38
commit 2f27ef92fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ class VectorStoreIndexWrapper(BaseModel):
"""Query the vectorstore.""" """Query the vectorstore."""
llm = llm or OpenAI(temperature=0) llm = llm or OpenAI(temperature=0)
chain = RetrievalQA.from_chain_type( chain = RetrievalQA.from_chain_type(
llm, retriver=self.vectorstore.as_retriever(), **kwargs llm, retriever=self.vectorstore.as_retriever(), **kwargs
) )
return chain.run(question) return chain.run(question)