Commit bc42177
Fix language override ignoring cache; fix BGE-M3 position_ids error
Language fix:
- When --language is explicitly passed, auto-enable force-regenerate
so cached English sections are not reused for Chinese notes (and
vice versa). Previously, selecting Chinese produced English notes
because existing cached section .md files were served from disk
without checking their language.
BGE-M3 fix:
- Add trust_remote_code=True when loading BAAI/bge-m3 via
SentenceTransformer in suggest_matches(). This fixes the
"embeddings.position_ids status unexpected" error that occurs
with newer sentence-transformers versions.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4e59a3b commit bc42177
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1593 | 1593 | | |
1594 | 1594 | | |
1595 | 1595 | | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
1596 | 1600 | | |
1597 | 1601 | | |
1598 | 1602 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1486 | 1486 | | |
1487 | 1487 | | |
1488 | 1488 | | |
1489 | | - | |
| 1489 | + | |
| 1490 | + | |
1490 | 1491 | | |
1491 | 1492 | | |
1492 | 1493 | | |
| |||
0 commit comments