Spaces:
Runtime error
Runtime error
fix: Fix import path for AnalyzerResult and adjust search result limit in GoogleSearch
Browse files
src/__init__.py
ADDED
|
File without changes
|
src/mcp_servers/web_search_server.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from typing import Optional
|
| 2 |
from mcp.server.fastmcp import FastMCP
|
| 3 |
|
| 4 |
-
from models.analyzer_models import AnalyzerResult
|
| 5 |
from src.tools import (
|
| 6 |
custom_sites_search_tool,
|
| 7 |
custom_domains_search_tool,
|
|
|
|
| 1 |
from typing import Optional
|
| 2 |
from mcp.server.fastmcp import FastMCP
|
| 3 |
|
| 4 |
+
from src.models.analyzer_models import AnalyzerResult
|
| 5 |
from src.tools import (
|
| 6 |
custom_sites_search_tool,
|
| 7 |
custom_domains_search_tool,
|
src/searcher/open_google_search.py
CHANGED
|
@@ -73,7 +73,7 @@ class GoogleSearch(SearchInterface):
|
|
| 73 |
full_query = f"{query} {domain_restriction}"
|
| 74 |
|
| 75 |
# 2. Execute the search
|
| 76 |
-
result = search(full_query, num_results=
|
| 77 |
|
| 78 |
# 3. Check for returned result
|
| 79 |
items = [
|
|
|
|
| 73 |
full_query = f"{query} {domain_restriction}"
|
| 74 |
|
| 75 |
# 2. Execute the search
|
| 76 |
+
result = search(full_query, num_results=3, advanced=True)
|
| 77 |
|
| 78 |
# 3. Check for returned result
|
| 79 |
items = [
|