fffiloni commited on
Commit
db8c96c
1 Parent(s): a229b67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def pdf_changes(pdf_doc):
22
  db = Chroma.from_documents(texts, embeddings)
23
  retriever = db.as_retriever()
24
  global qa
25
- qa = RetrievalQA.from_chain_type(llm=OpenAI(), chain_type="stuff", retriever=retriever, return_source_documents=True)
26
  return "Ready"
27
 
28
  def add_text(history, text):
 
22
  db = Chroma.from_documents(texts, embeddings)
23
  retriever = db.as_retriever()
24
  global qa
25
+ qa = RetrievalQA.from_chain_type(llm=OpenAI(temperature=0.5), chain_type="stuff", retriever=retriever, return_source_documents=True)
26
  return "Ready"
27
 
28
  def add_text(history, text):