Spaces:
Runtime error
Runtime error
File size: 241 Bytes
9db894e |
1 2 3 4 5 6 |
from typing import Callable
def retrieval_qa(llm: Callable, retriever: Callable) -> Callable:
from langchain.chains import RetrievalQA
qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever)
return qa |