Skip to content

feat: Add max_results kwarg to DDGS tool #40

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 2 commits into from
Jan 6, 2025

Conversation

Stillerman
Copy link
Contributor

You can now optionally pass max_results into the DuckDuckGoSearchTool. Default behavior is unchanged (10 results).

DuckDuckGoSearchTool(max_results=2)

Test with examples/ddg_leopard.py

@aymeric-roucher
Copy link
Contributor

Thank you @Stillerman, this is a good addition! Coud you simply remove the added example file ddgs_leopard.py? I want to keep only examples that highlight complex behaviours, to keep their information content high. Then we're good to merge!

@aymeric-roucher aymeric-roucher merged commit eae4b6f into huggingface:main Jan 6, 2025
@aymeric-roucher
Copy link
Contributor

I've done the deletion and merged, thank you @Stillerman !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants