broadfield-dev commited on
Commit
19e0629
·
verified ·
1 Parent(s): a7c55d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -151,7 +151,7 @@ def search():
151
  return jsonify({"categorized_articles": {}, "has_articles": False, "loading": False})
152
 
153
  try:
154
- results = vector_db.similarity_search_with_relevance_scores(query, k=50, score_threshold=0.7)
155
  enriched_articles = format_articles_from_db_results(results)
156
 
157
  categorized_articles = {}
 
151
  return jsonify({"categorized_articles": {}, "has_articles": False, "loading": False})
152
 
153
  try:
154
+ results = vector_db.similarity_search_with_relevance_scores(query, k=50, score_threshold=0.5)
155
  enriched_articles = format_articles_from_db_results(results)
156
 
157
  categorized_articles = {}