mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-13 16:36:06 +00:00
Update base.py (#10843)
Fixing a typo in the example code in the docstring... You have to start somewhere though right? Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
This commit is contained in:
parent
c59a5bae48
commit
efb7c459a2
@ -197,7 +197,7 @@ class RetrievalQA(BaseRetrievalQA):
|
||||
|
||||
from langchain.llms import OpenAI
|
||||
from langchain.chains import RetrievalQA
|
||||
from langchain.faiss import FAISS
|
||||
from langchain.vectorstores import FAISS
|
||||
from langchain.schema.vectorstore import VectorStoreRetriever
|
||||
retriever = VectorStoreRetriever(vectorstore=FAISS(...))
|
||||
retrievalQA = RetrievalQA.from_llm(llm=OpenAI(), retriever=retriever)
|
||||
|
Loading…
Reference in New Issue
Block a user