diff --git a/examples/bakery_rd/example_interactive_spec_sheet.md b/examples/bakery_rd/example_interactive_spec_sheet.md new file mode 100644 index 0000000..d90f212 --- /dev/null +++ b/examples/bakery_rd/example_interactive_spec_sheet.md @@ -0,0 +1,50 @@ +# Ví dụ: Tạo Spec Sheet cho Nguyên liệu mới (Tương tác) + +Đây là một ví dụ về cách `ingredient_spec_sheet_generator.md` hoạt động khi không có đủ thông tin, thể hiện khả năng "trò chuyện" và thu thập dữ liệu của nó. + +## File Template được sử dụng: `templates/bakery_rd/ingredient_spec_sheet_generator.md` + +--- + +``` +**ROLE:** +You are a highly experienced R&D and Quality Assurance Director in the food industry. Your expertise lies in creating meticulous, accurate, and compliant technical documentation for new and existing ingredients. + +**CONTEXT:** +Your primary task is to generate a comprehensive Technical Specification Sheet for the ingredient: **"FiberBlend-70"**. +All currently available information is provided below: +--- +Đây là một loại bột chất xơ mới mà chúng tôi đang phát triển. Nó có nguồn gốc từ yến mạch và lúa mì. Chức năng chính là để tăng hàm lượng chất xơ và cải thiện cấu trúc cho bánh mì sandwich. +--- + +**CORE INSTRUCTION: INTERACTIVE DATA GATHERING & GENERATION** + +1. **Analyze Input:** First, carefully analyze the provided [KnownInformation]. Compare it against the list of CRITICAL data fields required for a professional specification sheet. +2. **Decision Point:** + * **IF** multiple (3 or more) CRITICAL data fields are missing or vague, your **ONLY** action is to **ask the user clarifying questions**. Do **NOT** generate a partial document. Start your response with: "Để tạo một bảng thông số kỹ thuật chính xác cho [IngredientName], tôi cần bạn cung cấp thêm một số thông tin quan trọng sau:" + * **ELSE IF** all critical information is present, proceed directly to generating the full specification sheet. + +... (phần còn lại của template) ... +``` + +--- +## KẾT QUẢ MONG ĐỢI (EXPECTED OUTPUT FROM LLM) + +LLM sẽ không tạo ra bảng thông số kỹ thuật. Thay vào đó, nó sẽ phản hồi như sau: + +> Để tạo một bảng thông số kỹ thuật chính xác cho **FiberBlend-70**, tôi cần bạn cung cấp thêm một số thông tin quan trọng sau: +> +> **1. Về Thành phần & Lý hóa:** +> * Tỷ lệ % chính xác của các thành phần trong hỗn hợp (yến mạch, lúa mì) là gì? +> * Chúng ta có các chỉ số phân tích cụ thể nào chưa? (ví dụ: Độ ẩm, hàm lượng tro, kích thước hạt...) +> * Đặc biệt, hoạt độ nước (aw) và pH của sản phẩm là bao nhiêu? +> +> **2. Về An toàn Thực phẩm:** +> * Sản phẩm này có chứa gluten không (do có lúa mì)? Chúng ta cần khai báo dị ứng một cách chính xác. +> * Chúng ta đã có tiêu chuẩn vi sinh cho sản phẩm này chưa (tổng vi sinh vật, nấm men, nấm mốc)? +> +> **3. Về Thương mại:** +> * Dự kiến sản phẩm sẽ được đóng gói như thế nào (quy cách, vật liệu)? +> * Chúng ta đã xác định hạn sử dụng và điều kiện bảo quản tối ưu cho nó chưa? +> +> Khi có đủ những thông tin này, tôi có thể tạo ra một tài liệu hoàn chỉnh và chuyên nghiệp. diff --git a/examples/bakery_rd/example_recipe_accurate.md b/examples/bakery_rd/example_recipe_accurate.md new file mode 100644 index 0000000..e18546a --- /dev/null +++ b/examples/bakery_rd/example_recipe_accurate.md @@ -0,0 +1,43 @@ +# Ví dụ: Tạo công thức Bánh mì Sourdough nguyên cám (Chế độ Accurate) + +Đây là một ví dụ về cách điền và sử dụng prompt template `recipe_generation.md` để tạo ra một công thức chính xác về mặt khoa học. + +## File Template được sử dụng: `templates/bakery_rd/recipe_generation.md` + +--- + +``` +**ROLE:** +You are a world-class R&D Bakery Scientist with deep knowledge of food chemistry, ingredient functionality, and innovative product development. Your task is to generate a novel yet practical bakery recipe. + +**CONTEXT:** +The goal is to develop a new recipe for: **"Bánh mì Sourdough 100% Bột nguyên cám có cấu trúc mềm mại"**. +This recipe must incorporate the following key ingredients: **"Bột mì nguyên cám (whole wheat flour), men tự nhiên (sourdough starter), nước, muối"**. +It is critical that the final recipe adheres to these constraints: **"Sử dụng 100% bột nguyên cám, không sử dụng men công nghiệp, tối ưu hóa để ruột bánh mềm và nở tốt nhất có thể"**. + +**AXIOM COMPLIANCE:** +You must strictly adhere to the established Bakery R&D Axioms. Specifically, consider: +- Axiom(GlutenNetworkFormation) with the challenge of whole wheat bran. +- Axiom(YeastFermentation) for natural leavening and flavor. +- Axiom(StarchGelatinization) for crumb structure. +- Axiom(MaillardReaction) and Axiom(Caramelization) for crust development. +- All other relevant axioms from the protocol. + +**OPTIMIZATION MODE:** **Accurate** + +**INSTRUCTIONS:** +Based on the specified Optimization Mode, generate the recipe following these guidelines: + +- **If Mode is `Accurate`:** + 1. **Scientific Foundation:** Start by explaining the key scientific principles that will govern the success of this recipe. + 2. **Formula Precision:** Provide a precise recipe using baker's percentages. Justify the percentage of each key ingredient. + 3. **Process Control:** Detail the step-by-step method with critical control points (CCPs) highlighted. + 4. **Expected Outcome:** Describe the expected sensory profile of the final product. + +**OUTPUT FORMAT:** +- **Recipe Title:** A clear, descriptive name. +- **Concept/Scientific Rationale:** +- **Ingredients:** (With baker's percentages) +- **Method:** Step-by-step instructions. +- **Mode-Specific Notes:** +``` diff --git a/examples/bakery_rd/example_research_creative.md b/examples/bakery_rd/example_research_creative.md new file mode 100644 index 0000000..c550b10 --- /dev/null +++ b/examples/bakery_rd/example_research_creative.md @@ -0,0 +1,40 @@ +# Ví dụ: Phân tích Nghiên cứu tìm cảm hứng (Chế độ Creative) + +Đây là một ví dụ về cách sử dụng prompt template `research_analyzer.md` để brainstorm ý tưởng mới dựa trên một tài liệu khoa học. + +## File Template được sử dụng: `templates/bakery_rd/research_analyzer.md` + +--- + +``` +**ROLE:** +You are a Research Scientist specializing in Cereal and Bakery Science. You possess the ability to quickly parse dense technical literature, identify the core findings, and translate them into practical applications for R&D professionals. + +**CONTEXT:** +You are tasked with analyzing the following technical document. +Your primary focus is to extract insights related to: **"Các phương pháp mới để tạo và ổn định bọt khí trong các hệ thống bột nhào không chứa gluten."** +Here is the document content: +--- +**(Giả sử đây là nội dung của một bài báo khoa học có tiêu đề: "The Synergistic Effect of Faba Bean Protein and Microbial Transglutaminase on the Stability of Gluten-Free Foams")** + +**Abstract:** Gluten-free (GF) bread quality is often limited by poor gas retention. This study investigates the use of faba bean protein isolate (FPI) as a foaming agent and microbial transglutaminase (mTG) as a cross-linking agent to create a stable protein network in a model GF system. Foams were created using FPI solutions with and without mTG. Foam stability was measured via drainage analysis. Microstructure was observed using confocal laser scanning microscopy. Results showed that foams cross-linked with mTG exhibited significantly lower drainage and a more uniform bubble distribution. The synergistic action of FPI's amphiphilic properties and mTG's covalent bonding capability creates a robust protein film around air bubbles, mimicking the gas-holding function of gluten. This suggests a promising strategy for improving the volume and texture of GF baked goods. +--- + +**AXIOM COMPLIANCE:** +While analyzing, cross-reference the findings in this paper with the established Bakery R&D Axioms. Note any findings that either support, contradict, or refine our existing understanding as defined in the axioms. + +**OPTIMIZATION MODE:** **Creative** + +**INSTRUCTIONS:** +Analyze the provided text and generate a summary report based on the specified Optimization Mode. + +- **If Mode is `Creative`:** + 1. **Core Concept Distillation:** Explain the central idea in a simple, non-technical analogy. + 2. **"What If...?" Scenarios:** Generate speculative "What if...?" questions to inspire new product ideas. + 3. **Cross-Domain Innovation:** Suggest how the core principle could be combined with a concept from a different field. + 4. **Future Research Brainstorm:** Propose a follow-up experiment. + +**OUTPUT FORMAT:** +- **Document Title & Source (if available)** +- **Analysis Report (structured according to the chosen mode)** +``` diff --git a/examples/bakery_rd/example_troubleshooting_efficient.md b/examples/bakery_rd/example_troubleshooting_efficient.md new file mode 100644 index 0000000..112e6e5 --- /dev/null +++ b/examples/bakery_rd/example_troubleshooting_efficient.md @@ -0,0 +1,37 @@ +# Ví dụ: Xử lý sự cố Bánh quy bị lan (Chế độ Efficient) + +Đây là một ví dụ về cách điền và sử dụng prompt template `troubleshooting.md` để nhận được lời khuyên nhanh chóng và hiệu quả. + +## File Template được sử dụng: `templates/bakery_rd/troubleshooting.md` + +--- + +``` +**ROLE:** +You are a Master Baker and Food Scientist, an expert diagnostician for complex baking problems. Your approach is systematic, science-based, and practical. + +**CONTEXT:** +We are facing a technical issue with our **"Chocolate Chip Cookies"**. +The core problem is: **"Bánh quy bị lan ra quá mỏng khi nướng, không giữ được hình dạng."** +Here is the recipe and process that was followed: **"Công thức cơ bản: 200g bơ (đã làm mềm), 150g đường trắng, 150g đường nâu, 2 quả trứng, 300g bột mì đa dụng, 5g baking soda, 3g muối. Trộn bơ và đường, thêm trứng, sau đó thêm nguyên liệu khô. Nướng ngay ở 175°C trong 12 phút."** + +**AXIOM COMPLIANCE:** +Your analysis must be grounded in the Bakery R&D Axioms. You will deconstruct the problem by identifying which axioms may have been violated or misinterpreted during the process. + +**OPTIMIZATION MODE:** **Efficient** + +**INSTRUCTIONS:** +Analyze the provided information and deliver a troubleshooting report based on the specified Optimization Mode. + +- **If Mode is `Efficient`:** + 1. **Most Likely Cause:** Immediately identify the single most probable cause of the problem. + 2. **Quick Fixes:** Provide a checklist of 2-3 immediate adjustments to try first. + 3. **Top 3 Process Checks:** List the top 3 critical control points in the process. + 4. **Clear "If-Then" Guidance:** Provide simple "If X, then do Y" instructions. + +**OUTPUT FORMAT:** +- **Problem Statement:** +- **Analysis & Root Cause(s):** +- **Actionable Solutions:** +- **Preventative Measures / Future Directions:** +``` diff --git a/protocols/bakery_axioms.md b/protocols/bakery_axioms.md new file mode 100644 index 0000000..c0a9030 --- /dev/null +++ b/protocols/bakery_axioms.md @@ -0,0 +1,55 @@ +# Bộ Axiom (Chân lý) cho R&D Bánh kẹo (Axioms for Bakery R&D) + +Tài liệu này định nghĩa các "axiom" - những chân lý hoặc quy tắc cơ bản không thể vi phạm - trong lĩnh vực khoa học làm bánh. Các prompt template sau này sẽ phải tuân thủ và tham chiếu đến những axiom này để đảm bảo tính chính xác và logic trong các phản hồi được tạo ra. + +Mỗi axiom được định nghĩa dưới dạng một quy tắc hoặc một mối quan hệ nhân quả. + +--- + +### Nhóm Axiom 1: Cấu trúc (Structure) + +1. **Axiom(GlutenNetworkFormation):** + `Flour(Protein > 10%) + H2O + MechanicalEnergy(Mixing) => GlutenNetwork(Elasticity, Extensibility)` + * **Diễn giải:** Mạng lưới gluten, yếu tố quyết định cấu trúc và độ dai của bánh mì, được hình thành từ bột mì có hàm lượng protein cao, nước và tác động cơ học. + +2. **Axiom(StarchGelatinization):** + `Starch + H2O + Heat(>65°C) => GelMatrix(CrumbStructure, MoistureRetention)` + * **Diễn giải:** Tinh bột khi gặp nước và nhiệt độ sẽ trương nở và hồ hóa, tạo thành một ma trận gel giúp định hình cấu trúc ruột bánh và giữ ẩm. + +3. **Axiom(FatTenderizing):** + `Fat -> Coats(GlutenProteins) => Inhibits(Over-development(GlutenNetwork)) -> Result(TenderCrumb)` + * **Diễn giải:** Chất béo bao bọc các sợi protein, ngăn cản chúng liên kết quá mức, dẫn đến kết cấu sản phẩm mềm mại hơn. + +### Nhóm Axiom 2: Sự nở (Leavening) + +1. **Axiom(YeastFermentation):** + `Yeast + Sugars + OptimalTemp(24-32°C) => CO2(g) + Ethanol(l) + FlavorCompounds` + * **Diễn giải:** Nấm men tiêu thụ đường trong môi trường nhiệt độ tối ưu để tạo ra khí CO2 (làm nở), cồn và các hợp chất tạo hương vị. + +2. **Axiom(BakingSodaLeavening):** + `NaHCO3(Base) + AcidicIngredient + Liquid => CO2(g)` + * **Diễn giải:** Baking soda (một chất kiềm) luôn yêu cầu một thành phần axit và chất lỏng để phản ứng tạo khí. + +3. **Axiom(BakingPowderLeavening):** + `(NaHCO3 + DryAcid) + Liquid => CO2(g)` + * **Diễn giải:** Baking powder là một hỗn hợp hoàn chỉnh, chỉ cần chất lỏng để kích hoạt phản ứng tạo khí. Phản ứng có thể xảy ra ở nhiệt độ phòng và/hoặc khi gia nhiệt (double-acting). + +### Nhóm Axiom 3: Hương vị và Màu sắc (Flavor & Color) + +1. **Axiom(MaillardReaction):** + `AminoAcid + ReducingSugar + Heat(>140°C) => Browning(Color) + ComplexAromas(Flavor)` + * **Diễn giải:** Màu nâu và hương thơm phức hợp của vỏ bánh là kết quả của phản ứng Maillard, đòi hỏi phải có cả protein, đường và nhiệt độ cao. + +2. **Axiom(Caramelization):** + `Sugar + HighHeat(>160°C) => Amber/Brown(Color) + CaramelNotes(Flavor)` + * **Diễn giải:** Quá trình caramel hóa chỉ liên quan đến đường ở nhiệt độ rất cao, tạo ra màu sắc và hương vị đặc trưng của caramel. + +### Nhóm Axiom 4: Trạng thái và Hạn sử dụng (State & Shelf-life) + +1. **Axiom(StalingProcess):** + `Time + Cooling => StarchRetrogradation -> (WaterMigration + CrumbFirming)` + * **Diễn giải:** Bánh bị khô cứng (staling) là do sự thoái hóa của tinh bột, khi các phân tử tinh bột sắp xếp lại và đẩy nước ra khỏi cấu trúc ruột bánh. Đây là một quá trình vật lý, không phải là bánh bị "khô" do mất nước. + +2. **Axiom(HygroscopicEffect):** + `HygroscopicSugars(e.g., Fructose, Honey) -> Attracts(H2O) => Extends(MoistureRetention)` + * **Diễn giải:** Các loại đường có khả năng hút ẩm (như fructose, mật ong) giúp kéo dài độ ẩm và sự mềm mại của sản phẩm. diff --git a/research/bakery_science_fundamentals.md b/research/bakery_science_fundamentals.md new file mode 100644 index 0000000..edfd5a5 --- /dev/null +++ b/research/bakery_science_fundamentals.md @@ -0,0 +1,73 @@ +# Nền tảng Khoa học trong R&D Bánh kẹo (Bakery Science Fundamentals) + +Tài liệu này tổng hợp các nguyên tắc khoa học cơ bản làm nền tảng cho quá trình nghiên cứu và phát triển (R&D) trong ngành làm bánh. Hiểu rõ những nguyên tắc này là điều kiện tiên quyết để xây dựng các "axiom" và "prompt" hiệu quả, giúp chẩn đoán sự cố và đổi mới sản phẩm. + +## 1. Sự hình thành và phát triển Gluten (Gluten Development) + +- **Thành phần:** Gluten được hình thành khi hai protein trong bột mì, **glutenin** và **gliadin**, tiếp xúc với nước và chịu tác động cơ học (nhào trộn). +- **Cơ chế:** + - **Gliadin:** Góp phần vào tính dẻo, co giãn (extensibility). + - **Glutenin:** Góp phần vào tính đàn hồi, sức mạnh (elasticity). +- **Mạng lưới Gluten:** Quá trình nhào trộn giúp sắp xếp các protein này thành một mạng lưới 3D đàn hồi, có khả năng giữ lại khí CO2 do nấm men hoặc bột nở tạo ra, giúp sản phẩm nở và có cấu trúc. +- **Yếu tố ảnh hưởng:** + - **Hàm lượng protein:** Bột mì có hàm lượng protein cao (bread flour) tạo ra mạng lưới gluten mạnh hơn, lý tưởng cho bánh mì. Bột mì có hàm lượng protein thấp (cake flour) tạo ra mạng lưới yếu hơn, cho kết cấu mềm, xốp. + - **Hydrat hóa (Hydration):** Lượng nước ảnh hưởng đến sự liên kết của protein. + - **Thời gian và cường độ nhào trộn:** Nhào trộn quá ít -> mạng lưới yếu. Nhào trộn quá nhiều -> phá vỡ mạng lưới. + - **Thành phần khác:** Muối (tăng cường gluten), chất béo (làm mềm, cản trở gluten), đường (cạnh tranh nước với protein, làm chậm quá trình hình thành gluten). + +## 2. Quá trình lên men (Fermentation) + +- **Tác nhân:** Chủ yếu là nấm men (*Saccharomyces cerevisiae*). +- **Cơ chế:** Nấm men chuyển hóa đường (glucose, fructose) thành **cồn (ethanol)** và **khí carbon dioxide (CO2)**. +- **Vai trò:** + - **Làm nở (Leavening):** Khí CO2 bị giữ lại trong mạng lưới gluten, làm bột nở ra. + - **Phát triển hương vị:** Các sản phẩm phụ của quá trình lên men (cồn, axit, ester) tạo ra hương vị phức hợp đặc trưng cho bánh mì. +- **Yếu tố ảnh hưởng:** + - **Nhiệt độ:** Nhiệt độ ấm (24-32°C) là tối ưu cho hoạt động của nấm men. Nhiệt độ quá cao (>60°C) sẽ giết chết men. + - **Nguồn thức ăn:** Đường, tinh bột. + - **Muối:** Điều chỉnh tốc độ lên men, tránh lên men quá nhanh. + - **Độ pH:** Môi trường axit nhẹ là phù hợp. + +## 3. Phản ứng Maillard và Caramel hóa (Maillard Reaction & Caramelization) + +- **Phản ứng Maillard:** + - **Cơ chế:** Phản ứng hóa học giữa **axit amin (từ protein)** và **đường khử (reducing sugars)** dưới tác động của nhiệt độ cao (>140°C). + - **Kết quả:** Tạo ra hàng trăm hợp chất hương vị mới và màu nâu hấp dẫn cho vỏ bánh. Đây KHÔNG phải là quá trình đốt cháy đường đơn thuần. +- **Caramel hóa (Caramelization):** + - **Cơ chế:** Quá trình oxy hóa đường (sugar pyrolysis) ở nhiệt độ cao (thường >160°C). + - **Kết quả:** Tạo ra màu nâu cánh gián và hương vị caramel, hạt dẻ. +- **Sự khác biệt:** Maillard cần có protein, trong khi Caramel hóa chỉ cần đường. Cả hai thường xảy ra đồng thời trên bề mặt sản phẩm bánh. + +## 4. Quá trình hồ hóa tinh bột (Starch Gelatinization) + +- **Cơ chế:** Khi các hạt tinh bột trong bột mì được đun nóng với nước, chúng hấp thụ nước, trương nở và vỡ ra, giải phóng các phân tử amylose và amylopectin, làm cho hỗn hợp trở nên đặc và sệt lại. +- **Nhiệt độ:** Bắt đầu khoảng 60-70°C. +- **Vai trò:** + - **Tạo cấu trúc "ruột" bánh (crumb structure):** Tinh bột bị hồ hóa sẽ đông lại khi nguội, cố định cấu trúc mà mạng lưới gluten đã tạo ra. + - **Giữ ẩm:** Giúp bánh giữ được độ ẩm. +- **Quá trình thoái hóa (Retrogradation):** Khi bánh nguội và để lâu, các phân tử tinh bột (đặc biệt là amylose) sắp xếp lại và đẩy nước ra ngoài. Đây là nguyên nhân chính gây ra hiện tượng bánh bị "chai" hoặc "khô cứng" (staling). + +## 5. Vai trò của Chất béo và Đường (Function of Fats & Sugars) + +- **Chất béo (Fats - e.g., butter, oil):** + - **Làm mềm (Tenderizing):** Bao bọc các hạt bột và protein, cản trở sự hình thành mạng lưới gluten quá mức, tạo ra kết cấu mềm mại. + - **Tăng hương vị và cảm giác miệng (Flavor & Mouthfeel).** + - **Giữ ẩm và kéo dài hạn sử dụng.** + - **Hỗ trợ làm nở (Leavening):** Trong quá trình đánh bông bơ với đường, các bọt khí được tạo ra và giữ lại, giúp bánh nở khi nướng. +- **Đường (Sugars - e.g., sucrose, fructose):** + - **Tạo vị ngọt.** + - **Làm mềm:** Cạnh tranh với protein và tinh bột để lấy nước, làm chậm quá trình hình thành gluten và hồ hóa tinh bột. + - **Giữ ẩm:** Đường là chất hút ẩm (hygroscopic), giúp bánh giữ được độ ẩm lâu hơn. + - **Tạo màu sắc:** Là nhiên liệu cho phản ứng Maillard và Caramel hóa. + - **Nguồn thức ăn cho nấm men.** + +## 6. Chất tạo nở hóa học (Chemical Leaveners) + +- **Baking Soda (Natri Bicarbonate - NaHCO₃):** + - **Cơ chế:** Là một chất kiềm (base). Khi kết hợp với một **axit (acid)** (ví dụ: buttermilk, yogurt, lemon juice, cream of tartar) và chất lỏng, nó sẽ phản ứng để tạo ra khí CO2. + - **Yêu cầu:** Cần có thành phần axit trong công thức. Phản ứng xảy ra ngay khi trộn. +- **Baking Powder (Bột nở):** + - **Cơ chế:** Là một hỗn hợp hoàn chỉnh gồm baking soda (kiềm), một hoặc nhiều loại axit khô (ví dụ: cream of tartar, sodium acid pyrophosphate), và tinh bột (để giữ khô và ngăn phản ứng sớm). + - **Phản ứng:** + - *Single-acting:* Phản ứng một lần khi tiếp xúc với chất lỏng. + - *Double-acting (phổ biến nhất):* Phản ứng lần 1 khi tiếp xúc chất lỏng ở nhiệt độ phòng, và phản ứng lần 2 (mạnh hơn) khi được gia nhiệt trong lò nướng. diff --git a/templates/bakery_rd/README.md b/templates/bakery_rd/README.md new file mode 100644 index 0000000..125acdb --- /dev/null +++ b/templates/bakery_rd/README.md @@ -0,0 +1,49 @@ +# Hệ thống Axiom Prompt cho R&D Bánh kẹo + +Chào mừng bạn đến với hệ thống prompt được cá nhân hóa cho Nghiên cứu và Phát triển (R&D) trong ngành làm bánh. Hệ thống này được xây dựng dựa trên nền tảng của dự án Axiom Prompt Engineering (APE), nhằm cung cấp một bộ công cụ mạnh mẽ, linh hoạt và dựa trên khoa học để giải quyết các thách thức trong ngành. + +## Tổng quan + +Hệ thống này bao gồm một bộ các "Prompt Template" được thiết kế cho các tác vụ R&D cụ thể. Mỗi template hoạt động dựa trên một bộ "Axiom" (chân lý khoa học) cốt lõi được định nghĩa trong `/protocols/bakery_axioms.md`. Điều này đảm bảo rằng tất cả các kết quả đầu ra đều có tính chính xác và nhất quán về mặt khoa học. + +## Các Prompt Template có sẵn + +1. **`recipe_generation.md`**: Dùng để tạo ra các công thức làm bánh mới từ ý tưởng ban đầu, với các ràng buộc cụ thể. +2. **`troubleshooting.md`**: Dùng để chẩn đoán và tìm ra giải pháp cho các vấn đề kỹ thuật gặp phải trong quá trình sản xuất. +3. **`research_analyzer.md`**: Dùng để tóm tắt, phân tích và tìm cảm hứng sáng tạo từ các tài liệu khoa học hoặc kỹ thuật. +4. **`ingredient_comparison.md`**: Dùng để thực hiện các phân tích so sánh chi tiết giữa các loại nguyên liệu khác nhau. +5. **`tech_doc_generator.md`**: Dùng để tự động hóa việc tạo các tài liệu kỹ thuật như Bảng thông số sản phẩm (Spec Sheet) hoặc Quy trình vận hành tiêu chuẩn (SOP). +6. **`ingredient_spec_sheet_generator.md`**: Một công cụ tương tác thông minh để tạo Bảng thông số Kỹ thuật cho nguyên liệu. Nó sẽ chủ động hỏi thêm thông tin nếu dữ liệu ban đầu không đầy đủ. +7. **`shelf_life_study_designer.md`**: Dùng để thiết kế một đề cương nghiên cứu hạn sử dụng (shelf-life study) toàn diện và khoa học cho sản phẩm mới. +8. **`ingredient_testing_protocol.md`**: Tạo ra một quy trình thử nghiệm ứng dụng nguyên liệu bài bản, bao gồm checklist chi tiết từ A-Z và cấu trúc của một báo cáo kết quả chuyên nghiệp. +9. **`commercial_formula_optimizer.md`**: Tập trung vào việc xây dựng một công thức làm bánh có tính thương mại cao, tối ưu về chi phí, quy trình sản xuất và tính ổn định khi sử dụng nguyên liệu chủ lực của công ty. + +## Chế độ Tối ưu hóa (Optimization Modes) + +Đây là trái tim của hệ thống, cho phép bạn điều chỉnh phong cách và độ sâu của phản hồi để phù hợp với nhu-cầu-tại-thời-điểm. Bạn có thể chọn một trong ba chế độ sau: + +### MODE: `Accurate` + +- **Mục tiêu:** Cung cấp thông tin chính xác, chi tiết, và sâu về mặt khoa học. +- **Khi nào sử dụng:** Khi bạn cần câu trả lời dựa trên dữ liệu, bằng chứng khoa học rõ ràng, và cần hiểu rõ "tại sao" đằng sau mỗi hiện tượng. Rất lý tưởng cho việc xây dựng công thức nền tảng, phân tích nguyên nhân gốc rễ của sự cố, hoặc khi cần tạo tài liệu kỹ thuật chính thức. +- **Kết quả mong đợi:** Các bảng so sánh chi tiết, công thức với tỷ lệ phần trăm của thợ làm bánh (baker's percentages), giải thích cặn kẽ về các cơ chế hóa học, và các quy trình có kiểm soát chặt chẽ. + +### MODE: `Efficient` + +- **Mục tiêu:** Cung cấp câu trả lời nhanh chóng, đi thẳng vào vấn đề và có tính ứng dụng ngay lập tức. +- **Khi nào sử dụng:** Khi bạn đang ở trong môi trường sản xuất, cần một giải pháp nhanh, hoặc muốn có một cái nhìn tổng quan mà không cần đi sâu vào chi tiết. Rất phù hợp để xử lý sự cố cấp bách, tạo SOP cô đọng, hoặc khi cần so sánh nhanh giữa các lựa chọn. +- **Kết quả mong đợi:** Các checklist, gạch đầu dòng, hướng dẫn "If-Then", các quy tắc kinh nghiệm (rule of thumb), và các bản tóm tắt cho quản lý (executive summary). + +### MODE: `Creative` + +- **Mục tiêu:** Khơi nguồn cảm hứng, thúc đẩy tư duy đột phá và khám phá những ý tưởng mới lạ. +- **Khi nào sử dụng:** Khi bạn đang trong giai đoạn brainstorm, tìm kiếm sự đổi mới, hoặc muốn nhìn một vấn đề cũ theo một góc độ hoàn toàn mới. Lý tưởng cho việc phát triển sản phẩm mới, tìm kiếm ứng dụng không ngờ tới cho một nguyên liệu, hoặc biến một "lỗi" thành một "tính năng". +- **Kết quả mong đợi:** Các câu hỏi "What if...?", các ý tưởng kết hợp liên ngành, các phép loại suy (analogy) để giải thích khái niệm phức tạp, và các gợi ý cho những thử nghiệm trong tương lai. + +## Cách sử dụng + +1. **Chọn Template:** Dựa vào công việc bạn cần làm (ví dụ: tạo công thức mới -> `recipe_generation.md`). +2. **Điền Tham số:** Mở tệp template và điền thông tin của bạn vào các trường trong dấu ngoặc vuông `[...]`, ví dụ: `[ProductName]`, `[Constraints]`. +3. **Chọn Chế độ Tối ưu:** Quyết định mục tiêu của bạn là gì (chính xác, hiệu quả, hay sáng tạo?) và điền vào trường `[OptimizationMode]`. +4. **Thực thi Prompt:** Sao chép toàn bộ nội dung đã điền vào một mô hình ngôn ngữ lớn (LLM). +5. **Xem các ví dụ:** Tham khảo các tệp trong thư mục `/examples/bakery_rd/` để xem các kịch bản sử dụng thực tế. diff --git a/templates/bakery_rd/commercial_formula_optimizer.md b/templates/bakery_rd/commercial_formula_optimizer.md new file mode 100644 index 0000000..9466dde --- /dev/null +++ b/templates/bakery_rd/commercial_formula_optimizer.md @@ -0,0 +1,80 @@ +# Prompt Template: Tối ưu hóa Công thức Thương mại (Commercial Formula Optimizer) + +## Mục tiêu + +Xây dựng hoặc tối ưu hóa một công thức làm bánh có tính thương mại cao, sử dụng một nguyên liệu "chủ lực" của công ty. Công thức cuối cùng phải khả thi để sản xuất ở quy mô lớn, tối ưu về chi phí và ổn định. + +## Tham số Đầu vào + +- `[CoreIngredient]`: Nguyên liệu chủ lực của công ty cần đưa vào công thức (ví dụ: "Bột trộn sẵn F-550", "Mứt trái cây nhiệt đới S-30", "Hỗn hợp enzyme B-Max"). +- `[ProductConcept]`: Ý tưởng sản phẩm cuối cùng (ví dụ: "Bánh mì ngọt mềm nhân mứt", "Bánh quy xốp cao cấp", "Bánh mì baguette đặc ruột"). +- `[TargetCost]`: Chi phí nguyên liệu mục tiêu cho mỗi kg sản phẩm cuối cùng (ví dụ: "dưới 25,000 VND/kg", "cạnh tranh với sản phẩm X"). +- `[ProductionLine]`: Mô tả ngắn gọn về dây chuyền sản xuất hiện có (ví dụ: "Dây chuyền bán tự động với máy trộn xoắn ốc, máy chia bột, và lò nướng đối lưu", "Dây chuyền công nghiệp hoàn toàn tự động"). + +## Cấu trúc Prompt + +``` +**ROLE:** +You are a Senior Industrial Bakery Product Developer. You are an expert at translating product concepts into commercially viable formulas that are robust, cost-effective, and optimized for large-scale production. You balance sensory quality with the practical realities of a factory environment. + +**CONTEXT:** +The main goal is to develop a commercially viable formula for a **[ProductConcept]** that prominently features our core ingredient: **[CoreIngredient]**. +This formula must be optimized for the following commercial factors: +- **Cost-in-Use:** The final ingredient cost should be approximately **[TargetCost]**. +- **Process-Friendliness:** The formula must be suitable for our **[ProductionLine]**. +- **Stability:** The final product should be stable and consistent from batch to batch. + +**AXIOM COMPLIANCE:** +Your formula and process recommendations must adhere to the Bakery R&D Axioms. For example, any cost-saving ingredient substitution must be evaluated for its impact on `Axiom(GlutenNetworkFormation)` or `Axiom(StalingProcess)`. Processing recommendations must ensure axioms like `Axiom(YeastFermentation)` are controlled and repeatable at scale. + +**INSTRUCTIONS:** +Generate a complete commercial formula and a set of processing recommendations. Your thinking process must be transparent, showing how you are balancing quality with the commercial constraints. + +**OUTPUT FORMAT:** + +--- + +### **CÔNG THỨC THƯƠNG MẠI TỐI ƯU** + +**1. PHÂN TÍCH YÊU CẦU & CHIẾN LƯỢC CÔNG THỨC** +* **Phân tích Nguyên liệu Chủ lực:** [Phân tích ngắn gọn vai trò và các điểm mạnh/yếu của [CoreIngredient] trong ứng dụng này]. +* **Chiến lược Tối ưu hóa:** [Nêu rõ chiến lược để đạt được mục tiêu, ví dụ: "Để đạt được mục tiêu chi phí, chúng ta sẽ sử dụng [CoreIngredient] ở tỷ lệ tối đa cho phép để tận dụng giá tốt của nó, đồng thời giảm các thành phần đắt tiền hơn như bơ và thay thế một phần bằng shortening chuyên dụng. Quy trình sẽ được thiết kế để giảm thiểu thời gian trộn nhằm tăng công suất..."] + +**2. CÔNG THỨC ĐỀ XUẤT (TÍNH THEO BAKER'S PERCENTAGE VÀ CHO MẺ 100KG)** + +| Nguyên liệu | % Baker's | Khối lượng (kg) cho mẻ 100kg Bột | Ghi chú (Lý do lựa chọn/Tỷ lệ) | +| ------------------------- | --------- | -------------------------------- | ------------------------------------------------------------- | +| Bột mì (Loại) | 100.00 | 100.00 | [Ví dụ: Bột mì 11.5% protein để cân bằng cấu trúc và chi phí] | +| **[CoreIngredient]** | **[X.XX]**| **[XX.XX]** | **[Tỷ lệ tối ưu để thể hiện chức năng và đạt mục tiêu chi phí]** | +| Nước | [X.XX] | [XX.XX] | [Điều chỉnh dựa trên khả năng hút nước của [CoreIngredient]] | +| Men (Loại) | [X.XX] | [XX.XX] | [Men khô instant để dễ định lượng trong sản xuất công nghiệp] | +| Muối | [X.XX] | [XX.XX] | [Kiểm soát quá trình lên men và tăng cường hương vị] | +| Phụ gia (nếu có) | [X.XX] | [XX.XX] | [Ví dụ: Chất cải thiện bánh mì để tăng độ ổn định cho bột] | +| Đường | [X.XX] | [XX.XX] | | +| Chất béo (Loại) | [X.XX] | [XX.XX] | [Ví dụ: Shortening để giảm chi phí và tăng độ ổn định] | +| ... (Các thành phần khác) | | | | +| **Tổng cộng** | | | | + +**3. ĐỀ XUẤT QUY TRÌNH SẢN XUẤT QUY MÔ LỚN** +* **Trộn (Mixing):** + * Thứ tự nạp liệu: [Đề xuất thứ tự tối ưu cho máy trộn công nghiệp]. + * Thời gian & Tốc độ: [Ví dụ: 4 phút ở tốc độ chậm, 6-8 phút ở tốc độ nhanh]. + * **CCP 1:** Nhiệt độ bột sau trộn: [Nhiệt độ mục tiêu, ví dụ: 26-28°C]. +* **Lên men Sơ cấp (Bulk Fermentation):** + * Thời gian: [Thời gian đề xuất, có thể ngắn để phù hợp với dây chuyền]. + * **CCP 2:** Điều kiện phòng ủ: [Nhiệt độ, Độ ẩm]. +* **Chia và Tạo hình (Dividing & Moulding):** + * Ghi chú về khả năng tương thích với máy: [Ví dụ: "Bột có độ dính vừa phải, phù hợp với máy chia dầu"]. +* **Lên men Cuối (Final Proof):** + * Thời gian: [Thời gian đề xuất]. + * **CCP 3:** Điều kiện tủ ủ: [Nhiệt độ, Độ ẩm]. +* **Nướng (Baking):** + * Nhiệt độ và Thời gian: [Đề xuất nhiệt độ theo từng vùng của lò nướng công nghiệp (nếu có)]. + +**4. PHÂN TÍCH CÁC YẾU TỐ THƯƠNG MẠI** +* **Ước tính Chi phí (Cost Estimation):** [Phân tích ngắn gọn về chi phí công thức, xác nhận nó có khả năng đạt được [TargetCost]]. +* **Tính khả thi Sản xuất (Production Viability):** [Đánh giá mức độ phù hợp của công thức và quy trình với [ProductionLine]]. +* **Rủi ro Tiềm ẩn (Potential Risks):** [Chỉ ra các rủi ro có thể xảy ra ở quy mô lớn và cách giảm thiểu, ví dụ: "Rủi ro: Bột có thể dính vào máy chia nếu thời gian trộn quá lâu. Giải pháp: Kiểm soát chặt chẽ nhiệt độ bột."]. + +--- +``` diff --git a/templates/bakery_rd/ingredient_comparison.md b/templates/bakery_rd/ingredient_comparison.md new file mode 100644 index 0000000..7d90c6c --- /dev/null +++ b/templates/bakery_rd/ingredient_comparison.md @@ -0,0 +1,59 @@ +# Prompt Template: So sánh Nguyên liệu (Ingredient Comparison) + +## Mục tiêu + +Cung cấp một bản phân tích so sánh chi tiết giữa hai hoặc nhiều nguyên liệu, đánh giá chúng dựa trên các thuộc tính khoa học, chức năng trong sản phẩm, và các yếu tố thương mại. + +## Tham số Đầu vào + +- `[IngredientsToCompare]`: Tên của các nguyên liệu cần so sánh (ví dụ: "Bơ và Margarine", "Men tươi và Men khô", "Xanthan Gum và Guar Gum"). +- `[ApplicationContext]`: Sản phẩm hoặc quy trình cụ thể mà các nguyên liệu này sẽ được sử dụng (ví dụ: "trong bánh Croissant", "cho bánh mì sourdough ủ lạnh", "làm chất ổn định trong nhân bánh không nướng"). +- `[OptimizationMode]`: Chế độ tối ưu hóa mong muốn (`Creative`, `Accurate`, `Efficient`). + +## Cấu trúc Prompt + +``` +**ROLE:** +You are a Senior Food Technologist with specialized expertise in ingredient functionality and application. You provide clear, data-driven comparisons to inform R&D decisions. + +**CONTEXT:** +We need to make an informed decision between the following ingredients for use in [ApplicationContext]: [IngredientsToCompare]. +The analysis should help us choose the optimal ingredient based on our priorities. + +**AXIOM COMPLIANCE:** +Your analysis must connect the functions of the ingredients back to the relevant Bakery R&D Axioms. For example, when comparing fats, you must discuss their impact on Axiom(FatTenderizing) and gluten development. + +**OPTIMIZATION MODE:** [OptimizationMode] + +**INSTRUCTIONS:** +Generate a comparative report for the specified ingredients based on the chosen Optimization Mode. + +- **If Mode is `Accurate`:** + 1. **Comparative Table:** Create a detailed table comparing the ingredients across multiple technical dimensions. + - **Physicochemical Properties:** (e.g., Melting Point, Water Absorption, pH, Composition). + - **Functional Properties in [ApplicationContext]:** (e.g., Effect on Texture, Flavor Contribution, Leavening Power, Stability). + - **Impact on Axioms:** (e.g., How does it affect `Axiom(GlutenNetworkFormation)`, `Axiom(MaillardReaction)`, etc.?). + - **Commercial Factors:** (e.g., Relative Cost, Availability, Shelf Life, Allergen Status). + 2. **In-Depth Analysis:** Following the table, provide a paragraph for each key functional property, explaining the scientific reasons for the differences. + 3. **Data-Driven Recommendation:** Conclude with a recommendation for the best ingredient *for the specific [ApplicationContext]*, justifying your choice based on the evidence presented in the table and analysis. State the trade-offs clearly. + +- **If Mode is `Efficient`:** + 1. **Comparison Dashboard:** Present the information as a simple, easy-to-scan dashboard with clear headings. + - **WINNER FOR COST:** [Ingredient Name] + - **WINNER FOR PERFORMANCE:** [Ingredient Name] + - **WINNER FOR EASE OF USE:** [Ingredient Name] + 2. **Key Differences (Bulleted List):** List the 3-4 most critical differences that a baker or plant manager would care about. + 3. **"Rule of Thumb" Recommendation:** Provide a simple, practical recommendation. (e.g., "Use Butter for premium flavor in croissants. Use Margarine for better layer separation and cost savings in high-volume production."). + 4. **Quick Substitution Guide:** If applicable, provide a direct substitution ratio (e.g., "To replace fresh yeast with active dry yeast, use 50% of the weight and dissolve in warm water first."). + +- **If Mode is `Creative`:** + 1. **Functional Analogy:** Create a simple analogy to explain the core functional difference. (e.g., "Think of Xanthan Gum as a 'spiderweb' that traps water, creating a thick gel. Guar Gum is more like a 'sponge', absorbing water to create viscosity but with less structure."). + 2. **Synergistic Blending:** Instead of choosing one, propose an innovative idea for *blending* the ingredients to achieve a "best of both worlds" result. Explain the scientific rationale for the synergy. (e.g., "Blend 70% butter with 30% high-stability margarine to get the flavor of butter with the workability of margarine for perfect croissant lamination."). + 3. **Unconventional Application:** Suggest a novel application for one of the ingredients that leverages its unique properties, but outside of the typical [ApplicationContext]. (e.g., "Could the high melting point of this specific margarine be used to create a 'confetti' effect in a cookie, where the fat pockets remain solid longer before melting?"). + 4. **Sensory Exploration Prompt:** Propose a simple sensory experiment to subjectively evaluate the differences between the ingredients in the final product. + +**OUTPUT FORMAT:** +- **Comparison Subject:** [IngredientsToCompare] in [ApplicationContext] +- **Comparative Analysis:** (Formatted as a table, dashboard, or analogy-driven text, based on mode) +- **Recommendation / Creative Insight:** +``` diff --git a/templates/bakery_rd/ingredient_spec_sheet_generator.md b/templates/bakery_rd/ingredient_spec_sheet_generator.md new file mode 100644 index 0000000..f83669d --- /dev/null +++ b/templates/bakery_rd/ingredient_spec_sheet_generator.md @@ -0,0 +1,89 @@ +# Prompt Template: Bộ tạo Bảng thông số Kỹ thuật Nguyên liệu (Ingredient Spec Sheet Generator) + +## Mục tiêu + +Tạo ra một Bảng thông số Kỹ thuật (Specification Sheet) chuyên sâu, toàn diện và chính xác cho một nguyên liệu làm bánh. Template này có khả năng tương tác: nếu thiếu thông tin quan trọng, nó sẽ chủ động đặt câu hỏi cho người dùng trước khi tiến hành. + +## Tham số Đầu vào + +- `[IngredientName]`: Tên của nguyên liệu (ví dụ: "Bột cacao kiềm hóa", "Chất ổn định bánh nướng X-2000", "Tinh bột bắp biến tính"). +- `[KnownInformation]`: Tất cả thông tin đã biết về sản phẩm. Đây có thể là một đoạn văn, các gạch đầu dòng, hoặc thậm chí là "chưa có thông tin gì, đây là sản phẩm hoàn toàn mới". + +## Cấu trúc Prompt + +``` +**ROLE:** +You are a highly experienced R&D and Quality Assurance Director in the food industry. Your expertise lies in creating meticulous, accurate, and compliant technical documentation for new and existing ingredients. + +**CONTEXT:** +Your primary task is to generate a comprehensive Technical Specification Sheet for the ingredient: **[IngredientName]**. +All currently available information is provided below: +--- +[KnownInformation] +--- + +**CORE INSTRUCTION: INTERACTIVE DATA GATHERING & GENERATION** + +1. **Analyze Input:** First, carefully analyze the provided [KnownInformation]. Compare it against the list of CRITICAL data fields required for a professional specification sheet: + * **General Description:** What the ingredient is and its primary function. + * **Composition:** A full breakdown of constituent components. + * **Physicochemical Properties:** Key metrics like pH, Moisture Content (%), Water Activity (aw), Ash Content (%), Particle Size, etc. + * **Microbiological Limits:** Standards for TPC, Yeast, Mold, E. coli, Salmonella, etc. + * **Allergen Information:** Presence of any major allergens. + * **Packaging, Storage, and Shelf Life:** How it's packed, where to store it, and for how long. + +2. **Decision Point:** + * **IF** multiple (3 or more) CRITICAL data fields are missing or vague, your **ONLY** action is to **ask the user clarifying questions**. Do **NOT** generate a partial document. Formulate your questions clearly, grouped by category, to efficiently gather the missing data. Start your response with: "Để tạo một bảng thông số kỹ thuật chính xác cho [IngredientName], tôi cần bạn cung cấp thêm một số thông tin quan trọng sau:" + * **ELSE IF** all critical information is present, proceed directly to generating the full specification sheet as detailed in the "OUTPUT FORMAT" section below. + +**AXIOM COMPLIANCE:** +The generated specifications must be scientifically sound. For instance, the stated Shelf Life must be consistent with the specified Water Activity (aw), aligning with principles related to `Axiom(StalingProcess)` and microbial growth. + +**OUTPUT FORMAT (To be generated ONLY when sufficient data is available):** + +--- + +### **BẢNG THÔNG SỐ KỸ THUẬT NGUYÊN LIỆU (INGREDIENT SPECIFICATION SHEET)** + +**1. THÔNG TIN CHUNG (GENERAL INFORMATION)** +* **Tên sản phẩm (Product Name):** +* **Mã sản phẩm (Product Code):** [Placeholder] +* **Nhà cung cấp (Supplier):** [Placeholder] +* **Mô tả (Description):** [Dựa trên thông tin, mô tả chi tiết chức năng và ứng dụng trong ngành bánh] + +**2. THÀNH PHẦN (COMPOSITION)** +* [Liệt kê thành phần theo thứ tự giảm dần của trọng lượng] + +**3. CHỈ TIÊU LÝ HÓA (PHYSICOCHEMICAL PROPERTIES)** +| Chỉ tiêu | Tiêu chuẩn | Phương pháp thử | +| ------------------- | ----------------------- | --------------- | +| Trạng thái | [e.g., Dạng bột mịn, đồng nhất] | Cảm quan | +| Màu sắc | [e.g., Nâu sẫm đặc trưng] | Cảm quan | +| Mùi vị | [e.g., Mùi cacao, không có mùi lạ] | Cảm quan | +| Độ ẩm (% Moisture) | | AOAC [Number] | +| Hoạt độ nước (aw) | | [e.g., Water Activity Meter] | +| pH (dung dịch 10%) | | [e.g., pH meter] | +| Hàm lượng tro (% Ash)| | AOAC [Number] | +| Kích thước hạt | | [e.g., Sieve Analysis] | + +**4. CHỈ TIÊU VI SINH (MICROBIOLOGICAL LIMITS)** +| Chỉ tiêu | Giới hạn (CFU/g) | +| ---------------------------- | ---------------- | +| Tổng số vi sinh vật hiếu khí | < [e.g., 10,000] | +| Nấm men & Nấm mốc | < [e.g., 100] | +| *E. coli* | Âm tính | +| *Salmonella* | Âm tính/25g | + +**5. THÔNG TIN DỊ ỨNG (ALLERGEN DECLARATION)** +* [Liệt kê rõ ràng các chất gây dị ứng có mặt, ví dụ: "Sản phẩm này không chứa chất gây dị ứng nào theo quy định." hoặc "Có chứa: Sữa. Có thể chứa vết: Đậu nành, các loại hạt."] + +**6. ĐÓNG GÓI, BẢO QUẢN VÀ HẠN SỬ DỤNG (PACKAGING, STORAGE & SHELF LIFE)** +* **Đóng gói (Packaging):** [e.g., Bao PP/PE 25kg có lót bên trong] +* **Điều kiện bảo quản (Storage Conditions):** [e.g., Bảo quản nơi khô ráo, thoáng mát, tránh ánh nắng trực tiếp, nhiệt độ 18-22°C, độ ẩm <60%] +* **Hạn sử dụng (Shelf Life):** [e.g., 24 tháng kể từ ngày sản xuất] + +**7. CHỨNG NHẬN VÀ TUÂN THỦ (CERTIFICATIONS & COMPLIANCE)** +* [e.g., FSSC 22000, ISO 9001, Halal, Kosher] + +--- +``` diff --git a/templates/bakery_rd/ingredient_testing_protocol.md b/templates/bakery_rd/ingredient_testing_protocol.md new file mode 100644 index 0000000..92f6e98 --- /dev/null +++ b/templates/bakery_rd/ingredient_testing_protocol.md @@ -0,0 +1,104 @@ +# Prompt Template: Quy trình Thử nghiệm Ứng dụng Nguyên liệu (Ingredient Application Testing Protocol) + +## Mục tiêu + +Tạo ra một đề cương và quy trình thử nghiệm chi tiết để đánh giá hiệu quả của một nguyên liệu mới (hoặc nguyên liệu thay thế) trong một công thức làm bánh cụ thể. Quy trình này bao gồm checklist từng bước và cấu trúc cho một báo cáo kết quả chuyên nghiệp. + +## Tham số Đầu vào + +- `[TestIngredient]`: Tên của nguyên liệu cần thử nghiệm (ví dụ: "Enzyme làm mềm bánh ABC", "Hương vani chịu nhiệt XYZ", "Chất xơ yến mạch F-100"). +- `[ControlIngredient]`: Tên của nguyên liệu đối chứng (nếu có, ví dụ: "Enzyme hiện tại", "Hương vani tiêu chuẩn", "Không sử dụng chất xơ"). +- `[ApplicationRecipe]`: Tên của công thức nền sẽ được sử dụng để thử nghiệm (ví dụ: "Bánh mì sandwich", "Bánh quy bơ", "Bánh bông lan cuộn"). +- `[PrimaryGoal]`: Mục tiêu chính của thử nghiệm (ví dụ: "Cải thiện độ mềm và thời hạn sử dụng", "Giảm chi phí công thức", "Tăng giá trị dinh dưỡng", "Thay thế nhà cung cấp"). + +## Cấu trúc Prompt + +``` +**ROLE:** +You are a meticulous and experienced Bakery Application Specialist. Your core competency is designing and executing structured experiments to evaluate the performance of ingredients in finished products. You think in terms of controls, variables, and measurable outcomes. + +**CONTEXT:** +We need to design a full testing protocol to evaluate **[TestIngredient]** in our **[ApplicationRecipe]**. +- This will be tested against: **[ControlIngredient]**. +- The primary objective of this test is: **[PrimaryGoal]**. + +**AXIOM COMPLIANCE:** +The evaluation criteria within the protocol must be linked to relevant Bakery Axioms. For instance, if the goal is to improve softness, the tests must objectively measure parameters related to `Axiom(StalingProcess)` and `Axiom(FatTenderizing)`. + +**INSTRUCTIONS:** +Generate a comprehensive testing protocol that includes a step-by-step checklist for the bench test and a detailed outline for the final report. + +**OUTPUT FORMAT:** + +--- + +### **QUY TRÌNH THỬ NGHIỆM ỨNG DỤNG NGUYÊN LIỆU** + +**1. TỔNG QUAN DỰ ÁN (PROJECT OVERVIEW)** +* **Nguyên liệu Thử nghiệm:** [TestIngredient] +* **Công thức Nền:** [ApplicationRecipe] +* **Mục tiêu:** [PrimaryGoal] +* **Ngày thử nghiệm:** [Placeholder] +* **Người thực hiện:** [Placeholder] + +**2. THIẾT KẾ THÍ NGHIỆM (EXPERIMENTAL DESIGN)** +* **Công thức Đối chứng (Control):** Công thức [ApplicationRecipe] tiêu chuẩn sử dụng [ControlIngredient] (hoặc không sử dụng). +* **Công thức Thử nghiệm (Test):** Công thức [ApplicationRecipe] được điều chỉnh, thay thế [ControlIngredient] bằng [TestIngredient] ở các tỷ lệ sử dụng đề xuất. + * *Đề xuất các mức thử nghiệm (nếu cần):* [Tự động đề xuất, ví dụ: "Thử ở 3 mức: 0.5%, 1.0%, 1.5% trên trọng lượng bột"]. +* **Biến số duy nhất (Single Variable):** Chỉ có sự thay đổi về nguyên liệu đang thử nghiệm. Tất cả các thành phần, thông số quy trình (thời gian trộn, nhiệt độ, thời gian nướng...) phải được giữ không đổi. + +**3. CHECKLIST QUY TRÌNH THỬ NGHIỆM (STEP-BY-STEP CHECKLIST)** + +**GIAI ĐOẠN 1: CHUẨN BỊ** +* [ ] Xác nhận tất cả nguyên liệu (cho cả mẫu control và test) đã có đủ và đúng mã. +* [ ] Chuẩn bị và cân chính xác tất cả các thành phần theo từng công thức. Dán nhãn rõ ràng. +* [ ] Ghi lại thông tin lô sản xuất (lot number) của [TestIngredient]. +* [ ] Chuẩn bị tất cả các thiết bị cần thiết (máy trộn, lò nướng, tủ ủ, thiết bị đo...). Hiệu chuẩn thiết bị nếu cần. + +**GIAI ĐOẠN 2: THỰC HIỆN TẠI PHÒNG LAB (BENCH WORK)** +* [ ] Trộn bột cho mẫu **Control**. Ghi lại các thông số quan trọng: + * Thời gian trộn (phút): + * Nhiệt độ bột sau khi trộn (°C): + * Đánh giá cảm quan bột (độ dính, độ đàn hồi): +* [ ] Trộn bột cho mẫu **Test**. Ghi lại các thông số tương tự. +* [ ] Thực hiện các bước ủ, tạo hình, và nướng theo đúng quy trình chuẩn của [ApplicationRecipe]. Đảm bảo cả hai mẫu được xử lý song song trong điều kiện giống hệt nhau. +* [ ] Ghi lại thời gian và nhiệt độ nướng thực tế. +* [ ] Sau khi nướng, để sản phẩm nguội hoàn toàn trên giá. Dán nhãn rõ ràng. + +**GIAI ĐOẠN 3: ĐÁNH GIÁ SẢN PHẨM** +* [ ] **Đánh giá sau 24 giờ:** + * [ ] Chụp ảnh sản phẩm (cắt lát và nguyên chiếc) để so sánh trực quan. + * [ ] Đo các thông số vật lý: + * Thể tích hoặc chiều cao nở (cm): + * Trọng lượng sau nướng (g) và tính tỷ lệ hao hụt (%): + * [ ] Phân tích cấu trúc (Texture Analysis) để đo độ mềm/cứng (nếu có thiết bị). + * [ ] Tổ chức đánh giá cảm quan (sensory evaluation) nội bộ, so sánh các chỉ tiêu: + * Hình dạng & Màu sắc vỏ + * Cấu trúc ruột bánh + * Mùi + * Vị + * Cảm giác miệng (Mouthfeel) +* [ ] **Đánh giá Hạn sử dụng (nếu mục tiêu có liên quan):** + * [ ] Lưu mẫu ở điều kiện quy định và lặp lại các bước đánh giá cấu trúc và cảm quan tại các mốc thời gian (ví dụ: Ngày 3, Ngày 7). + +**4. CẤU TRÚC BÁO CÁO KẾT QUẢ (FINAL REPORT OUTLINE)** + +* **1.0 Tóm tắt (Executive Summary):** Mục tiêu, kết quả chính và đề xuất. +* **2.0 Giới thiệu (Introduction):** Giới thiệu về [TestIngredient] và mục tiêu của thử nghiệm. +* **3.0 Vật liệu và Phương pháp (Materials & Methods):** + * 3.1 Công thức chi tiết (Control vs. Test). + * 3.2 Quy trình thực hiện. + * 3.3 Các phương pháp đánh giá đã sử dụng. +* **4.0 Kết quả và Thảo luận (Results & Discussion):** + * 4.1 So sánh ảnh hưởng đến quy trình (dữ liệu trộn bột...). + * 4.2 So sánh các chỉ tiêu vật lý (bảng số liệu thể tích, độ hao hụt...). + * 4.3 So sánh kết quả phân tích cấu trúc (biểu đồ độ cứng theo thời gian). + * 4.4 Tổng hợp kết quả đánh giá cảm quan (biểu đồ mạng nhện hoặc bảng điểm). +* **5.0 Kết luận (Conclusion):** Trả lời trực tiếp câu hỏi mục tiêu. [TestIngredient] có đạt được [PrimaryGoal] không? +* **6.0 Đề xuất (Recommendation):** + * Chấp thuận/Không chấp thuận việc sử dụng [TestIngredient]. + * Đề xuất tỷ lệ sử dụng tối ưu. + * Đề xuất các bước tiếp theo (ví dụ: thử nghiệm ở quy mô lớn hơn, tối ưu hóa thêm...). + +--- +``` diff --git a/templates/bakery_rd/recipe_generation.md b/templates/bakery_rd/recipe_generation.md new file mode 100644 index 0000000..39cd3a0 --- /dev/null +++ b/templates/bakery_rd/recipe_generation.md @@ -0,0 +1,62 @@ +# Prompt Template: Sáng tạo Công thức Bánh Mới (Recipe Generation) + +## Mục tiêu + +Tạo ra một công thức làm bánh mới, chi tiết và khả thi dựa trên một loạt các yêu cầu, ràng buộc và một chế độ tối ưu hóa được chỉ định. + +## Tham số Đầu vào + +- `[ProductName]`: Tên hoặc mô tả sản phẩm cần tạo (ví dụ: "Bánh mì brioche thuần chay", "Bánh quy ít đường cho người tiểu đường", "Bánh sừng bò nhân sầu riêng"). +- `[KeyIngredients]`: Các thành phần chính bắt buộc phải có hoặc muốn sử dụng. +- `[Constraints]`: Các ràng buộc bắt buộc (ví dụ: "không chứa gluten", "không sữa", "chi phí thấp", "sử dụng men tự nhiên", "thời gian ủ dưới 2 giờ"). +- `[OptimizationMode]`: Chế độ tối ưu hóa mong muốn (`Creative`, `Accurate`, `Efficient`). + +## Cấu trúc Prompt + +``` +**ROLE:** +You are a world-class R&D Bakery Scientist with deep knowledge of food chemistry, ingredient functionality, and innovative product development. Your task is to generate a novel yet practical bakery recipe. + +**CONTEXT:** +The goal is to develop a new recipe for: [ProductName]. +This recipe must incorporate the following key ingredients: [KeyIngredients]. +It is critical that the final recipe adheres to these constraints: [Constraints]. + +**AXIOM COMPLIANCE:** +You must strictly adhere to the established Bakery R&D Axioms. Specifically, consider: +- Axiom(GlutenNetworkFormation) if wheat-based. +- Axiom(YeastFermentation) or Axiom(ChemicalLeavening) for leavening. +- Axiom(FatTenderizing) for texture. +- Axiom(MaillardReaction) and Axiom(Caramelization) for crust development. +- All other relevant axioms from the protocol. + +**OPTIMIZATION MODE:** [OptimizationMode] + +**INSTRUCTIONS:** +Based on the specified Optimization Mode, generate the recipe following these guidelines: + +- **If Mode is `Creative`:** + 1. **Ideation:** Propose 2-3 innovative concepts that fit the request. Briefly describe the unique selling proposition of each. + 2. **Concept Selection:** Choose the most promising concept. + 3. **Core Innovation:** Clearly state the novel element in your recipe (e.g., an unusual ingredient pairing, a unique technique, a structural innovation). + 4. **Recipe Generation:** Provide a detailed recipe with baker's percentages and step-by-step instructions, emphasizing the innovative steps. Explain *why* the creative elements are expected to work from a scientific standpoint. + +- **If Mode is `Accurate`:** + 1. **Scientific Foundation:** Start by explaining the key scientific principles that will govern the success of this recipe (e.g., "For a gluten-free brioche, the primary challenge is mimicking the viscoelastic properties of gluten. We will achieve this using a hydrocolloid matrix of psyllium husk and xanthan gum..."). + 2. **Formula Precision:** Provide a precise recipe using baker's percentages (with flour as 100%). Justify the percentage of each key ingredient by referencing its function and its interaction with others, citing the relevant axioms. + 3. **Process Control:** Detail the step-by-step method with critical control points (CCPs) highlighted (e.g., target dough temperature, specific mixing times, proofing indicators). + 4. **Expected Outcome:** Describe the expected sensory profile of the final product (texture, flavor, aroma, appearance) and how the formula achieves it. + +- **If Mode is `Efficient`:** + 1. **Process Simplification:** Design the recipe to minimize steps, equipment, and time, without sacrificing the core quality of the product. + 2. **Streamlined Formula:** Provide a clear, concise recipe in grams/liters. Baker's percentages are optional. + 3. **Workflow:** Present the instructions as a streamlined workflow, suitable for a production environment. Use clear, direct commands. + 4. **Scalability & Cost:** Briefly mention considerations for scaling the recipe up and suggest any potential cost-saving ingredient substitutions that would not significantly alter the final product. + +**OUTPUT FORMAT:** +- **Recipe Title:** A clear, descriptive name. +- **Concept/Scientific Rationale:** (Based on the mode) +- **Ingredients:** (With baker's percentages where applicable) +- **Method:** Step-by-step instructions. +- **Mode-Specific Notes:** (e.g., Innovation details, CCPs, or Scalability notes) +``` diff --git a/templates/bakery_rd/research_analyzer.md b/templates/bakery_rd/research_analyzer.md new file mode 100644 index 0000000..583d211 --- /dev/null +++ b/templates/bakery_rd/research_analyzer.md @@ -0,0 +1,60 @@ +# Prompt Template: Phân tích Tài liệu Khoa học (Research Analyzer) + +## Mục tiêu + +Trích xuất, tóm tắt và diễn giải những thông tin quan trọng nhất từ một bài báo khoa học, một tài liệu kỹ thuật hoặc một văn bản chuyên ngành, sau đó trình bày chúng theo một định dạng dễ hiểu và hữu ích cho chuyên gia R&D. + +## Tham số Đầu vào + +- `[TextContent]`: Toàn bộ nội dung văn bản của bài báo hoặc tài liệu cần phân tích. +- `[ResearchFocus]`: Lĩnh vực hoặc câu hỏi cụ thể mà người dùng quan tâm nhất trong tài liệu (ví dụ: "ảnh hưởng của enzyme đến thời hạn sử dụng của bánh mì", "các phương pháp thay thế gluten", "kỹ thuật tạo hương mới"). +- `[OptimizationMode]`: Chế độ tối ưu hóa mong muốn (`Creative`, `Accurate`, `Efficient`). + +## Cấu trúc Prompt + +``` +**ROLE:** +You are a Research Scientist specializing in Cereal and Bakery Science. You possess the ability to quickly parse dense technical literature, identify the core findings, and translate them into practical applications for R&D professionals. + +**CONTEXT:** +You are tasked with analyzing the following technical document. +Your primary focus is to extract insights related to: [ResearchFocus]. +Here is the document content: +--- +[TextContent] +--- + +**AXIOM COMPLIANCE:** +While analyzing, cross-reference the findings in this paper with the established Bakery R&D Axioms. Note any findings that either support, contradict, or refine our existing understanding as defined in the axioms. + +**OPTIMIZATION MODE:** [OptimizationMode] + +**INSTRUCTIONS:** +Analyze the provided text and generate a summary report based on the specified Optimization Mode. + +- **If Mode is `Accurate`:** + 1. **Structured Abstract (Z-format):** + - **Purpose:** State the main objective of the study in one sentence. + - **Methods:** Briefly describe the key methodologies, materials, and analytical techniques used. + - **Key Findings:** List the 3-5 most significant quantitative results with data. + - **Conclusion:** State the main conclusion of the study in one sentence. + 2. **Deep Dive on [ResearchFocus]:** Provide a more detailed summary of the sections directly related to your research focus. Explain the findings and their statistical significance. + 3. **Axiom Correlation:** Discuss how the paper's results align with or challenge our Bakery R&D Axioms. For example, "The paper's finding that using 0.5% transglutaminase strengthens the dough matrix directly supports Axiom(GlutenNetworkFormation)...". + 4. **Critique & Limitations:** Briefly mention any limitations of the study or areas where the methodology could be questioned. + +- **If Mode is `Efficient`:** + 1. **Executive Summary (TL;DR):** Provide a 3-sentence summary of the entire paper. What was the problem, what did they find, and why does it matter? + 2. **Key Takeaways (Bulleted List):** List the top 3-5 actionable takeaways for a bakery R&D professional. Start each bullet with a verb. (e.g., "- CONSIDER using enzyme X to improve shelf life."). + 3. **Direct Answer to [ResearchFocus]:** Provide a direct, concise answer to the user's main question based on the text. + 4. **"Red Flags" or "Golden Nuggets":** Point out any single piece of data or finding that is either a major warning or a game-changing opportunity. + +- **If Mode is `Creative`:** + 1. **Core Concept Distillation:** In one paragraph, explain the central idea of the research in a simple, non-technical analogy (e.g., "Think of this new enzyme as a 'molecular tailor' that stitches the gluten strands together, creating a stronger fabric..."). + 2. **"What If...?" Scenarios:** Based on the findings, generate 3-4 speculative "What if...?" questions to inspire new product ideas. (e.g., "What if we applied this hydrocolloid technology not to gluten-free bread, but to create a croissant with an impossibly long shelf life?"). + 3. **Cross-Domain Innovation:** Suggest how the core principle from this paper could be combined with a concept from a completely different field (e.g., "The encapsulation technique they used for yeast could be used to encapsulate flavor compounds, releasing them only during baking. Imagine a 'flavor-burst' sourdough."). + 4. **Future Research Brainstorm:** Propose a follow-up experiment that you would design to build upon the findings of this paper. + +**OUTPUT FORMAT:** +- **Document Title & Source (if available)** +- **Analysis Report (structured according to the chosen mode)** +``` diff --git a/templates/bakery_rd/shelf_life_study_designer.md b/templates/bakery_rd/shelf_life_study_designer.md new file mode 100644 index 0000000..a78e4b2 --- /dev/null +++ b/templates/bakery_rd/shelf_life_study_designer.md @@ -0,0 +1,80 @@ +# Prompt Template: Nhà thiết kế Nghiên cứu Hạn sử dụng (Shelf-Life Study Designer) + +## Mục tiêu + +Thiết kế một kế hoạch nghiên cứu hạn sử dụng (shelf-life study) toàn diện và khoa học cho một sản phẩm bánh kẹo cụ thể, xác định các chỉ tiêu quan trọng cần theo dõi và lịch trình lấy mẫu phù hợp. + +## Tham số Đầu vào + +- `[ProductName]`: Tên sản phẩm cần nghiên cứu (ví dụ: "Bánh quy yến mạch đóng gói", "Bánh mì sandwich tươi", "Nhân kem custard thanh trùng"). +- `[PackagingType]`: Loại bao bì được sử dụng (ví dụ: "Túi OPP dán nhiệt", "Hộp giấy có cửa sổ bóng kính", "Khay nhựa hàn miệng PA/PE"). +- `[StorageConditions]`: Điều kiện bảo quản dự kiến (ví dụ: "Nhiệt độ phòng, 18-25°C", "Bảo quản mát, 2-5°C"). +- `[EstimatedShelfLife]`: Hạn sử dụng dự kiến hoặc mong muốn (ví dụ: "6 tháng", "7 ngày", "30 ngày"). +- `[FailureModes]`: Các yếu tố được cho là sẽ làm sản phẩm hỏng hoặc không đạt chất lượng (ví dụ: "Vi sinh vật phát triển", "bị ỉu", "mất mùi thơm", "oxy hóa chất béo/có mùi gắt dầu"). + +## Cấu trúc Prompt + +``` +**ROLE:** +You are a Senior Food Scientist and Shelf-Life Specialist. You are an expert in designing, executing, and interpreting shelf-life studies for a wide range of food products, with a specialization in bakery items. + +**CONTEXT:** +We need to design a comprehensive shelf-life study protocol for our new product: **[ProductName]**. +- **Packaging:** [PackagingType] +- **Storage Conditions:** [StorageConditions] +- **Desired Shelf Life:** [EstimatedShelfLife] +- **Primary Concerns (Failure Modes):** [FailureModes] + +**AXIOM COMPLIANCE:** +The study design must be grounded in scientific principles. The choice of analytical tests must directly relate to the potential failure modes and the underlying axioms. For example, if "staling" is a concern, the protocol must include tests that measure changes in texture and water activity, directly reflecting `Axiom(StalingProcess)`. If fat oxidation is a concern, tests like Peroxide Value should be included, reflecting chemical changes not covered by basic axioms but core to food science. + +**INSTRUCTIONS:** +Based on the provided information, generate a complete and scientifically robust Shelf-Life Study Protocol. The protocol should be detailed enough for a food technologist to execute. + +**OUTPUT FORMAT:** + +--- + +### **ĐỀ CƯƠNG NGHIÊN CỨU HẠN SỬ DỤNG (SHELF-LIFE STUDY PROTOCOL)** + +**1. THÔNG TIN DỰ ÁN (PROJECT INFORMATION)** +* **Tên sản phẩm (Product Name):** [ProductName] +* **Mã dự án (Project Code):** [Placeholder] +* **Ngày bắt đầu (Start Date):** [Placeholder] +* **Mục tiêu (Objective):** Xác định và xác nhận hạn sử dụng là [EstimatedShelfLife] cho [ProductName] dưới điều kiện bảo quản [StorageConditions]. + +**2. KẾ HOẠCH LẤY MẪU (SAMPLING PLAN)** +* **Điều kiện Lưu mẫu (Storage Protocol):** + * **Điều kiện Chuẩn (Standard):** [StorageConditions]. Số lượng mẫu: [Tính toán số lượng]. + * **Điều kiện Lão hóa Cấp tốc (Accelerated - Optional):** [Nếu phù hợp, đề xuất nhiệt độ/độ ẩm cao hơn, ví dụ: 35-40°C]. Mục đích: dự đoán hạn sử dụng nhanh hơn. **Lưu ý:** Thử nghiệm cấp tốc cần được xác nhận bằng thử nghiệm thời gian thực. +* **Thời điểm Lấy mẫu (Time Points):** Dựa trên [EstimatedShelfLife], lịch trình lấy mẫu được đề xuất như sau: + * **T0:** Ngày sản xuất (Baseline control) + * **Các mốc tiếp theo:** [Tự động tạo ra một lịch trình hợp lý. Ví dụ, cho HSD 6 tháng: T1 (1 tháng), T2 (2 tháng), T3 (3 tháng), T4 (4 tháng), T5 (5 tháng), T6 (6 tháng)] + * **Mốc cuối cùng (End-of-Life + Margin):** [Thêm một mốc vượt qua HSD dự kiến, ví dụ: T7 (7 tháng) để kiểm tra biên độ an toàn]. + +**3. CHỈ TIÊU PHÂN TÍCH (ANALYTICAL PARAMETERS)** +*Bảng dưới đây liệt kê các chỉ tiêu sẽ được phân tích tại mỗi thời điểm lấy mẫu. Lựa chọn các chỉ tiêu dựa trên các Yếu tố Gây hỏng (Failure Modes) đã nêu.* + +| Hạng mục | Chỉ tiêu Phân tích | Lý do lựa chọn | +| ------------------- | ------------------------------ | ---------------------------------------------------- | +| **Cảm quan** | Đánh giá theo thang điểm (màu sắc, mùi, vị, cấu trúc) | Chỉ số quan trọng nhất về sự chấp nhận của người tiêu dùng. | +| **Lý hóa** | Hoạt độ nước (aw) | Liên quan trực tiếp đến sự phát triển vi sinh vật và thay đổi cấu trúc (`Axiom(StalingProcess)`). | +| | Độ ẩm (%) | Theo dõi sự mất hoặc tăng ẩm qua bao bì. | +| | Phân tích cấu trúc (Texture Analysis) | Đo lường sự thay đổi độ cứng, độ giòn - các yếu tố chính của sự "chai cứng" hoặc "ỉu". | +| | pH | Sự thay đổi pH có thể chỉ ra hoạt động của vi sinh vật. | +| | *[Thêm chỉ tiêu phù hợp]* Chỉ số Peroxide (PV) | *[Chỉ thêm nếu "oxy hóa chất béo" là một mối lo]* Đo lường mức độ oxy hóa ban đầu của chất béo. | +| **Vi sinh** | Tổng số vi sinh vật hiếu khí (TPC) | Chỉ số chung về tổng lượng vi sinh vật. | +| | Nấm men & Nấm mốc (Yeast & Mold) | Là vi sinh vật gây hỏng phổ biến nhất cho bánh kẹo. | +| | *[Thêm chỉ tiêu phù hợp]* *E.coli, Salmonella* | *[Chỉ thêm nếu nguyên liệu có rủi ro cao]* An toàn thực phẩm. | + +**4. TIÊU CHUẨN CHẤP NHẬN (ACCEPTANCE CRITERIA)** +* Sản phẩm được coi là đạt hạn sử dụng nếu tại mốc thời gian đó, tất cả các chỉ tiêu dưới đây đều được thỏa mãn: + * **Cảm quan:** Điểm đánh giá trung bình > [e.g., 6/9] và không có mùi vị lạ. + * **Lý hóa:** Các chỉ số nằm trong giới hạn cho phép (ví dụ: aw < 0.85). + * **Vi sinh:** Tất cả các chỉ tiêu vi sinh đều dưới ngưỡng an toàn đã quy định. + +**5. BÁO CÁO KẾT QUẢ (REPORTING)** +* Tất cả dữ liệu sẽ được ghi lại và phân tích. Một báo cáo cuối cùng sẽ được đưa ra, kết luận về hạn sử dụng thực tế của sản phẩm và đề xuất các cải tiến (nếu có). + +--- +``` diff --git a/templates/bakery_rd/tech_doc_generator.md b/templates/bakery_rd/tech_doc_generator.md new file mode 100644 index 0000000..ae4e6ef --- /dev/null +++ b/templates/bakery_rd/tech_doc_generator.md @@ -0,0 +1,59 @@ +# Prompt Template: Tạo Tài liệu Kỹ thuật (Tech Doc Generator) + +## Mục tiêu + +Tự động tạo ra các tài liệu kỹ thuật cơ bản cho một sản phẩm bánh kẹo, chẳng hạn như Bảng thông số kỹ thuật sản phẩm (Product Specification Sheet) hoặc Hướng dẫn Quy trình Sản xuất (Standard Operating Procedure - SOP). + +## Tham số Đầu vào + +- `[ProductName]`: Tên sản phẩm. +- `[ProductDescription]`: Mô tả ngắn gọn về sản phẩm (ví dụ: "Bánh mì sandwich gối, mềm, vỏ mỏng"). +- `[FullRecipe]`: Công thức chi tiết, bao gồm thành phần và tỷ lệ phần trăm. +- `[ManufacturingProcess]`: Quy trình sản xuất chi tiết từng bước. +- `[OptimizationMode]`: Chế độ tối ưu hóa mong muốn (`Accurate`, `Efficient`). Chế độ `Creative` không áp dụng cho tác vụ này. + +## Cấu trúc Prompt + +``` +**ROLE:** +You are a Quality Assurance (QA) and Food Safety Specialist in a modern bakery production facility. Your job is to create clear, accurate, and standardized technical documents for internal and external use. + +**CONTEXT:** +We have finalized the development of a new product and need to generate the official technical documentation. +- **Product Name:** [ProductName] +- **Description:** [ProductDescription] +- **Final Recipe:** [FullRecipe] +- **Manufacturing Process:** [ManufacturingProcess] + +**AXIOM COMPLIANCE:** +Your generated documents must implicitly reflect the scientific principles defined in the Bakery R&D Axioms. For example, Critical Control Points (CCPs) in the SOP should correspond to steps where axioms like Axiom(YeastFermentation) or Axiom(StarchGelatinization) are actively controlled. + +**OPTIMIZATION MODE:** [OptimizationMode] + +**INSTRUCTIONS:** +Based on the provided information, generate a standard technical document. + +- **If Mode is `Accurate` (Generate a full Product Specification Sheet):** + 1. **Header:** Create a professional header with Product Name, Document Code (placeholder), Version, and Effective Date. + 2. **Product Description:** Use the provided description. + 3. **Ingredient Declaration:** Generate a legally compliant ingredient list, listing ingredients in descending order of weight. + 4. **Allergen Statement:** Automatically identify and declare common allergens present in the recipe (e.g., Wheat, Milk, Eggs, Soy). + 5. **Sensory Specifications:** Define the expected sensory characteristics (Appearance, Color, Aroma, Flavor, Texture). + 6. **Physicochemical Parameters:** Define key parameters with target values and tolerances (e.g., Weight, Dimensions, pH, Water Activity [a_w] - provide typical ranges if not specified). + 7. **Microbiological Standards:** Provide a standard list of microbiological limits for a baked good (e.g., Total Plate Count, Yeast & Mold, E. coli, Salmonella). + 8. **Shelf Life & Storage:** State the recommended shelf life and storage conditions. + 9. **Packaging Information:** Describe the primary packaging. + +- **If Mode is `Efficient` (Generate a concise Standard Operating Procedure - SOP):** + 1. **Header:** Create a simple header: SOP - [ProductName] - Production. + 2. **Objective:** State the purpose of the SOP in one sentence (e.g., "To define the standardized procedure for the production of [ProductName] to ensure consistency and quality."). + 3. **Scope:** Define the start and end points of the procedure (e.g., "From scaling of ingredients to final packaging."). + 4. **Step-by-Step Instructions:** Convert the [ManufacturingProcess] into a numbered list of clear, concise commands. + 5. **Critical Control Points (CCPs):** For each relevant step, add a highlighted CCP with a specific target and tolerance. + - *Example Step:* "6. Bulk Fermentation." + - *CCP:* **Target dough temperature: 26°C (±1°C). Target volume increase: 80%.** + 6. **Record Keeping:** Specify what records need to be kept at each CCP (e.g., "Log dough temperature on Batch Sheet X."). + +**OUTPUT FORMAT:** +- A well-structured technical document formatted according to the chosen mode. Use tables and bullet points for clarity. +``` diff --git a/templates/bakery_rd/troubleshooting.md b/templates/bakery_rd/troubleshooting.md new file mode 100644 index 0000000..b751dd1 --- /dev/null +++ b/templates/bakery_rd/troubleshooting.md @@ -0,0 +1,57 @@ +# Prompt Template: Chẩn đoán & Giải quyết Sự cố (Troubleshooting) + +## Mục tiêu + +Cung cấp một phân tích khoa học và các giải pháp thực tiễn cho một vấn đề cụ thể gặp phải trong quá trình làm bánh. + +## Tham số Đầu vào + +- `[ProductType]`: Loại sản phẩm đang gặp sự cố (ví dụ: "Bánh mì sourdough", "Bánh croissant", "Bánh bông lan"). +- `[ProblemDescription]`: Mô tả chi tiết về vấn đề (ví dụ: "Ruột bánh đặc và ẩm", "Vỏ bánh quá dày và cứng", "Bánh không nở đủ", "Bánh bị xẹp sau khi nướng"). +- `[RecipeOrProcess]`: Công thức hoặc quy trình đã sử dụng (càng chi tiết càng tốt, bao gồm thành phần, tỷ lệ, thời gian, nhiệt độ). +- `[OptimizationMode]`: Chế độ tối ưu hóa mong muốn (`Creative`, `Accurate`, `Efficient`). + +## Cấu trúc Prompt + +``` +**ROLE:** +You are a Master Baker and Food Scientist, an expert diagnostician for complex baking problems. Your approach is systematic, science-based, and practical. + +**CONTEXT:** +We are facing a technical issue with our [ProductType]. +The core problem is: [ProblemDescription]. +Here is the recipe and process that was followed: [RecipeOrProcess]. + +**AXIOM COMPLIANCE:** +Your analysis must be grounded in the Bakery R&D Axioms. You will deconstruct the problem by identifying which axioms may have been violated or misinterpreted during the process. + +**OPTIMIZATION MODE:** [OptimizationMode] + +**INSTRUCTIONS:** +Analyze the provided information and deliver a troubleshooting report based on the specified Optimization Mode. + +- **If Mode is `Accurate` (Default for Troubleshooting):** + 1. **Problem Decomposition:** Break down the [ProblemDescription] into observable sensory characteristics. + 2. **Hypothesis Generation:** Based on the provided recipe and process, formulate a list of the 3 most likely root causes. For each hypothesis, state the specific Bakery Axiom that is potentially being violated (e.g., "Hypothesis 1: Under-fermentation. This violates Axiom(YeastFermentation) by not allowing sufficient CO2 production to leaven the dough structure."). + 3. **Evidence Analysis:** Explain the evidence from the recipe/process that supports each hypothesis. + 4. **Systematic Solutions:** For each root cause, provide a set of clear, actionable solutions. Explain the scientific rationale behind each solution (e.g., "Solution: Increase the bulk fermentation time by 30% or until the dough has risen by 50% in volume. This will ensure adequate CO2 production..."). + 5. **Preventative Measures:** Suggest changes to the process or formula to prevent the issue from recurring. + +- **If Mode is `Efficient`:** + 1. **Most Likely Cause:** Immediately identify the single most probable cause of the problem with a brief, direct explanation. + 2. **Quick Fixes:** Provide a checklist of 2-3 immediate adjustments to try first. These should be the simplest and fastest changes to implement. + 3. **Top 3 Process Checks:** List the top 3 critical control points in the process that need to be double-checked next time (e.g., "1. Final Dough Temp: 25°C?", "2. Proofing visually checked?", "3. Oven pre-heated fully?"). + 4. **Clear "If-Then" Guidance:** Provide simple "If X, then do Y" instructions. (e.g., "IF your dough feels stiff, THEN add 5% more water next time."). + +- **If Mode is `Creative`:** + 1. **Problem Reframing:** Reframe the "problem" as an opportunity. (e.g., "A dense, gummy crumb isn't a failure; it's the starting point for a fantastic bread pudding or a dense, European-style rye bread. Let's explore that."). + 2. **"Embrace the Flaw" Ideas:** Propose 2-3 innovative product concepts that leverage the unintended outcome. For each, describe how to slightly modify the current process to perfect this new product. + 3. **Innovative Prevention:** Suggest a non-traditional technique or ingredient that could solve the original problem in a novel way (e.g., "Instead of simply increasing yeast, consider adding 1% diastatic malt powder to improve enzyme activity, which will enhance fermentation and crust color simultaneously."). + 4. **Learning & Inspiration:** Conclude by explaining what this "failure" teaches about the ingredients' interactions and how it can inspire future experiments. + +**OUTPUT FORMAT:** +- **Problem Statement:** A concise summary of the issue. +- **Analysis & Root Cause(s):** (Detailed hypothesis or a single likely cause, based on mode) +- **Actionable Solutions:** (Systematic solutions, a quick-fix checklist, or creative ideas, based on mode) +- **Preventative Measures / Future Directions:** +```