Reuse datasheet family aliases and skip the LLM for catalog passives.

Store BOM MPN and orderable code on the same PDF blob, derive TI datasheet slugs from package/Q1 codes, and map LCSC/DigiKey R/C/L parameters to specs without a model call.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-28 02:11:49 +02:00
co-authored by Cursor
parent 27a3ce8bd0
commit dd46ce1da1
11 changed files with 437 additions and 30 deletions
+8
View File
@@ -92,6 +92,14 @@ def test_ti_slugs_include_family():
assert "mspm0g3507s" not in slugs
def test_ti_slugs_from_orderable_code():
slugs = _ti_slugs("INA228AQDGSRQ1")
assert "ina228-q1" in slugs
assert "ina228" in slugs
slugs = _ti_slugs("SN74AXC1T45DBVR")
assert "sn74axc1t45" in slugs
def test_find_datasheet_uses_lcsc_then_skips_empty(monkeypatch):
async def fake_lcsc(mpn, lcsc_id=None):
return DatasheetHit(