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
+3 -1
View File
@@ -704,7 +704,9 @@ async def _ensure_local_datasheet(
except Exception:
logger.exception("Failed to persist auto-fetched datasheet for %s", mpn)
try:
store_datasheet_bytes(ctx.storage, hit.pdf_bytes, mpn)
store_datasheet_bytes(
ctx.storage, hit.pdf_bytes, mpn, extra_mpns=hit.alias_mpns,
)
except Exception:
logger.exception("Failed to library-store auto-fetched datasheet for %s", mpn)
logger.info(