BramLeo commited on
Commit
ba8d664
1 Parent(s): f810385

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ def initialize_index():
112
  def initialize_chat_engine(index):
113
  from llama_index.core.prompts import PromptTemplate
114
  from llama_index.core.chat_engine.condense_plus_context import CondensePlusContextChatEngine
115
- retriever = index.as_retriever(similarity_top_k=1)
116
  chat_engine = CondensePlusContextChatEngine.from_defaults(
117
  retriever=retriever,
118
  verbose=True,
 
112
  def initialize_chat_engine(index):
113
  from llama_index.core.prompts import PromptTemplate
114
  from llama_index.core.chat_engine.condense_plus_context import CondensePlusContextChatEngine
115
+ retriever = index.as_retriever(similarity_top_k=3)
116
  chat_engine = CondensePlusContextChatEngine.from_defaults(
117
  retriever=retriever,
118
  verbose=True,