2025-11-01

Do Local AI Agents Dream of Electric Sheep? (Improving Web Search)

Notes
This article was translated by GPT-5.2-Codex. The original is here.

Quick recap

In the previous article, we implemented a web_search tool using DuckDuckGo in mastra, and enabled gpt-oss:20b to recognize and use it. However, with a simple prompt like the following, the search did not behave as expected.

Loading code...

Toward improving the web search agent

In this article, we will try several system prompts to learn how to control LLM behavior. Right now, the agent passes the user's question directly to web_search, so we will implement logic that derives better queries and answers based on the results.

For the time being, the goal of this series is to make the agent produce answers following the prompt below.

Loading code...

reading-plus-ai/mcp-server-deep-research

To make the prompt above work, it's not enough to just search with better keywords. We also need to access web pages from search results, parse HTML, and provide the main text to the LLM.

It might be easy to do this in Python with existing frameworks, but this series aims to avoid ready‑made solutions. We want to build it ourselves to experience the difficulties and necessary tricks of LLM‑based development. So please don't say "just use XXX, it's easy" 😡

Generating better search queries

First, let's make sure the web_search tool receives appropriate queries derived from the user's question.

Reasoning Effort

The most obvious lever is improving the system prompt, but gpt-oss:20b has a setting called Reasoning Effort, so let's try that first. Reasoning Effort has three levels: low, medium, high. The higher it is, the deeper the model's "thinking." "Deeper thinking" means it consumes tokens to insert intermediate reasoning steps before producing the final answer. It sounds like high would be best, but with maximum context length and high Reasoning Effort, I observed the model getting stuck in an infinite reasoning loop. So we'll compare low and medium here.

The comparison uses this prompt:

instructionstxt
1
You are a helpful web search assistant who helps users find information on the internet.
2
Use webSearchTool to search the web, and based on the results, provide accurate and concise answers to user questions.

How to change Reasoning Effort

In LM Studio, open the model list, click the gear icon, and open the model settings tab.

Select "Custom Fields" and change "Reasoning Effort" from Low to Medium using the dropdown.

Reload the model for the change to take effect.

Reasoning Effort: low

When running gpt-oss:20b with Reasoning Effort set to low via mastra, the result was as follows.

今日の日本のニュースを教えて

Reasoning

Need to search web.Need summarize top news.

webSearchToolCompleted

Parameters

{
  "query": "今日の日本のニュース"
}

Result

{
  "results": [
    {
      "title": "Yahoo!ニュース",
      "url": "https://news.yahoo.co.jp/",
      "description": "Yahoo!ニュースは、新聞・通信社が配信するニュースのほか、映像、雑誌や個人の書き手が執筆する記事など多種多様なニュースを掲載しています。"
    },
    {
      "title": "速報・新着ニュース一覧:朝日新聞",
      "url": "https://www.asahi.com/news/",
      "description": "朝日新聞のデジタル版「速報・新着ニュース一覧」ページです。 政治、経済、社会、国際、スポーツ、文化、科学などの速報記事をお届けします。"
    },
    {
      "title": "今日のニュース - ライブドアニュース",
      "url": "https://news.livedoor.com/straight_news/",
      "description": "フジ「酒のツマミ…」年内で終了へ「大悟怒りの降板」お蔵入り納得いかず 放送を終了することが29日に分かったと、スポニチが報じた"
    },
    {
      "title": "今日の ニュース - Google News",
      "url": "https://news.google.com/?hl=ja&ceid=JP:ja",
      "description": "Google ニュースが世界中のニュース提供元から集約した広範囲にわたる最新情報"
    },
    {
      "title": "新着ニュース一覧 | Tbs News Dig",
      "url": "https://newsdig.tbs.co.jp/list/latest",
      "description": "TBS系JNN28局のニュースサイト、「TBS NEWS DIG」は、国内外の取材網を生かし、いち速く正確な情報・動画と、より深い調査報道・より分かりやすい解説で、社会の関心に応えます。"
    },
    {
      "title": "24時間ライブ配信中|日テレnews24|日テレnews Nnn ...",
      "url": "https://news.ntv.co.jp/live",
      "description": "最新ニュースを24時間ライブ配信しています。"
    },
    {
      "title": "ニュース速報 : 独自取材網による最新記事一覧 : 読売新聞",
      "url": "https://www.yomiuri.co.jp/news/",
      "description": "速報ニュースを国内、スポーツ、政治、経済、国際、環境などジャンル別の記事で紹介。"
    },
    {
      "title": "テレ朝NEWS|テレビ朝日のニュースサイト",
      "url": "https://news.tv-asahi.co.jp/",
      "description": "速報やライブ配信、ニュースまとめや解説記事で話題の出来事をいち早く、わかりやすくお届けします。"
    },
    {
      "title": "47news - 52新聞社と共同通信の総合ニュースサイト",
      "url": "https://www.47news.jp/",
      "description": "全国47都道府県・52参加新聞社と共同通信の内外ニュース。地方創生・写真・動画。地域の文化や活力を発信。野球、サッカー、ゴルフなど ..."
    },
    {
      "title": "産経ニュース",
      "url": "https://www.sankei.com/",
      "description": "産経新聞社のニュースサイト。政治、経済、国際、社会、スポーツ、エンタメ、災害情報などの速報記事と解説記事を掲載しています。NBA ..."
    }
  ]
}

以下は、2025年11月1日現在の日本国内で注目されている主要ニュースです。(※各サイトはリアルタイム更新のため、詳細はリンク先でご確認ください)

項目内容主要メディア
政治・経済内閣総理大臣が新たな「デジタル庁」設立を発表。政府は行政手続きのデジタル化とAI活用を加速させる方針。朝日新聞、毎日新聞
日本銀行が金融政策を再検討。金利引き上げの可能性とインフレ対策が議論される。日本経済新聞
社会・災害東北地方で大雨警報発令。河川氾濫の恐れがあるため、避難勧告が出される。NHK、Yahoo!ニュース
福岡市で大規模な交通事故。3名が負傷し、道路は一時閉鎖。産経ニュース
国際日米首脳会談。貿易・安全保障を中心に合意が進む。日本経済新聞、朝日新聞
中国の新型ウイルス検出。日本政府は追加検疫措置を検討中。NHK、朝日新聞
文化・スポーツ東京オリンピック記念式典。選手たちが再び国際舞台へ。日本スポーツ新聞
日本映画祭で「未来の光」が大賞受賞。国内外から注目。映画情報サイト

主要ニュースの詳細は以下のリンクで確認できます:

Even from the visible part, there are four problems:

  1. The tool input query is passed as an unprocessed string like "today's news in Japan"
  2. When you open Reasoning, the Chain‑of‑Thought is shallow, e.g. "Need to search web. Need summarize top news."
  3. The answer contains hallucinations
  4. The prompt's "accurate and concise answer" instruction is not followed

For point 3, the answer lists news that have nothing to do with the RESULT shown in webSearchTool. Worse, it outputs plausible past events (likely from training data), not pure nonsense.

Reasoning Effort: high

Now let's set Reasoning Effort to high and try the same prompt.

今日の日本のニュースを教えて

Reasoning

User wants today's Japanese news. Need to search web. Use webSearchTool with query "今日の日本のニュース" or similar.The user asked: "今日の日本のニュースを教えて" meaning "Tell me today's Japanese news." We need to provide a concise answer. The web search results are generic sites, not specific articles. We might need to fetch a specific news article from one of these sites. But the search results didn't provide direct content. We could use a news API? But we only have webSearchTool.

We can search for "今日の日本ニュース 2025-11-02" to get today's news. Let's search again with date.The user asked: "今日の日本のニュースを教えて" (Tell me today's Japanese news). We need to provide a concise answer with current news. The assistant should browse the web for up-to-date news. We used webSearchTool but got generic results, not specific articles. We need to search for "2025-11-02 日本 ニュース" or similar. The tool returned generic sites, not specific news items.

We might need to refine query: "2025年11月2日 日本 ニュース" or "今日の日本ニュース 2025-11-02". Let's try again.The user asked: "今日の日本のニュースを教えて" meaning "Tell me today's Japanese news." We need to provide current news. The assistant should browse the web for up-to-date news. The search results are generic sites, not specific articles. We need to fetch a current news article. Maybe use Google News or Yahoo! Japan news site and parse top stories.

We can search "2025-11-02 日本 ニュース" but the results are not specific. We might need to fetch from a news site like Yahoo! Japan or NHK.

We can search "2025年11月2日 日本 ニュース" but the results show generic. We might need to use a news API? But we only have webSearchTool.

We can search "2025-11-02 site:news.yahoo.co.jp" to get specific. Let's try.

We need to answer: "今日の日本のニュースを教えて" meaning today's Japanese news. Today is 2025-11-02? The assistant's date is 2025-11-02. We need to provide current news. Use search results for today's date. The Yahoo article about RISE WORLD SERIES 2025 FINAL on 11/2. Also other news: Tomorrow X Together added shows, JR East night operation, etc.

We should summarize top stories. Provide links. Use Japanese language.

webSearchToolCompleted

Parameters

{
  "query": "今日の日本のニュース"
}

Result

{
  "results": [
    {
      "title": "Yahoo!ニュース",
      "url": "https://news.yahoo.co.jp/",
      "description": "Yahoo!ニュースは、新聞・通信社が配信するニュースのほか、映像、雑誌や個人の書き手が執筆する記事など多種多様なニュースを掲載しています。"
    },
    {
      "title": "速報・新着ニュース一覧:朝日新聞",
      "url": "https://www.asahi.com/news/",
      "description": "朝日新聞のデジタル版「速報・新着ニュース一覧」ページです。 政治、経済、社会、国際、スポーツ、文化、科学などの速報記事をお届けします。"
    },
    {
      "title": "今日の ニュース - Google News",
      "url": "https://news.google.com/?hl=ja&ceid=JP:ja",
      "description": "Google ニュースが世界中のニュース提供元から集約した広範囲にわたる最新情報"
    },
    {
      "title": "ニュース速報 : 独自取材網による最新記事一覧 : 読売新聞",
      "url": "https://www.yomiuri.co.jp/news/",
      "description": "速報ニュースを国内、スポーツ、政治、経済、国際、環境などジャンル別の記事で紹介。"
    }
  ]
}
webSearchToolCompleted

Parameters

{
  "query": "2025-11-02 日本 ニュース 今日"
}

Result

{
  "results": [
    {
      "title": "Yahoo!ニュース",
      "url": "https://news.yahoo.co.jp/",
      "description": "Yahoo!ニュースは、新聞・通信社が配信するニュースのほか、映像、雑誌や個人の書き手が執筆する記事など多種多様なニュースを掲載しています。"
    },
    {
      "title": "毎日新聞デジタル | 毎日新聞のニュースサイト",
      "url": "https://mainichi.jp/",
      "description": "毎日新聞デジタルは毎日新聞のニュースサイト。 政治、経済、国際、事件、話題、スポーツなどの速報、写真、動画、英語版(The Mainichi)を掲載 ..."
    },
    {
      "title": "Nhkニュース 速報・最新情報",
      "url": "https://news.web.nhk/newsweb",
      "description": "国内外の取材網を生かし、さまざまな分野のニュースをいち早く、正確にお伝えします。"
    }
  ]
}
webSearchToolCompleted

Parameters

{
  "query": "2025年11月2日 日本 ニュース"
}

Result

{
  "results": [
    {
      "title": "毎日新聞デジタル | 毎日新聞のニュースサイト",
      "url": "https://mainichi.jp/",
      "description": "毎日新聞デジタルは毎日新聞のニュースサイト。 政治、経済、国際、事件、話題、スポーツなどの速報、写真、動画、英語版(The Mainichi)を掲載 ..."
    },
    {
      "title": "2025年 主要ニュース・未来ニュース予定 | 報道写真・ニュース ...",
      "url": "https://imagelink.kyodonews.jp/top-news/2025/",
      "description": "共同通信イメージズが選んだ「過去の主なニュース」と「未来のニュース予定」をまとめています。"
    }
  ]
}
webSearchToolCompleted

Parameters

{
  "query": "2025-11-02 site:news.yahoo.co.jp 日本"
}

Result

{
  "results": [
    {
      "title": "【RISE】11・2両国大会のメインは-61.5kgトーナメント決勝戦の中村寛vs.エン・ペンジェー",
      "url": "https://news.yahoo.co.jp/articles/12eed26e0982ea60ea3906e543736f89211c0d96",
      "description": "2025年11月2日(日)東京・両国国技館『RISE WORLD SERIES 2025 FINAL』の全対戦カード&試合順が発表された。"
    },
    {
      "title": "Tomorrow X Together、日本ドームツアー追加公演を発表",
      "url": "https://news.yahoo.co.jp/articles/662ab2aa876ee286db373cbfd277c9267f8fadb4",
      "description": "TOMORROW X TOGETHER が、2025年11月から開催する日本ドームツアーの追加公演を発表した。"
    },
    {
      "title": "JR東日本が2025年度の終夜運転を発表!",
      "url": "https://news.yahoo.co.jp/expert/articles/3c4444eec949f18de7193dfcb0be5744f8ce1f3d",
      "description": "JR東日本は、2025年大晦日から2026年元旦にかけて首都圏の主要路線で終夜運転を行うことを発表した。"
    }
  ]
}

2025 年 11 月 2 日(今日)の主な日本ニュース

時間帯見出し内容の要約参考リンク
午前RISE WORLD SERIES 2025 FINAL 開催決定東京・両国国技館で開催されるRISEの最終戦が決定。メインは61.5 kgトーナメントの中村寛 vs エン・ペンジェー。試合順やカードが公開され、ファンの期待が高まる。https://news.yahoo.co.jp/articles/12eed26e0982ea60ea3906e543736f89211c0d96
午前Tomorrow X Together、ドームツアー追加公演を発表2025年11月から日本ドームツアー「TOMORROW X TOGETHER WORLD TOUR <ACT : TOMORROW> IN JAPAN」の追加公演が決定。ファンは新たなライブ日程を楽しみに。https://news.yahoo.co.jp/articles/662ab2aa876ee286db373cbfd277c9267f8fadb4
午後JR東日本、終夜運転を実施2025年大晦日から2026年元旦にかけて、首都圏主要路線で終夜運転を行うことが発表。山手線(内回り)などで「年越し大回り乗車」が可能に。https://news.yahoo.co.jp/expert/articles/3c4444eec949f18de7193dfcb0be5744f8ce1f3d
午後日本代表、キリンチャレンジカップ2025でボリビア代表と対戦日本サッカー協会(JFA)が、11月に開催されるキリンチャレンジカップ2025で日本代表がボリビア代表と対戦することを発表。国立競技場で全国生中継。https://news.yahoo.co.jp/articles/e4d248179dc18ec7bc8b40baed0d99ef22e25068
午後Wellness Tokyo 2025 が開催決定日本最大級の健康産業総合展「Wellness Tokyo 2025」が11月26日〜28日に開催。ヨガ・ピラティスなどの大型イベントも同時に実施される。https://news.yahoo.co.jp/articles/aad0f0a6eebd826e8e6ed1264aafa5923e997fa1
天候予報:高温傾向に終止符?気象庁が10月〜12月の3か月予報を発表。11月以降、急な寒さで日本海側に大雪が予想される。https://news.yahoo.co.jp/articles/622de00f0f36365b217a142df776de6d9643f897

まとめ

  • スポーツ:RISEの最終戦と日本代表サッカーの対戦が注目。
  • エンタメ:Tomorrow X Together の追加公演とWellness Tokyo 2025 が話題。
  • 交通:JR東日本の終夜運転で年末年始の移動が便利に。
  • 天候:11月以降、急激な寒さと大雪が予想されるため、外出時は注意を。

ご興味のある記事があれば、上記リンクから詳細をご確認ください。

A major difference is that webSearchTool is called four times. The query strings were:

  • 今日の日本のニュース
  • 2025-11-02 日本 ニュース 今日
  • 2025年11月2日 日本 ニュース
  • 2025-11-02 site:news.yahoo.co.jp 日本

These tool calls are not executed all at once; they happen when the model decides they are needed while generating reasoning tokens. Let's look at the Reasoning content.

Loading code...

In the Japanese translation, there are lines that look like silly tautologies, but if you check the English you can see the model reinterprets the Japanese prompt into English. gpt-oss seems to think in English even when the prompt is Japanese. It tries to fetch details, but it only has webSearchTool, so it keeps changing the prompt and re‑querying. Later it switches to targeting specific websites and lands on domain‑restricted searches, then summarizes results.

This is the effect of changing Reasoning Effort from low to medium. However, it still fails to fetch news newer than 2025‑11‑02. This is probably because we don't have a tool to fetch web page contents.

For translating the reasoning, I used PLaMo Translation.

Improving the prompt

Next, we improve the prompt. The implementation up to the previous article is in the GitHub repository.

Here we re‑quote only the web search agent part.

web-search-agent.tstypescript
1
import { Memory } from "@mastra/memory";
2
import { ollama } from "../../config/providers";
3
import { LibSQLStore } from "@mastra/libsql";
4
import { Agent } from "@mastra/core/agent";
5
import { webSearchTool } from "../tools/web-search-tool";
6
7
export const webSearchAgent = new Agent({
8
name: 'Web Search Agent',
9
instructions: `
10
You are a helpful web search assistant that can help users find information on the web.
11
When the user asks for information, you should use the webSearchTool to search the web for information.
12
`,
13
// model: lmstudio("openai/gpt-oss-20b"),
14
model: ollama("gpt-oss:20b"),
15
tools: { webSearchTool },

Improving the system prompt means changing the instructions string in this code. Many problems come from not being able to inspect page content, so here we change the prompt to say that if you can't answer, you must say so.

Loading code...

With this prompt, the conversation looked like this:

今日の日本のニュースを教えて

Reasoning

User asks: "今日の日本のニュースを教えて" meaning "Tell me today's Japanese news". We need to use webSearchTool. Search query: "今日の日本のニュース" or "2025-11-02 日本 ニュース". Let's search.We need to answer: "今日の日本のニュースを教えて" meaning "Tell me today's Japanese news." We need to use webSearchTool. The search results show generic sites like Yahoo!ニュース, NHK, etc. But we need specific news for today (2025-11-02). The search results didn't provide a specific article. We might need to refine query: "2025年11月2日 日本ニュース" Let's search again.We need to answer: "今日の日本のニュースを教えて" meaning today's Japanese news. We have search results but not specific news content due to description only. The instruction: "検索結果に基づいて、ユーザーの質問に対する正確で簡潔な回答を提供してください。 検索結果の description 以上の情報は入手できません。 - description で情報が不十分な場合は、その旨をユーザーに伝えてください。"

We need to provide answer with sources. We have some results: Asahi Shimbun article list for 2025-11-02, Yahoo news site, NHK news, etc. But we need specific news items. The description of Asahi article list: "朝日新聞のデジタル版「2025年11月02日の朝刊記事一覧」のページです中韓首脳、北朝鮮非核化に温度差 李氏「南北対話再開へ期待」 習氏は役割 ..." So we can mention that. Also maybe other news: "大谷翔平所属ドジャースvsブルージェイズ" but that's sports. We can provide a summary: Asahi Shimbun list includes topics like South Korean and North Korean leaders, nuclear issues. Also mention sports news about MLB World Series.

We need to provide answer with sources URLs. Use description info only. Provide concise answer: "今日の日本ニュースは、朝日新聞では中韓首脳会談や北朝鮮非核化の動き、習近平氏の役割などが報じられています。また、スポーツではMLBワールドシリーズで大谷翔平が活躍しています。"

We must cite sources: Asahi Shimbun page, Sportingnews article. Provide URLs.

Let's craft answer.

webSearchToolCompleted

Parameters

{
  "query": "今日の日本のニュース 2025-11-02"
}

Result

{
  "results": [
    {
      "title": "【リアルタイム速報】大谷翔平所属ドジャースvsブルージェイズ ...",
      "url": "https://www.sportingnews.com/jp/mlb/news/2025-10-29-ws-dodgers-bluejays-live-score-highlights/8d50ae6a682dda2fa3ae874c",
      "description": "日本時間11月2日(日)、大谷翔平&山本由伸&佐々木朗希所属のロサンゼルス・ドジャースとトロント・ブルージェイズによるMLB 2025ワールド ..."
    },
    {
      "title": "【11月2日】ブルージェイズ対ドジャース第7戦のテレビ放送 ...",
      "url": "https://www.goal.com/jp/%E3%83%8B%E3%83%A5%E3%83%BC%E3%82%B9/final-of-mlb-world-series-7th-match-tv-streaming-bluejays-dodgers-20251102/blt6d0feb8e2007ea2b",
      "description": "【11月2日】ブルージェイズ対ドジャース第7戦のテレビ放送・無料中継・ネット配信|MLB (メジャーリーグ)ワールドシリーズ2025 大谷翔平出場予定!"
    },
    {
      "title": "Yahoo!ニュース",
      "url": "https://news.yahoo.co.jp/",
      "description": "Yahoo!ニュースは、新聞・通信社が配信するニュースのほか、映像、雑誌や個人の書き手が執筆する記事など多種多様なニュースを掲載しています。"
    },
    {
      "title": "現代では大谷翔平しか不可能? Wsでこじ開けた扉…44年ぶりの ...",
      "url": "https://full-count.jp/2025/11/02/post1858163/",
      "description": "現代では大谷翔平しか不可能? WSでこじ開けた扉…44年ぶりの偉業達成 大谷翔平 2025.11.02 ブルージェイズ戦の5回に安打を放ったドジャース・大谷翔平【写真:荒川祐史】"
    },
    {
      "title": "Nhkニュース 速報・最新情報",
      "url": "https://news.web.nhk/newsweb",
      "description": "国内外の取材網を生かし、さまざまな分野のニュースをいち早く、正確にお伝えします。 ニュース速報はもちろん、現場の記者が執筆した読み応えのある深掘りコンテンツや、NHKならではの豊富な動画コンテンツも。"
    },
    {
      "title": "毎日新聞デジタル | 毎日新聞のニュースサイト",
      "url": "https://mainichi.jp/",
      "description": "政治、経済、国際、事件、話題、スポーツなどの速報、写真、動画、英語版(The Mainichi)を掲載しています。"
    },
    {
      "title": "今日の ニュース - Google News",
      "url": "https://news.google.com/?taa=1&hl=ja&ceid=JP:ja",
      "description": "Google ニュースが世界中のニュース提供元から集約した広範囲にわたる最新情報"
    },
    {
      "title": "今日のこよみ・今週のこよみ 2025年11月2日(日) - Msn",
      "url": "https://www.msn.com/ja-jp/news/national/%E4%BB%8A%E6%97%A5%E3%81%AE%E3%81%93%E3%82%88%E3%81%BF-%E4%BB%8A%E9%80%B1%E3%81%AE%E3%81%93%E3%82%88%E3%81%BF-2025%E5%B9%B411%E6%9C%882%E6%97%A5-%E6%97%A5/ar-AA1PDvAJ",
      "description": "2025/11/02 05:00 ウェザーニュース 2025年11月2日(日) 旧暦9月13日 先負 乙亥(きのと い) 十二直 のぞく 十三夜 潮回り 中潮 正午月齢 11.6 正午月相 10.3 ..."
    },
    {
      "title": "朝日新聞:朝日新聞社のニュースサイト",
      "url": "https://www.asahi.com/",
      "description": "政治、経済、社会、国際、スポーツ、文化、科学などの速報ニュースに加え、教育、医療、環境などの話題や写真も。"
    },
    {
      "title": "ライブ|テレ朝NEWS",
      "url": "https://news.tv-asahi.co.jp/news-lives/",
      "description": "ライブニュースや緊急配信をリアルタイムでお届け。テレ朝NEWSでは政治・経済・社会・国際からスポーツ・エンタメまで、わかりやすい解説と ..."
    }
  ]
}
webSearchToolCompleted

Parameters

{
  "query": "2025年11月2日 日本ニュース"
}

Result

{
  "results": [
    {
      "title": "2025年11月02日朝刊記事一覧:朝日新聞",
      "url": "https://www.asahi.com/shimen/20251102/",
      "description": "朝日新聞のデジタル版「2025年11月02日の朝刊記事一覧」のページです中韓首脳、北朝鮮非核化に温度差 李氏「南北対話再開へ期待」 習氏は役割 ..."
    },
    {
      "title": "【リアルタイム速報】大谷翔平所属ドジャースvsブルージェイズ ...",
      "url": "https://www.sportingnews.com/jp/mlb/news/2025-10-29-ws-dodgers-bluejays-live-score-highlights/8d50ae6a682dda2fa3ae874c",
      "description": "日本時間11月2日(日)、大谷翔平&山本由伸&佐々木朗希所属のロサンゼルス・ドジャースとトロント・ブルージェイズによるMLB 2025ワールド ..."
    },
    {
      "title": "【ライブ】最新天気ニュース・地震情報 2025年11月2日 (日 ...",
      "url": "https://www.youtube.com/watch?v=-uGpgy4uLOs",
      "description": "【ライブ】最新天気ニュース・地震情報 2025年11月2日 (日) /連休中日は関東以西で日差し 北日本や北陸は雷雨に注意〈ウェザーニュースLiVE ..."
    },
    {
      "title": "2025年の出来事|時事通信フォト",
      "url": "https://www.jijiphoto.jp/resource/html/ext/news/year/2025/index.html",
      "description": "スポーツ 旭化成、最多26度目V=全日本実業団駅伝 青学大、2年連続8度目V=箱根駅伝 松山が開幕戦V=ツアー11勝目—米男子ゴルフ 桐蔭学園が2連覇=全国高校ラグビー 帝京大が4連覇=全国大学ラグビー 前橋育英が2度目V=高校サッカー"
    },
    {
      "title": "全日本大学駅伝対校選手権2025丨日程・放送予定・ライブ配信 ...",
      "url": "https://www.olympics.com/ja/news/athletics-all-japan-university-men-s-ekiden-championships-2025-long-feature",
      "description": "第57回全日本大学駅伝対校選手権大会が11月2日に開催される。愛知県名古屋市の熱田神宮西門前から、三重県伊勢市の伊勢神宮内宮宇治橋前までの伊勢路を制すのは? 大会の見どころや日程、放送予定、出場校や区間エントリーを紹介する。"
    },
    {
      "title": "2025年 主要ニュース・未来ニュース予定 | 報道写真・ニュース ...",
      "url": "https://imagelink.kyodonews.jp/top-news/2025/",
      "description": "共同通信イメージズが選んだ「過去の主なニュース」と「未来のニュース予定」をまとめています。 過去の年は、日本と海外で起きた毎年の重要な出来事、周年、流行を写真映像で振り返ることができます。"
    },
    {
      "title": "2025年11月のニュース Jra",
      "url": "https://jra.jp/news/202511/index.html",
      "description": "JRAニュース 2025年11月 すべてのニュース ピックアップ レース ・ 馬 ・ 騎手など 現金 ・ UMACA ・ ネット馬券 イベント ・ キャンペーン その他"
    },
    {
      "title": "2025年11月の注目イベント 日本の政治・経済の動向に注目 | 三井 ...",
      "url": "https://www.smd-am.co.jp/market/daily/marketreport/2025/10/news251028gl/",
      "description": "米国による関税の影響で輸出が減少したことや、住宅投資における法改正前の駆け込み需要の反動減などを背景に、4-6月期(前期比年率+2.2%)から大幅に減速する可能性が高いと見られています。 新政権による経済対策や、日銀による利上げの先行きを見通す上でも、日本経済の動向が注目されます。 10月21日に実施された首相指名選挙の結果、高市自由民主党総裁が第104代首相に任命され、同時に日本維新の会との連立政権が発足しました。 今後まとめられる予定の経済対策では、物価高対策に加え、成長投資や安全保障を主軸とする方針が示されており、対策規模は前年を上回る可能性も指摘されています。"
    },
    {
      "title": "2025年11月 - 日経ビジネス電子版",
      "url": "https://business.nikkei.com/atcl/gen/19/00697/032800011/",
      "description": "月ごとに国内外の注目すべき主な予定を掲載します。 日経ビジネス電子版の関連記事もご参照ください。"
    },
    {
      "title": "2025年11月の星空情報 - 国立天文台(Naoj)",
      "url": "https://www.nao.ac.jp/news/blog/2025/20251031-astro.html",
      "description": "2025年11月の星空情報です。11月2日は十三夜。中秋の名月に次ぐ2度目のお月見の日です。2日の夜には、月が土星に寄り添うように輝きます。太陰太陽暦にちなんだ日本ならではのお月見。空を見上げて楽しんでみてください。 11月5日の満月は、ことし地球に最も近く、見かけ上いちばん大きく ..."
    }
  ]
}

今日の日本ニュース(2025 年 11 月 2 日)

報道機関主な報道内容(description から抽出)URL
朝日新聞デジタル中韓首脳会談、北朝鮮の非核化に関する温度差、習近平氏が南北対話再開へ期待を示すなどの政治・国際情勢https://www.asahi.com/shimen/20251102/
Sporting News(MLB)大谷翔平が所属するロサンゼルス・ドジャースとトロント・ブルージェイズのワールドシリーズ第7戦で活躍。https://www.sportingnews.com/jp/mlb/news/2025-10-29-ws-dodgers-bluejays-live-score-highlights/8d50ae6a682dda2fa3ae874c

まとめ

  • 政治・国際:朝日新聞では中韓首脳会談や北朝鮮非核化の動きが報じられ、習近平氏の南北対話再開への期待も取り上げられています。
  • スポーツ:MLBワールドシリーズ第7戦で大谷翔平が活躍し、ドジャースとブルージェイズの試合が注目されています。

注意 ここで提供した情報は検索結果の description のみを参照しています。詳細な記事本文や追加情報は取得できませんでした。もしさらに詳しい内容が必要であれば、各ニュースサイトへ直接アクセスしてください。

This is much better, I think. It provides fewer news items, but they are real news from November 2, 2025. It also showed a caution note based on the instructions. That behavior is nice, but it also means the model is not fully faithful to the instructions, so it's not always good. Still, the goal of producing "accurate" answers was achieved.

As you can see from the examples, there's still a problem: the output format is inconsistent. We can fix that by providing an output format in the prompt.

In the next article, we will implement a tool to fetch web page content and aim to make the output format more consistent.

Closing

In this article, we confirmed that different Reasoning Effort settings for gpt-oss affect the model's reasoning and answers. We also found that improving the prompt makes the model answer accurately based on web search results.

So far, we only confirmed it works for a single example. We have not verified whether it can answer other questions accurately at high quality. To keep quality across multiple questions, we need to build an automatic evaluation environment, which we will tackle later.

In the next article, we will implement a tool to fetch web page contents and see what happens when we give it to the LLM.

Amazon アソシエイトについて

この記事には Amazon アソシエイトのリンクが含まれています。Amazonのアソシエイトとして、SuzumiyaAoba は適格販売により収入を得ています。