mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +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.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)
|
||||||
|
Loading…
Reference in New Issue
Block a user