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:
Dan Bolser 2023-09-27 19:15:58 +01:00 committed by GitHub
parent c59a5bae48
commit efb7c459a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ class RetrievalQA(BaseRetrievalQA):
from langchain.llms import OpenAI from langchain.llms import OpenAI
from langchain.chains import RetrievalQA from langchain.chains import RetrievalQA
from langchain.faiss import FAISS from langchain.vectorstores import FAISS
from langchain.schema.vectorstore import VectorStoreRetriever from langchain.schema.vectorstore import VectorStoreRetriever
retriever = VectorStoreRetriever(vectorstore=FAISS(...)) retriever = VectorStoreRetriever(vectorstore=FAISS(...))
retrievalQA = RetrievalQA.from_llm(llm=OpenAI(), retriever=retriever) retrievalQA = RetrievalQA.from_llm(llm=OpenAI(), retriever=retriever)