enrich_prompt.txt 1.3 KB

1234567891011121314151617
  1. You are an electronics sourcing expert. The attached JSON file lists LCSC component subcategories that need enrichment. Each entry may need:
  2. - A `description`: one concise sentence explaining what components belong in this subcategory
  3. - `examples`: 2–3 representative spec strings showing key parameters (e.g. "100µF 35V 6.3x11mm", "1kΩ ±1% 100mW 0603")
  4. Rules:
  5. - description: one sentence, specific enough to distinguish this subcategory from similar ones
  6. - examples: realistic component specs with the important parameters (value, tolerance, voltage/current rating, package/size) — NO part numbers, NO brand names, NO URLs
  7. - entries with "need_examples": true need both description AND examples
  8. - entries without "need_examples" only need a description (examples already present)
  9. - entries already have "examples" listed — use them as context for the description
  10. Output format: one JSON object per line (NDJSON). Include ONLY the fields you generate:
  11. {"id": 51, "description": "Active and passive sound-producing devices..."}
  12. {"id": 55, "description": "Electrodynamic transducers...", "examples": ["8Ω 0.5W 28mm Round", "4Ω 3W 40x28mm Rectangular"]}
  13. Output NOTHING except the NDJSON lines. No markdown, no commentary, no code fences.
  14. Process every entry in the file.