quantamentalfinance commited on
Commit
c379b0e
1 Parent(s): f05bd1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def source_question_answer(query:str,vectorstore:Chroma=chroma_db,llm:HuggingFac
52
  Return answer to the query
53
  """
54
  input_docs = vectorstore.similarity_search(query,k=4)
55
- qa_chain = load_qa_chain(llm, chain_type="map_reduce")
56
  query = f"[INST]According to the earnings calls transcripts earlier, {query}[INST]"
57
 
58
  response = qa_chain.run(input_documents=input_docs, question=query)
 
52
  Return answer to the query
53
  """
54
  input_docs = vectorstore.similarity_search(query,k=4)
55
+ qa_chain = load_qa_chain(llm, chain_type="stuff")
56
  query = f"[INST]According to the earnings calls transcripts earlier, {query}[INST]"
57
 
58
  response = qa_chain.run(input_documents=input_docs, question=query)