RERANK_PROMPT="""Based on the query questions and the retrieved chunk, to determine whether the chunk is helpful in answering any of the query question, you can only return "YES" or "NO", without any other information.
RERANK_PROMPT="""Based on the query questions and the retrieved chunks, determine whether each chunk is helpful in answering any of the query questions. For each chunk, you must return "YES" or "NO" without any other information.
REFLECT_PROMPT="""Determine whether additional search queries are needed based on the original query, previous sub queries, and all retrieved document chunks. If further research is required, provide a Python list of up to 3 search queries. If no further research is required, return an empty list.
REFLECT_PROMPT="""Determine whether additional search queries are needed based on the original query, previous sub queries, and all retrieved document chunks. If further research is required, provide a Python list of up to 3 search queries. If no further research is required, return an empty list.
@ -140,26 +141,55 @@ class DeepSearch(RAGAgent):
f"<search> No relevant document chunks found in '{collection}'! </search>\n"
f"<search> No relevant document chunks found in '{collection}'! </search>\n"