Chan-Y commited on
Commit
ac65db8
·
verified ·
1 Parent(s): ccf9b91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def handle_file_upload(file, llm_name):
65
  )
66
 
67
  bm25_retriever = BM25Retriever(nodes=documents, similarity_top_k=2, tokenizer=text_splitter.split_text)
68
- vector_retriever = VectorIndexRetriever(index=vector_index, similarity_top_k=2)
69
  hybrid_retriever = HybridRetriever(bm25_retriever=bm25_retriever, vector_retriever=vector_retriever)
70
  chat_engine = ChatEngine(hybrid_retriever)
71
  response = chat_engine.ask_question(question, llm)
 
65
  )
66
 
67
  bm25_retriever = BM25Retriever(nodes=documents, similarity_top_k=2, tokenizer=text_splitter.split_text)
68
+ vector_retriever = VectorIndexRetriever(index=index, similarity_top_k=2)
69
  hybrid_retriever = HybridRetriever(bm25_retriever=bm25_retriever, vector_retriever=vector_retriever)
70
  chat_engine = ChatEngine(hybrid_retriever)
71
  response = chat_engine.ask_question(question, llm)