8000 change: reduce number of results for tavily by default to avoid exceeding the context window by iwilltry42 · Pull Request #475 · obot-platform/tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

change: reduce number of results for tavily by default to avoid exceeding the context window #475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions search/tavily/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def main():
if command == "safe-search":
include_domains = check_allowed_include_domains(include_domains)

max_results = 20 # broader search if general,
max_results = 10 # broader search if general,
if len(include_domains) > 0:
max_results = 5 * len(
max_results = 3 * len(
include_domains
) # more narrow search if scoped to specific sites
if os.getenv("MAX_RESULTS", "").strip():
Expand Down
Loading
0