perf(laya): compact relevance states

This commit is contained in:
2026-11-23 19:12:03 +01:00
parent 9a00bceebd
commit 6d2d174195
9 changed files with 375 additions and 118 deletions

View File

@ -92,7 +92,7 @@ func TestLayaHTTPBearerEvidenceFallbackAndStableTies(t *testing.T) {
t.Fatalf("bad content/fallback: %v", states)
}
indices := states[0]["indices"].([]any)
if indices[0].(map[string]any)["figi"] != figi {
if index := indices[0].(map[string]any); index["name"] != "S&P 500" || index["symbol"] != "SPX" || index["figi"] != nil {
t.Fatal("lost exact index identity")
}
_, err = ranker.Rank(context.Background(), "title", nil, candidates)