perf(laya): compact relevance states
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user