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