Skip to content

This is a Deep Rsearch Sample - revised from Hugging Face's smol agents example for open deep search.

Notifications You must be signed in to change notification settings

usathyan/hfDeepResearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hfDeepResearch

This project is for deep research using smolagents.

Installation

You will need to set these ENV variables (and therefore API keys from external microservices)

  • SERPAPI_API_KEY (Get it from serpapi)
  • SMOL_KEY (openrouter.ai key - You can swap out the code to your model of choice)
uv venv
source source .venv/bin/activate
uv sync

Usage

Example usage (replace with your specific script and arguments)

python src/assistant.py --question "YHow long will it take a cheetah to go from Clinton, NJ to Lawrenceville, NJ"

Run#1 Final answer:

Given the detailed information provided, it does not appear that there is a specific, stated average speed for a cheetah in sustained runs over long distances. Cheetahs are known for their ability to reach speeds greater than 70 miles per hour in short bursts, crucially needing to catch their prey within 30 seconds because they cannot maintain their maximum speed for longer durations. Given this, and the distance between Clinton, NJ, and Lawrenceville, NJ being approximately 31 miles, it would be unrealistic to estimate a specific travel time for a cheetah over this distance without making broad and largely speculative assumptions about their sustained running speed over such a distance. Cheetahs' peak speeds and rapid acceleration are suited for short, high-speed chases rather than sustained long-distance travel. Therefore, calculating a precise time for a cheetah to travel between these two locations cannot be accurately determined with the available data.

Run#2 Final answer:

With the road distance between Clinton, NJ, and Lawrenceville, NJ being about 31 miles, and the average running speed of a cheetah at 40 mph, the travel time can be calculated.

Calculating the time (T) using the formula Time = Distance/Speed, we have:

T = 31 miles / 40 mph = 0.775 hours.

To convert the time to minutes, we multiply by 60:

0.775 hours * 60 = 46.5 minutes.

This calculation is based on the cheetah running consistently at its average speed without accounting for any necessary rests or deceleration for turns or obstacles.

Therefore, under ideal running conditions, it would take a cheetah approximately 46.5 minutes to travel from Clinton, NJ to Lawrenceville, NJ.

Notes

  • I am using an openai models, looks like thats the only model that works with this package? None of the other tool calling models seem to work.
  • I tried several questions, and based on how this agent works, it is not an operator despite the benchmark claims.
  • It is not production ready, there are plenty of things in the code base that needs hardening/optimizations/features etc.

About

This is a Deep Rsearch Sample - revised from Hugging Face's smol agents example for open deep search.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages