mojuss commited on
Commit
ae7502b
·
verified ·
1 Parent(s): 6034dfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,8 +64,8 @@ def chatbotCustom(input):
64
  storage_context = StorageContext.from_defaults(persist_dir="index.json")
65
  index = load_index_from_storage(storage_context)
66
  query_engine = index.as_query_engine()
67
- response = query_engine.query(input)
68
- response = index.query(input, similarity_top_k=5, response_mode="tree_summarize")
69
  return response.response
70
 
71
  #def chatbotGPT(input):
 
64
  storage_context = StorageContext.from_defaults(persist_dir="index.json")
65
  index = load_index_from_storage(storage_context)
66
  query_engine = index.as_query_engine()
67
+ response = query_engine.query(input, similarity_top_k=5, response_mode="tree_summarize")
68
+ # response = index.query(input, similarity_top_k=5, response_mode="tree_summarize")
69
  return response.response
70
 
71
  #def chatbotGPT(input):