gkrthk commited on
Commit
ebf0716
1 Parent(s): f8234e4
Files changed (1) hide show
  1. confluence_qa.py +1 -1
confluence_qa.py CHANGED
@@ -50,7 +50,7 @@ class ConfluenceQA:
50
  template=template, input_variables=["context", "question"]
51
  )
52
  chain_type_kwargs = {"prompt": QA_CHAIN_PROMPT}
53
- self.qa = RetrievalQA.from_chain_type(llm=self.llm, chain_type="stuff", retriever=self.db.as_retriever(), chain_type_kwargs=chain_type_kwargs)
54
 
55
  def __init__(self,config:dict = {}) -> None:
56
  self.db=None
 
50
  template=template, input_variables=["context", "question"]
51
  )
52
  chain_type_kwargs = {"prompt": QA_CHAIN_PROMPT}
53
+ self.qa = RetrievalQA.from_chain_type(llm=self.llm, chain_type="stuff", retriever=self.db.as_retriever(search_kwargs={"k":4}), chain_type_kwargs=chain_type_kwargs)
54
 
55
  def __init__(self,config:dict = {}) -> None:
56
  self.db=None