Spaces:
Running
Running
Update app.py
Browse files
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=
|
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)
|