Commit Graph
3 Commits
Author SHA1 Message Date
huangruitengandhuangruiteng 0b09d4580f fix(observer): account for aggregate retrieval yield (#3158)
Co-authored-by: huangruiteng <huangruiteng@bytedance.com>
2026-07-14 11:20:22 +08:00
MaojiaShengandopenviking ce998873f9 lisence: change the main lisence to AGPL-3.0 (#1085)
* lisence: change the main lisence from Apache-2.0 to AGPL-v3

* lisence: change the main lisence from Apache-2.0 to AGPL-v3

* lisence: change the main lisence from Apache-2.0 to AGPL-v3

---------

Co-authored-by: openviking <openviking@example.com>
2026-03-30 14:37:42 +08:00
Matt Van HornandMatt Van Horn c44e6147c1 feat(retrieve): add RetrievalObserver for retrieval quality metrics (#622)
Add retrieval quality observability following the existing observer
pattern (QueueObserver, VLMObserver, VikingDBObserver).

- RetrievalStatsCollector: thread-safe singleton that accumulates
  per-query metrics (result counts, scores, latency, rerank usage)
- RetrievalObserver: reads accumulated stats, reports health based on
  zero-result rate, formats status table with tabulate
- Instrumented HierarchicalRetriever.retrieve() to record stats
- Added /api/v1/observer/retrieval endpoint
- Included in system-wide observer health check
- 17 unit tests covering stats, collector, and observer

This contribution was developed with AI assistance (Claude Code).

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
2026-03-15 14:51:21 +08:00