Update langgraph_agent.py
Browse files- langgraph_agent.py +1 -1
langgraph_agent.py
CHANGED
@@ -49,7 +49,7 @@ def modulus(a: int, b: int) -> int:
|
|
49 |
def wiki_search(query: str) -> dict:
|
50 |
"""Search Wikipedia for a query and return up to 2 documents."""
|
51 |
try:
|
52 |
-
docs = WikipediaLoader(query=query, load_max_docs=
|
53 |
if not docs:
|
54 |
return {"wiki_results": f"No documents found on Wikipedia for '{query}'."}
|
55 |
formatted = "\n\n---\n\n".join(
|
|
|
49 |
def wiki_search(query: str) -> dict:
|
50 |
"""Search Wikipedia for a query and return up to 2 documents."""
|
51 |
try:
|
52 |
+
docs = WikipediaLoader(query=query, load_max_docs=5, lang="en", doc_content_chars_max=7000).load()
|
53 |
if not docs:
|
54 |
return {"wiki_results": f"No documents found on Wikipedia for '{query}'."}
|
55 |
formatted = "\n\n---\n\n".join(
|