forked from Archives/langchain
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:
parent
75149d6d38
commit
2f27ef92fe
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user