Commit a6d4dfa
Fix matching quality and suppress position_ids warning
Matching fix:
- BGE-M3 pre-match now uses only the specific file it matched, not
all files with the same lecture number. Previously, matching to
"Lecture1 Intro With notes.pdf" expanded to 5 files (original,
annotated, review copies), producing poor alignment across 90+
combined duplicate slides.
position_ids fix:
- Suppress the safetensors LOAD REPORT ("embeddings.position_ids
UNEXPECTED") by redirecting OS-level file descriptors during model
loading. The warning comes from C/Rust code that bypasses Python's
sys.stdout, so warnings.catch_warnings() and logging don't help.
Language fix (from previous commit, confirmed working):
- --language zh auto-enables force-regenerate
- Tested: notes generated in Chinese with correct prompts
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent bc42177 commit a6d4dfa
1 file changed
Lines changed: 37 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| 407 | + | |
407 | 408 | | |
408 | 409 | | |
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
412 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
413 | 429 | | |
414 | 430 | | |
415 | 431 | | |
| |||
1486 | 1502 | | |
1487 | 1503 | | |
1488 | 1504 | | |
1489 | | - | |
1490 | | - | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
1491 | 1520 | | |
1492 | 1521 | | |
1493 | 1522 | | |
| |||
1634 | 1663 | | |
1635 | 1664 | | |
1636 | 1665 | | |
1637 | | - | |
1638 | | - | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
1642 | 1671 | | |
1643 | 1672 | | |
1644 | 1673 | | |
| |||
0 commit comments