Step 6: Prompt Template Evaluation — Develop Phase
1. Log in as Data Scientist , open the “ChemExtractAI Develop” and upload the Chemical Mixture Test Dataset — Development project.
2. In the project, click New Asset and select “Chat and build prompts with foundation models” (Prompt Template).
3. In the Structured tab, choose the foundation model: granite-13b-instruct v2.
4. Open Model Parameters and set the following:
- Max Tokens: 20
- Decoding Method: Greedy
- Repetition Penalty: 1
5. Enter the prompt instruction and define the prompt variable {mixture_text} using the {#} icon.
Prompt Instruction:
You are a research chemist. Given an unstructured text description of a chemical mixture containing elements, acids, bases, or salts, extract each chemical component in the order it appears and map it to its exact standard chemical formula. Output ONLY a comma-separated list of chemical formulas. Do not include percentages, fillers, or conversational text.
Input Mixture: {mixture_text}
Chemical Formulas:
6. Go to the Try section of the prompt template, test with a complex sample (e.g., “Each capsule contains Ascorbic Acid at 500 mg, Calcium Carbonate at 250 mg, Ferrous Fumarate at 30 mg, and Zinc Sulfate at 20 mg.”), and verify the output generates C6H8O6, CaCO3, ZnSO4, FeC₁₂H₁₄O₄.
Fig 17: Prompt lab for extraction
7. Click Save As in the prompt template editor, name it Chemical Extraction Template, set the task type to Extraction, and click Save.
8. Evaluation of prompt template:
- Go to Project Assets tab, open the overflow menu on the prompt template, and click Evaluate.
- Associate a Watson Machine Learning instance and run evaluation using test data with ground-truth formulas generated from notebook.
Fig 18: Notebook output data as training data
- The alerts observed in the Generative AI Quality metric (Faithfulness, Exact Match, ROUGE-1/BLEU) are minimized due to zero-shot calibration.
Fig 19: Prompt lab evaluation
Step 7: Tracking the AI Use Case in Lifecycle — Develop Phase
1. Log in to IBM Software Hub as the Data Scientist.
2. After evaluating the prompt template, click on the overflow menu on the template and select AI Factsheet.
3. In the AI Factsheet, click Track in AI Use case.
4. Select the Custom Approach, then choose New Asset Record and select the version (1.0.0).
Fig 20: Versioning
5. Review all details and confirm to track the prompt template.
6. Once tracking is enabled, the Develop phase will appear highlighted in the AI Use Case Lifecycle.
Fig 21: Track in AI Use case
7. Go to the use case and from the actions menu, select “Submit the use case for initial approval”.
Step 8: Import Develop Project into Validate Project
- Log in as the Data Scientist and open the “ChemExtractAI Validate”. Click the project dropdown menu (top-right) and select Export Project.
Fig 22 : Export project
2 . Enter a name, select the assets to include and export the ZIP file.
3 . Log in as data scientist and open the Validation Project.
4 . Click the project dropdown and choose Import Project.
5 . Upload the exported ZIP file from the Develop phase.
Fig 23: Import project
Step 9: Validation Data Preparation
- Run the imported synthetic data generator to create a new test dataset.
- Run the notebook to update the target column containing comma-separated formulas.
Step 10 : Evaluation and Tracking of Prompt Template — Validate Phase
1. Log in to IBM Software Hub as the data scientist.
2. Open the Validation Project and locate the imported prompt template.
3. Evaluate the prompt template using holdout validation data containing diverse multi-component mixtures (e.g., Titanium + Phosphoric Acid + Potassium Sulfate → Ti, H₃PO₄, K₂SO₄).
4. Verify that precision and faithfulness exceed 98% with zero hallucinated chemical formulas.
5. Track the prompt template in the AI Factsheet of the Validation project, registering version 1.0.1.
Fig 24: Evaluate in validate phase
Step 11: Submit AI Use Case for Approval and Complete Questionnaire in IBM Watson Governance
1. Log in back to cluster as Data Quality Analyst User.
2. Click on AI use case Automated Chemical Entity Extraction and Formula Standardization use case from main navigation menu, go to the Use Case section → from the Actions menu, select Submit for initial approval.
3. Click the Home button (top left), then go to the My Tasks tab.
4. Confirm that two questionnaires are generated for the use case (AI Risk Identification and Applicability Assessment).
Fig 25: Questionnaire 1
Fig 26: Questionnaire 2
5. Open each questionnaire, review, and complete them.
6. Go to the Admin tab of the use case.
7. Change the status of the use case to “Approved for deployment”.
Step 12: Promote Prompt Template to Deployment Space
1. Log in as Data Scientist, open the Validation Project.
2. In Assets, locate the Prompt Template.
3. Click the overflow menu (⋮) → select Promote to deployment space.
4. Choose the deployment space (ChemExtractAI Deployment Space) and confirm.
5. From the prompt template’s overflow menu in the space, click Deploy.
6. Select Online Deployment, name it Chemical Formula Extraction Deployment, and deploy.
Fig 27: Promote to space
Step 13 : Evaluate Prompt Template in Operate Phase
- Log in to IBM Software Hub as the Data Scientist and open the ChemExtractAI Deployment Space.
- Upload your test data.
- Locate and open the deployed prompt template, then go to the Test tab.
Fig 28: Create deployment
4. Enter sample mixture descriptions, click Generate, and review the output formulas for formatting and precision.
5. Switch to the Evaluate tab, click Activate now, then select Evaluate now.
6. Upload Payload data (streaming mixture inputs) and Feedback data (verified chemical targets).
Fig 29: Setting up for evaluation
7. Run evaluation to generate operational metrics for Generative AI Quality.
Fig 30: Evaluation
8. Navigate to the AI Use Case Lifecycle tab, click on “Export Report”, and download the AI Factsheet report as a PDF.
Fig 31: Download the AI factsheet pdf document
9. Open the AI Factsheet to review the full lifecycle summary.

Fig 32: Download AI FactSheet
Conclusion :
The real value of governed chemical AI goes beyond converting unstructured text into standardized formulas — by combining the semantic capabilities of IBM watsonx.ai with the governance and traceability of IBM watsonx.governance, organizations can transform raw chemical information into actionable intelligence. This creates a continuous intelligence layer across laboratories, suppliers, manufacturing, and regulatory processes, where every AI-generated decision remains explainable and auditable. As formulation data continues to grow, this approach evolves into an intelligent safety and compliance ecosystem identifying emerging risks earlier, incorporating regulatory changes faster, and supporting critical decisions with evidence, moving organizations from reactive chemical analysis to proactive chemical intelligence, and turning complex scientific data into safer products, faster research, and more responsible innovation.
Get started today, and let us know how your pipeline evolves we’d love to hear from you.
#watsonxai #watsonxgovernance #IBMSoftwareHub #CloudPakforData #PromptEngineering #PromptTuning #GenerativeAI #FoundationModels #SyntheticData #AIGovernance #ModelGovernance #AILifecycle #AIFactsheet #DataScience #NLP #Spotlight #Tutorial #IBMCommunity