Enable/refine reasoning support

オープン
#9,700 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
28/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
ai

調査の方向性

まず #9696 を読み、reasoning 対応モデルをサポートする ChatMessage と ChatGenerator の実装を特定します。それらの init/run パラメーター、メッセージ処理、ツール呼び出しの動作、ストリーミング経路を洗い出します。reasoning が新しいフィールドを一貫して使用し、プロバイダー固有の要件がカバーされていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

P2

In #9696, we added the ReasoningContent field to ChatMessage for storing model's reasoning.

For each ChatGenerator that explicitly supports reasoning-capable models, we should do the following:

  • Verify whether init/run parameters allow reasoning settings. If not, add them.
  • Refactor internal methods to ensure that reasoning is stored in the new field (not in meta).
  • At runtime, handle reasoning content appropriately: some providers require removing reasoning from previous messages, while others require including it.
  • Check how reasoning works with tool calls. Several providers have special requirements (e.g., using reasoning signatures).
  • Check that when streaming is enabled, the reasoning content is successfully returned in the final assistant message. (For the moment, I have the impression that we cannot support streaming reasoning in a unified way).

Most child issues should wait until the 2.17.0 release (which will include the new field).

The list of child issues might not be comprehensive. If I forgot some relevant ChatGenerator, feel free to add it.

主要言語
Python
スター
27.2k
フォーク
3.5k
平均マージ
1日 18時間
マージ済み PR(30日)
254

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

deepset-ai/haystack のほかの issue

deepset-ai/haystack の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。