Enable/refine reasoning support

Đang mở
#9,700 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
28/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
ai

Hướng nghiên cứu

Bắt đầu bằng cách đọc #9696 và xác định ChatMessage cùng các triển khai ChatGenerator hỗ trợ các mô hình có khả năng reasoning. Kiểm kê các tham số init/run, cách xử lý message, hành vi gọi tool và các đường streaming của chúng; được coi là hoàn tất khi reasoning sử dụng nhất quán trường mới và các yêu cầu riêng của từng nhà cung cấp được đáp ứng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
27.2k
Fork
3.5k
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
254

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của deepset-ai/haystack

Tất cả issue của deepset-ai/haystack

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.