mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
Fix docstring of RetrievalQA (#3231)
Structure changed an RetrievalQA now expects BaseRetriever not VectorStore
This commit is contained in:
parent
b7dea80cba
commit
d54b977d4e
@ -154,8 +154,9 @@ class RetrievalQA(BaseRetrievalQA):
|
||||
from langchain.llms import OpenAI
|
||||
from langchain.chains import RetrievalQA
|
||||
from langchain.faiss import FAISS
|
||||
vectordb = FAISS(...)
|
||||
retrievalQA = RetrievalQA.from_llm(llm=OpenAI(), retriever=vectordb)
|
||||
from langchain.vectorstores.base import VectorStoreRetriever
|
||||
retriever = VectorStoreRetriever(vectorstore=FAISS(...))
|
||||
retrievalQA = RetrievalQA.from_llm(llm=OpenAI(), retriever=retriever)
|
||||
|
||||
"""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user