ChenRussell
80a69ae6f3
fix(pipeline): fallback to raw retrieval results when rerank API fails
...
When the rerank model returns an error (e.g. 401 Unauthorized), the
pipeline previously discarded all retrieved candidates and returned
empty results to the caller.
Now p.rerank returns ([]RankResult, error) to distinguish API failure
from threshold-filtered empty results. On API error, the pipeline
falls back to the original retrieval candidates (directLoad +
candidatesToRerank) and continues to CHUNK_MERGE/FILTER_TOP_K,
so users still get results even when the rerank model is misconfigured.
2026-05-26 20:45:17 +08:00
..
2026-05-26 20:45:17 +08:00
2026-05-18 19:38:23 +08:00
2026-02-25 14:29:54 +08:00
2026-04-22 21:17:29 +08:00
2026-05-22 20:43:50 +08:00
2026-05-13 12:29:10 +08:00
2026-05-13 12:29:10 +08:00
2026-05-18 16:49:14 +08:00
2026-05-18 16:49:14 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-14 15:53:58 +08:00
2026-05-18 17:28:58 +08:00
2025-08-05 15:08:07 +08:00
2026-05-17 15:27:52 +08:00
2026-03-25 22:08:29 +08:00
2026-05-14 15:53:58 +08:00
2026-03-25 22:08:29 +08:00
2026-05-18 19:38:23 +08:00
2026-05-18 17:28:58 +08:00
2026-05-14 15:53:58 +08:00
2026-05-25 19:16:08 +08:00
2026-05-14 15:53:58 +08:00
2026-05-14 15:53:58 +08:00
2026-05-18 17:28:58 +08:00
2026-04-02 12:04:04 +08:00
2026-03-16 18:18:23 +08:00
2026-05-18 17:28:58 +08:00
2026-05-10 00:01:06 +08:00
2026-05-20 22:40:48 +08:00
2026-05-22 17:25:39 +08:00
2026-05-18 17:28:58 +08:00
2026-05-06 17:09:42 +08:00
2026-05-06 11:23:32 +08:00
2026-05-06 17:40:10 +08:00
2026-05-25 19:16:08 +08:00
2026-05-18 17:57:46 +08:00
2026-05-20 22:25:39 +08:00
2026-05-20 22:25:39 +08:00
2026-05-20 22:25:39 +08:00
2026-05-06 17:17:07 +08:00
2026-04-16 23:15:02 +08:00
2026-05-18 17:28:58 +08:00
2026-05-20 22:25:39 +08:00
2026-05-20 22:25:39 +08:00
2026-05-18 17:28:58 +08:00
2026-05-17 15:27:52 +08:00
2026-05-17 15:27:52 +08:00
2026-05-10 22:57:12 +08:00
2026-05-14 15:56:43 +08:00
2025-11-28 16:10:37 +08:00
2026-05-17 15:27:52 +08:00
2026-03-02 21:21:49 +08:00
2026-03-06 21:08:12 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-17 15:27:52 +08:00
2026-05-26 10:45:42 +08:00
2026-05-26 20:41:10 +08:00
2026-05-14 15:56:43 +08:00
2026-05-18 22:28:00 +08:00
2026-02-04 20:08:49 +08:00
2026-05-10 00:01:06 +08:00
2026-05-10 00:01:06 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 20:37:57 +08:00
2026-05-09 13:14:01 +08:00
2026-05-18 17:57:46 +08:00
2026-05-22 17:40:10 +08:00
2026-05-17 15:27:52 +08:00
2026-04-11 18:51:16 +08:00
2026-04-17 16:38:02 +08:00
2026-04-15 11:37:24 +08:00
2026-05-10 00:01:06 +08:00
2026-04-22 21:18:32 +08:00
2026-05-10 00:01:06 +08:00
2026-04-22 21:18:32 +08:00
2026-04-22 21:18:32 +08:00
2026-05-08 21:48:52 +08:00
2026-05-06 11:23:32 +08:00
2026-05-10 00:01:06 +08:00
2026-04-22 21:18:09 +08:00
2026-04-22 21:18:09 +08:00
2026-05-10 00:01:06 +08:00
2026-05-08 21:48:52 +08:00
2026-05-08 13:32:54 +08:00
2026-05-10 00:01:06 +08:00