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
[SerperRM Bug] valid_url_to_snippets.get(url, {}) get none value. call strip function will be fix it. just like url.strip("\'"). format code and commit.
Eminemd7d8f4086c64
diff --git a/knowledge_storm/rm.py b/knowledge_storm/rm.pyindex 19c64e0..a983627 100644--- a/knowledge_storm/rm.py+++ b/knowledge_storm/rm.py@@ -537,7 +537,9 @@ class SerperRM(dspy.Retrieve):snippets = [organic.get("snippet")]if self.ENABLE_EXTRA_SNIPPET_EXTRACTION:snippets.extend(- valid_url_to_snippets.get(url.strip("\'"), {}).get("snippets", [])+ valid_url_to_snippets.get(url.strip("'"), {}).get(+ "snippets", []+ ))collected_results.append({