{"files":[{"filename":"5-Icam-BRC-20Jul2023_5a32321b2a174f4db914424ee6e96ae6.pdf","result":{"primary_category":"UNKNOWN","primary_category_id":null,"primary_confidence":0.0,"all_categories":[{"category":"UNKNOWN","confidence_score":0.0}],"reasoning":"Unreadable/Error: Empty text","tds_data":null,"certificate_data":null,"token_usage":null}},{"filename":"Kill-step-chocolate-with-report_326e177d-bf71-4357-81e9-2af001755603_388e357d61ba4804a59dde704984b0a9.pdf","result":{"primary_category":"THIRD_PARTY_QUALITY","primary_category_id":9,"primary_confidence":0.95,"all_categories":[{"category":"THIRD_PARTY_QUALITY","confidence_score":0.95}],"reasoning":"The document focuses on the HACCP/HARPC program, 5‑log pathogen reduction, and explicitly states that the plant operates under a GFSI food safety standard – BRC certification – with annual external audits. It discusses quality assurance processes and certifications rather than product specifications, nutrition facts, allergen disclosures, or organic/halal/kosher certifications. Therefore it best fits the THIRD_PARTY_QUALITY category.","tds_data":null,"certificate_data":{"certificate_type":"BRC Certificate","issuing_body":"BRC","issuing_body_id":27,"expiry_date":null,"is_expired":null},"token_usage":{"input_tokens":5160,"output_tokens":691}}},{"filename":"Vegan-all-Org-Dark_32bc340f-53d6-4d2b-9bad-6ad9888743a6_e69e3c01caf143599961a20c3480cf04.pdf","result":{"primary_category":"UNKNOWN","primary_category_id":null,"primary_confidence":0.95,"all_categories":[{"category":"UNKNOWN","confidence_score":0.95}],"reasoning":"The document is a letter confirming vegan suitability and mentioning Fairtrade/Organic status, but it does not contain the detailed specifications of a Technical Data Sheet, nor does it provide a formal organic certification, allergen table, Prop 65 warning, or any of the other defined certification formats. It lacks the required elements (e.g., USDA Organic seal, certification dates, ISO numbers, allergen lists) to fit any specific category, so it is classified as UNKNOWN.","tds_data":null,"certificate_data":null,"token_usage":{"input_tokens":1170,"output_tokens":442}}},{"filename":"gluten-All-Choc_5f6f166b-20c9-4241-8d63-285498f534d3_(1)_f22f7255b5594d72bb25ce001b977f29.pdf","result":{"primary_category":"ALLERGEN_STATEMENT","primary_category_id":2,"primary_confidence":0.98,"all_categories":[{"category":"ALLERGEN_STATEMENT","confidence_score":0.98}],"reasoning":"The document is a gluten statement that lists allergens (peanuts, tree nuts, eggs, dairy, soy, gluten/wheat, etc.), provides a gluten residue verification claim, and describes an Allergen Control Program. It focuses on allergen disclosure rather than product specifications, certifications, or nutritional information, matching the ALLERGEN_STATEMENT category.","tds_data":null,"certificate_data":null,"token_usage":{"input_tokens":1269,"output_tokens":203}}},{"filename":"Sedex-Icam_8bf525a6-028b-4891-85fb-2200966f6fb1_073ab56f2d5b417fbaf1a6db268be0ad.pdf","result":{"primary_category":"ANTI_SLAVERY","primary_category_id":10,"primary_confidence":0.96,"all_categories":[{"category":"ANTI_SLAVERY","confidence_score":0.96}],"reasoning":"The document is a Sedex registration letter stating that the company is a member of Sedex, an organization focused on responsible and ethical business practices in supply chains. This directly aligns with the definition of an ANTI_SLAVERY document, which includes modern slavery/human trafficking statements and ethical sourcing disclosures.","tds_data":null,"certificate_data":null,"token_usage":{"input_tokens":1129,"output_tokens":299}}},{"filename":"88160-SPEC-Org-45DarkChips1k_nutritional_2316aa2cb5d643a08d851bcfb1c8233a.pdf","result":{"primary_category":"TDS","primary_category_id":1,"primary_confidence":0.98,"all_categories":[{"category":"TDS","confidence_score":0.98},{"category":"ALLERGEN_STATEMENT","confidence_score":0.95},{"category":"PROP_65","confidence_score":0.9},{"category":"ORGANIC","confidence_score":0.9},{"category":"RABBINICAL","confidence_score":0.85},{"category":"HALAL","confidence_score":0.85},{"category":"NON_GMO","confidence_score":0.8}],"reasoning":"The document is a detailed technical data sheet (product description, specifications, microbiological limits, physical properties, storage, packaging, nutrition facts) which matches the TDS definition. It contains a dedicated Allergen Information section listing soy and possible dairy traces, qualifying it for ALLERGEN_STATEMENT. A California Proposition 65 warning is explicitly included, supporting PROP_65. The text repeatedly mentions Certified Organic, organic seal, and organic certifying organization, meeting ORGANIC criteria. Kosher (Certified Kosher Pareve) and Halal certifications are stated, fitting RABBINICAL and HALAL categories. The statement \"Non-GMO\" provides a clear non‑GMO declaration, justifying NON_GMO.","tds_data":{"common_name":"Organic Dark Chocolate Chips","supplier_name":"Global Organics, Ltd.","supplier_id":"88160","sub_ingredient_list":["Organic Cane Sugar","Organic Chocolate Liquor","Organic Cocoa Butter","Organic Soy Lecithin","Organic Vanilla Extract"],"storage_conditions":"Controlled Override 50-70F","storage_conditions_id":3,"shelf_life":30,"shelf_life_duration":3,"food_category":{"id":6,"category_name":"Bakery/Confectionery","subcategory_id":15,"subcategory_name":"Confectionary (Chocolate & Candy)","item_id":49,"item_name":"Chocolate/cocoa products"}},"certificate_data":null,"token_usage":{"input_tokens":5567,"output_tokens":1398}}},{"filename":"FDA-Regist-BioTerrorism-Compliance-GlobalOrganics_ae7ccc99-7f71-43af-b508-250386b93cf7_392d9439d18e4411abd8c1b6b46509a0.pdf","result":{"primary_category":"ORGANIC","primary_category_id":4,"primary_confidence":0.85,"all_categories":[{"category":"ORGANIC","confidence_score":0.85}],"reasoning":"Fallback: API parse error | Filename match: 'FDA-Regist-BioTerrorism-Compliance-GlobalOrganics_ae7ccc99-7f71-43af-b508-250386b93cf7_392d9439d18e4411abd8c1b6b46509a0.pdf'","tds_data":null,"certificate_data":null,"token_usage":null}},{"filename":"88160-SPEC-Org-45DarkChips1k_18599166ae1d4f32a79b045aa1ab1b3c.pdf","result":{"primary_category":"TDS","primary_category_id":1,"primary_confidence":0.99,"all_categories":[{"category":"TDS","confidence_score":0.99},{"category":"ALLERGEN_STATEMENT","confidence_score":0.95},{"category":"PROP_65","confidence_score":0.92},{"category":"ORGANIC","confidence_score":0.88},{"category":"RABBINICAL","confidence_score":0.86},{"category":"HALAL","confidence_score":0.86},{"category":"NON_GMO","confidence_score":0.84}],"reasoning":"The document contains extensive product specifications, physical and chemical properties, microbiological limits, and usage/storage details typical of a Technical Data Sheet (TDS). It includes a dedicated 'Allergen Information' section listing soy and possible dairy traces, qualifying it for an ALLERGEN_STATEMENT. A clear California Proposition 65 warning is present, meeting the PROP_65 criteria. The text repeatedly mentions 'Certified Organic' and provides organic certification details, supporting the ORGANIC category. Kosher (Pareve) and Halal certifications are explicitly stated, justifying RABBINICAL and HALAL categories. The product is labeled 'Non-GMO', providing a basis for the NON_GMO category.","tds_data":{"common_name":"Organic Dark 45% Chocolate Chips","supplier_name":"Global Organics, Ltd.","supplier_id":"88160","sub_ingredient_list":["Organic Cane Sugar","Organic Chocolate Liquor","Organic Cocoa Butter","Organic Soy Lecithin","Organic Vanilla Extract"],"storage_conditions":"Ambient 40F-90F","storage_conditions_id":4,"shelf_life":30,"shelf_life_duration":3,"food_category":{"id":6,"category_name":"Bakery/Confectionery","subcategory_id":15,"subcategory_name":"Confectionary (Chocolate & Candy)","item_id":49,"item_name":"Chocolate/cocoa products"}},"certificate_data":null,"token_usage":{"input_tokens":5567,"output_tokens":1537}}},{"filename":"gluten-All-Choc_5f6f166b-20c9-4241-8d63-285498f534d3_011b9eb9fce04e64ba803d15a0bcf036.pdf","result":{"primary_category":"ALLERGEN_STATEMENT","primary_category_id":2,"primary_confidence":0.97,"all_categories":[{"category":"ALLERGEN_STATEMENT","confidence_score":0.97}],"reasoning":"The document is a gluten statement that lists allergens (peanuts, tree nuts, eggs, dairy, soy, gluten/wheat, etc.), describes an Allergen Control Program, and guarantees gluten levels below regulatory thresholds. It focuses on allergen disclosure rather than product specifications, certifications, or nutrition data, matching the ALLERGEN_STATEMENT category.","tds_data":null,"certificate_data":null,"token_usage":{"input_tokens":1269,"output_tokens":215}}},{"filename":"6-88160-Kosher-30Nov2023_1187c00b8d6c44128cc96a13fae6b2d9.pdf","result":{"primary_category":"RABBINICAL","primary_category_id":5,"primary_confidence":0.99,"all_categories":[{"category":"RABBINICAL","confidence_score":0.99}],"reasoning":"The document lists Kosher certification details, including a K-ID, status (Pareve), Kosher symbols, and a validity period, which are characteristic of a Kosher (Rabbinical) certification. No other distinct sections (e.g., nutrition facts, allergen tables) are present.","tds_data":null,"certificate_data":{"certificate_type":"Kosher Certificate","issuing_body":"K-ID","issuing_body_id":18,"expiry_date":"2023-11-30","is_expired":true},"token_usage":{"input_tokens":2512,"output_tokens":354}}},{"filename":"2022-Agostoni-45-Choc-Prop65-HM-general_8f48f93d-7029-4d25-997f-a0efb9f8902c_84f542b6ab1c437bbcfb0fa0d9b42f5c.pdf","result":{"primary_category":"PROP_65","primary_category_id":3,"primary_confidence":0.99,"all_categories":[{"category":"PROP_65","confidence_score":0.99}],"reasoning":"The document is a Proposition 65 compliance statement. It explicitly discusses California Prop 65 requirements, lists chemicals (arsenic, cadmium, lead, acrylamide), provides NSRL and MADL values, explains how to determine if a warning is needed, and includes an annex with concentration data. These are the defining elements of a PROP_65 document. No other dedicated sections (e.g., full allergen table, nutrition facts, certification) are present, so only the PROP_65 category is assigned.","tds_data":null,"certificate_data":null,"token_usage":{"input_tokens":2350,"output_tokens":289}}},{"filename":"CaliforniaTransparencyinSupplyChainsAct-CTSCA_c966e1f1-96a4-4bcc-8dc9-41e4e44e0019_dc616a48d3bd488b92de4e1ea09fc17e.pdf","result":{"primary_category":"ANTI_SLAVERY","primary_category_id":10,"primary_confidence":0.97,"all_categories":[{"category":"ANTI_SLAVERY","confidence_score":0.97}],"reasoning":"The document is a disclosure statement for the California Transparency in Supply Chains Act, describing policies, supplier audits, human rights commitments, and ethical business conduct, which aligns directly with modern slavery/human trafficking disclosure requirements. No other document types (e.g., TDS, allergen, certification) are present as primary content.","tds_data":null,"certificate_data":null,"token_usage":{"input_tokens":1753,"output_tokens":283}}},{"filename":"3-2022-GO-NOPCertSchedule_08fa5b50a89546f8bc09fda770330cce.pdf","result":{"primary_category":"ORGANIC","primary_category_id":4,"primary_confidence":0.99,"all_categories":[{"category":"ORGANIC","confidence_score":0.99}],"reasoning":"The document contains an organic certification issued by Ecocert, references USDA organic regulations (7 CFR Part 205), NOP (National Organic Program), certification numbers, dates, and a list of products labeled as 'Organic'. This content directly matches the definition of an ORGANIC certification document.","tds_data":null,"certificate_data":{"certificate_type":"USDA Organic","issuing_body":"Ecocert SA","issuing_body_id":null,"expiry_date":null,"is_expired":null},"token_usage":{"input_tokens":4482,"output_tokens":486}}},{"filename":"NonGMOBEIrradSlugeNano_4f17402816f24154ae81b45b1e5e6f47.pdf","result":{"primary_category":"ORGANIC","primary_category_id":4,"primary_confidence":0.96,"all_categories":[{"category":"ORGANIC","confidence_score":0.96},{"category":"NON_GMO","confidence_score":0.68}],"reasoning":"The document explicitly states compliance with USDA National Organic Program regulations and EU organic regulations, confirming that all products are organic. This makes it an organic certification document (primary category). It also includes a dedicated paragraph asserting that all products are non‑genetically engineered and not bioengineered, which aligns with a non‑GMO verification statement, warranting a secondary NON_GMO classification.","tds_data":null,"certificate_data":{"certificate_type":"Non-GMO Statement","issuing_body":"Global Organics, Ltd.","issuing_body_id":null,"expiry_date":null,"is_expired":null},"token_usage":{"input_tokens":3222,"output_tokens":514}}}],"total_input_tokens":35450,"total_output_tokens":6711,"timestamp":"2026-06-11T05:16:36.872651"}