Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
@@ -185,7 +185,7 @@ class WikiInputs(BaseModel):
|
|
185 |
"""Inputs to the wikipedia tool."""
|
186 |
query: str = Field(description="query to look up in Wikipedia, should be 3 or less words")
|
187 |
|
188 |
-
api_wrapper = WikipediaAPIWrapper(top_k_results=
|
189 |
|
190 |
wiki_tool = WikipediaQueryRun(
|
191 |
name="wiki-tool",
|
|
|
185 |
"""Inputs to the wikipedia tool."""
|
186 |
query: str = Field(description="query to look up in Wikipedia, should be 3 or less words")
|
187 |
|
188 |
+
api_wrapper = WikipediaAPIWrapper(top_k_results=2)#, doc_content_chars_max=100)
|
189 |
|
190 |
wiki_tool = WikipediaQueryRun(
|
191 |
name="wiki-tool",
|