update0801
Browse files
app.py
CHANGED
@@ -379,7 +379,7 @@ def chatbot_response(message, history, window_size, threshold, user_weight, trig
|
|
379 |
#数据库检索,双方平均方式
|
380 |
# distance, ad_summary, ad_keywords = get_response_from_db(keywords_dict, class_name="ad_DB02")
|
381 |
#数据库索引,数据库关键词平均方式
|
382 |
-
candidates=get_candidates_from_db(keywords_dict, class_name="
|
383 |
|
384 |
#先对候选集的distance进行筛选,保留小于threshold的
|
385 |
candidates.sort(key=lambda x:x['distance'])
|
|
|
379 |
#数据库检索,双方平均方式
|
380 |
# distance, ad_summary, ad_keywords = get_response_from_db(keywords_dict, class_name="ad_DB02")
|
381 |
#数据库索引,数据库关键词平均方式
|
382 |
+
candidates=get_candidates_from_db(keywords_dict, class_name="Ad_DB03",limit=candidate_length)
|
383 |
|
384 |
#先对候选集的distance进行筛选,保留小于threshold的
|
385 |
candidates.sort(key=lambda x:x['distance'])
|