Shreyas094
commited on
Commit
•
eb6b9ef
1
Parent(s):
3d67117
Update app.py
Browse files
app.py
CHANGED
@@ -477,6 +477,7 @@ def search_and_scrape(query, chat_history, num_results=5, scraper="trafilatura",
|
|
477 |
if not relevant_documents:
|
478 |
logger.warning("No relevant and unique documents found.")
|
479 |
return "No relevant and unique financial news found for the given query."
|
|
|
480 |
|
481 |
# Step 4: Rerank documents based on similarity to query
|
482 |
reranked_docs = rerank_documents(rephrased_query, relevant_documents)
|
|
|
477 |
if not relevant_documents:
|
478 |
logger.warning("No relevant and unique documents found.")
|
479 |
return "No relevant and unique financial news found for the given query."
|
480 |
+
logger.debug(f"Assessment result: {assessment}")
|
481 |
|
482 |
# Step 4: Rerank documents based on similarity to query
|
483 |
reranked_docs = rerank_documents(rephrased_query, relevant_documents)
|