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