kanninian commited on
Commit
422ef46
·
verified ·
1 Parent(s): 6e9be0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -78,8 +78,6 @@ def insert_to_qdrant(docs_with_embeddings):
78
  insert_to_qdrant(docs_with_embeddings)
79
 
80
 
81
- # from qdrant_client.models import Filter, FieldCondition
82
-
83
  def hybrid_search(query, top_k=5):
84
  query_vector = embedding_model.embed_query(query)
85
 
@@ -159,7 +157,6 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
159
  except Exception as e:
160
  return f"[錯誤] {str(e)}"
161
 
162
- # Gradio chat 介面
163
  chat_interface = gr.ChatInterface(
164
  fn=respond,
165
  title="Chatbot問答系統 - RAG Demo",
 
78
  insert_to_qdrant(docs_with_embeddings)
79
 
80
 
 
 
81
  def hybrid_search(query, top_k=5):
82
  query_vector = embedding_model.embed_query(query)
83
 
 
157
  except Exception as e:
158
  return f"[錯誤] {str(e)}"
159
 
 
160
  chat_interface = gr.ChatInterface(
161
  fn=respond,
162
  title="Chatbot問答系統 - RAG Demo",