mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 04:59:37 +08:00
_generate_queries cleaned each LLM-returned line with
line.strip().lstrip("0123456789.-) "). str.lstrip takes a character SET, not a
prefix, so besides the intended "1. "/"2) " list markers it also ate any
leading digits of the query itself: "2024 budget forecast" -> "budget
forecast", "5G network rollout" -> "G network rollout". The KB was then
searched for a materially different query whenever a variant began with a
number (years, 5G, 3D, versions). Strip a real leading list marker with a
regex instead.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>