An LLM-powered knowledge curation system that researches a topic and generates a full-length report with citations.
Python agentic-ragdeep-researchemnlp2024knowledge-curationlarge-language-modelsnaaclnlpreport-generationretrieval-augmented-generation
Cleaning up formatting after merging from upstream.
Hanly De Los Santos1c23baf81d4e
diff --git a/knowledge_storm/rm.py b/knowledge_storm/rm.pyindex 6d0d2d1..fb4412c 100644--- a/knowledge_storm/rm.py+++ b/knowledge_storm/rm.py@@ -405,6 +405,7 @@ class VectorRM(dspy.Retrieve):return collected_results+class SerperRM(dspy.Retrieve):"""Retrieve information from custom queries using Serper.dev."""@@ -550,7 +551,8 @@ class SearXNG(dspy.Retrieve):searxng_api_url (str): The URL of the SearXNG API.searxng_api_key (str, optional): The API key for the SearXNG API. Defaults to None.k (int, optional): The number of top passages to retrieve. Defaults to 3.- is_valid_source (Callable, optional): A function that takes a URL and returns a boolean indicating if the source is valid. Defaults to None.+ is_valid_source (Callable, optional): A function that takes a URL and returns a boolean indicating if the+ source is valid. Defaults to None."""super().__init__(k=k)if not searxng_api_url:@@ -605,4 +607,4 @@ class SearXNG(dspy.Retrieve):except Exception as e:logging.error(f'Error occurs when searching query {query}: {e}')- return collected_results\ No newline at end of file+ return collected_results