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.
tool-patch
Naoki Ainoya 1 year ago committed by GitHub
parent 75149d6d38
commit 2f27ef92fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save