diff options
| author | hrbrmstr <bob@rud.is> | 2025-07-17 08:08:31 -0400 |
|---|---|---|
| committer | hrbrmstr <bob@rud.is> | 2025-07-17 08:08:31 -0400 |
| commit | 8fc7903fe75febf648266b17357499500ee42824 (patch) | |
| tree | 915aea27541e24096281c3cf0138b789e503bd91 /2025/2025-07-17-tiny-agents-searxng.md | |
| parent | 6cb6d4ad7ff682eabcc963d2f65ff35d00950440 (diff) | |
add: prompt to searxng example
Diffstat (limited to '2025/2025-07-17-tiny-agents-searxng.md')
| -rw-r--r-- | 2025/2025-07-17-tiny-agents-searxng.md | 53 |
1 files changed, 52 insertions, 1 deletions
diff --git a/2025/2025-07-17-tiny-agents-searxng.md b/2025/2025-07-17-tiny-agents-searxng.md index 8722317..9acb4f8 100644 --- a/2025/2025-07-17-tiny-agents-searxng.md +++ b/2025/2025-07-17-tiny-agents-searxng.md @@ -1,4 +1,38 @@ -PROVIDER=openai MODEL_ID=mlx-community/Qwen2.5-7B-Instruct-1M-8bit OPENAI_BASE_URL=http://10.1.10.211:6363/v1 npx @huggingface/tiny-agents run ./ +## `PROMPT.md` + +You are a research and problem-solving agent. Continue working until the user's query is completely resolved before ending your turn. Only terminate when: +1. The problem is fully solved with verified information +2. You need additional input from the user to proceed + +## Core Principles +- **Never guess or assume** - Always use tools to gather factual information +- **Verify everything** - Cross-reference information from multiple sources +- **Plan before acting** - Think through your approach before making function calls +- **Reflect on results** - Analyze the outcomes of each tool use and adjust your strategy + +## Research Strategy +1. **Search comprehensively**: Use search tools to find current information rather than relying on training data +2. **Read deeply**: Use `web_url_read` to load full articles from the top 5 URLs in search results, not just snippets, but you MUST prefix all URLs with `https://r.jina.ai/` before sending them to `web_url_read` so you get clean markdown responses. +3. **Cross-reference**: Verify findings across multiple sources +4. **Follow leads**: Visit related links and Wikipedia articles for additional context +5. **Use specialized tools**: Leverage `get-unix-command-info` for system commands and Wikipedia tools for encyclopedic information + +## Process Flow +1. **Plan**: Outline your research approach and identify information gaps +2. **Research**: Execute searches and gather comprehensive information +3. **Analyze**: Process and synthesize findings from multiple sources +4. **Verify**: Cross-check critical information +5. **Solve**: Apply gathered information to resolve the user's query +6. **Reflect**: Ensure the solution is complete and accurate + +Always prioritize finding fresh, verified information over relying on potentially outdated training data. Balance tool usage with analytical thinking - don't rely solely on function calls, but use them strategically to inform your reasoning. Remember to prefix all URLs with `https://r.jina.ai/` before sending them to `web_url_read` so you get clean markdown responses. + +--- + +## Session + +``` +PROVIDER=openai MODEL_ID=mlx-community/Qwen2.5-7B-Instruct-1M-8bit OPENAI_BASE_URL=http://10.x.y.z:6363/v1 npx @huggingface/tiny-agents run ./ 2025-07-17 07:56:08,739 - wikipediaapi - INFO - Wikipedia: language=en, user_agent: WikipediaMCPServer/0.1.0 (https://github.com/rudra-ravi/wikipedia-mcp) (Wikipedia-API/0.8.1; https://github.com/martin-majlis/Wikipedia-API/), extract_format=1 2025-07-17 07:56:08,752 - wikipedia_mcp.__main__ - INFO - Starting Wikipedia MCP server with stdio transport 2025-07-17 07:56:08,752 - wikipedia_mcp.__main__ - INFO - Using stdio transport - suppressing direct stdout messages for MCP communication. @@ -17,10 +51,17 @@ Agent loaded with 12 tools: - get-unix-command-info - searxng_web_search - web_url_read +``` + > What key provisions are in the "Big Beautiful Bill" that was recently made into law? + + +``` searxng_web_search {"query": "Big Beautiful Bill recently made into law key provisions", "pageno": 1, "time_range": "month", "language": "en", "safesearch": "0"} Tool[searxng_web_search] null +``` + Title: WHAT THEY ARE SAYING: Senate Approves Landmark One Big Beautiful Bill – The White House Description: 2 weeks ago - We applaud Senate passage of this ... economic growth, including 100 percent bonus depreciation for business investment, immediate expensing for domestic research and development expenses and the EBITDA-based limitation on business net interest deductions.... URL: https://www.whitehouse.gov/articles/2025/07/what-they-are-saying-senate-approves-landmark-one-big-beautiful-bill/ @@ -227,6 +268,7 @@ URL: https://www.whitehouse.gov/articles/2025/07/president-trumps-one-big-beauti Title: Here's what's in the Senate's version of the 'big, beautiful bill' Description: President Donald Trump's sweeping domestic policy package that's moving through the Senate would impact virtually every American, overhauling tax, health care and energy policy. URL: https://www.nbcnews.com/politics/congress/trump-big-beautiful-bill-senate-tax-medicaid-cuts-rcna216024 +``` The "One Big Beautiful Bill" (OBBBA) is a sweeping piece of legislation that includes a variety of provisions affecting taxes, social programs, and other federal policies. Here are some key provisions: @@ -253,7 +295,9 @@ The "One Big Beautiful Bill" (OBBBA) is a sweeping piece of legislation that inc The bill is a comprehensive piece of legislation that aims to provide tax relief, increase defense and border security funding, and make significant changes to social programs and energy policy. However, it also includes provisions that are likely to be controversial, such as cuts to Medicaid and SNAP, and provisions that could impact healthcare and reproductive rights. If you have any specific questions or need more details on any of these provisions, feel free to ask! + > What does the Big Beautiful Bill say about increased resources for ICE? + The "One Big Beautiful Bill" (OBBBA) includes significant increases in funding for the Department of Homeland Security, which includes resources for the Immigration and Customs Enforcement (ICE) agency. Here are the key points regarding increased resources for ICE: 1. **Defense and Border Security Funding**: The bill includes substantial increases in funding for defense and border security, which are key priorities for the administration. This includes additional resources for ICE to enhance its operations at the border and within the United States. @@ -269,15 +313,21 @@ The "One Big Beautiful Bill" (OBBBA) includes significant increases in funding f These provisions are part of the administration's broader agenda to strengthen border security and enforcement. The bill aims to provide ICE with the resources it needs to effectively carry out its mission, including increased funding for personnel, technology, and infrastructure. If you have any specific questions or need more details on any of these provisions, feel free to ask! + > What were the specific budget allocations for ICE? + To provide you with the specific budget allocations for the Immigration and Customs Enforcement (ICE) agency under the "One Big Beautiful Bill," I will need to cross-reference the bill's text and official budget documents. The bill itself is a comprehensive piece of legislation with numerous provisions, and the budget allocations for specific agencies like ICE are detailed in the budget sections of the bill. Based on the information available, the bill includes significant increases in funding for defense and border security, which includes resources for ICE. However, the exact budget allocations for ICE are not explicitly detailed in the summary information I have. To provide you with the precise figures, I would need to review the bill's text and budget documents. Let me retrieve the specific budget allocations for ICE from the bill text and budget documents. + +``` searxng_web_search {"query": "One Big Beautiful Bill ICE budget allocation", "pageno": 1, "time_range": "month", "language": "en", "safesearch": "0"} Tool[searxng_web_search] null +``` + Title: DHS prepares for unprecedented spending surge under ‘Big, Beautiful Bill’ Description: 1 week ago - As for ICE, the bill allocates $8 billion to hire 10,000 new officers through 2029. It also includes $858 million for ICE retention and signing bonuses and $600 million to support marketing, recruiting and onboarding programs. DHS says it is now offering ICE and Border Patrol agents $10,000 ... URL: https://federalnewsnetwork.com/budget/2025/07/dhs-prepares-for-unprecedented-spending-surge-under-big-beautiful-bill/ @@ -374,6 +424,7 @@ Title: Investigating claims Trump admin's ICE funding surpasses Russia's militar Description: 1 week ago - In the summer of 2025, a rumor ... a larger budget than Russia gives its military. Although the numbers cited in these claims differed, most claimed ICE received roughly $170 or $175 billion. However, total funding actually allocated to ICE was roughly $75 billion through September 2029 under U.S. President Donald Trump's One Big Beautiful Bill Act (OBBB) ... URL: https://www.snopes.com/news/2025/07/11/trump-ice-budget-russian-military/ + Based on the information gathered from various sources, the "One Big Beautiful Bill" (OBBBA) significantly increases funding for the Immigration and Customs Enforcement (ICE) agency. Here are the specific budget allocations for ICE: 1. **$45 Billion for Detention System**: The bill allocates $45 billion for building new immigration detention centers, including family detention facilities. This represents a substantial increase in the detention system's budget. |
