Rams901 commited on
Commit
0faabd3
1 Parent(s): 727377f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,7 +29,7 @@ db = FAISS.load_local('db_full', embeddings)
29
  mp_docs = {}
30
  llm_4 = ChatOpenAI(
31
  temperature=0,
32
- model='gpt-3.5-turbo-16k'
33
  )
34
  claude = ClaudeLLM()
35
  def add_text(history, text):
@@ -204,7 +204,7 @@ def qa_retrieve(query,):
204
 
205
  consensus = chain.run(query=query, articles="\n".join(tier_1), session_prompt = session_prompt,).strip()
206
 
207
- intro = qa_intro(query, consensus, tier_1)
208
  cynthesis = intro + "\n\n" + consensus
209
  # for i in range(1, len(tier_1)+1):
210
  # response = response.replace(f'[{i}]', f"<span class='text-primary'>[{i}]</span>")
 
29
  mp_docs = {}
30
  llm_4 = ChatOpenAI(
31
  temperature=0,
32
+ model='gpt-4'
33
  )
34
  claude = ClaudeLLM()
35
  def add_text(history, text):
 
204
 
205
  consensus = chain.run(query=query, articles="\n".join(tier_1), session_prompt = session_prompt,).strip()
206
 
207
+ intro = qa_intro(query, consensus, tier_1[:10])
208
  cynthesis = intro + "\n\n" + consensus
209
  # for i in range(1, len(tier_1)+1):
210
  # response = response.replace(f'[{i}]', f"<span class='text-primary'>[{i}]</span>")