Update lib/ai_web_researcher/metaphor_basic_neural_web_search.py

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
يandCopilot committed 2025-04-08 20:31:58 +05:30
1 parent 031c94eb8f
commit dd2fb9eab0
1 file changed
+15 -3
@@ -50,10 +50,22 @@ def get_metaphor_client():
def metaphor_rag_search():
""" Mainly used for researching blog sections. """
# FIXME: Implement this.
metaphor = get_metaphor_client()
query = "blog research" # Example query, this can be parameterized as needed
results = metaphor.search(query)
if not results:
logger.error("No results found for the query.")
st.error("No results found for the query.")
return None
# Process the results (this is a placeholder, actual processing logic will depend on requirements)
processed_results = [result['title'] for result in results]
# Display the results
st.write("Search Results:")
st.write(processed_results)
return processed_results
def metaphor_find_similar(similar_url, usecase, num_results=5, start_published_date=None, end_published_date=None,
include_domains=None, exclude_domains=None, include_text=None, exclude_text=None,
summary_query=None):