mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-09-29 16:06:21 +00:00
search_memory_facts sorted matches by fact.get("confidence", 0), which
returns None for a fact whose confidence key is explicitly null, crashing
the sort comparison. Use _coerce_source_confidence so null/malformed
confidence values are normalized and clamped before ranking.