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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user