Commit db1b88a
test(rag): update Hybrid/MultiQuery tests for RRF fusion + real query variations
Seven pre-existing HybridRetrieverTests/MultiQueryRetrieverTests asserted the old
behavior that the RRF-fusion (#27) and real-query-expansion (#19) changes correctly
replaced: exact weighted-sum scores (0.7*d+0.3*s) and the "{query} variation N"
placeholder. RRF is rank-based (scores are small, order is what matters) and MultiQuery
now emits real reformulations. Reassert the meaningful properties: fused doc presence +
ranking, and original-query-first with distinct variations. All 105 pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent fe9cfa7 commit db1b88a
2 files changed
Lines changed: 25 additions & 18 deletions
File tree
- tests/AiDotNet.Tests/UnitTests/RetrievalAugmentedGeneration
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
456 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
457 | 458 | | |
458 | 459 | | |
459 | 460 | | |
| |||
497 | 498 | | |
498 | 499 | | |
499 | 500 | | |
500 | | - | |
501 | | - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
502 | 504 | | |
503 | 505 | | |
504 | 506 | | |
| |||
519 | 521 | | |
520 | 522 | | |
521 | 523 | | |
522 | | - | |
523 | | - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
| |||
776 | 780 | | |
777 | 781 | | |
778 | 782 | | |
779 | | - | |
780 | | - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
781 | 787 | | |
782 | 788 | | |
783 | 789 | | |
| |||
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
337 | | - | |
338 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
339 | 341 | | |
340 | 342 | | |
341 | 343 | | |
| |||
698 | 700 | | |
699 | 701 | | |
700 | 702 | | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
706 | 707 | | |
707 | 708 | | |
708 | 709 | | |
| |||
0 commit comments