{"prompt":[{"role":"system","content":"You are a cannabis lab analyst"},{"role":"user","content":"\n I have the markdown of a cannabis product lab results : Certainly! Based on the provided lab report markdown, here's the extracted cannabinoids and potency results table in markdown format:\n\n```markdown\n# Cannabinoids Potency Results\n\n| Cannabinoid | Method | Result | Units |\n|-------------|--------|--------|-------|\n| \u03949-THC | HPLC | 0.110 | mg\/g |\n\n```\n\nThis table includes the cannabinoid \u03949-THC and its corresponding potency result obtained using the HPLC method..\n Give me the total thc percentage, the delta 9 percentage and the thca percentage from the given lab report.\n The results are found in the results percentage column.\n \n The different possibilities of writing delta 9 in the lab report is similar to: \n\n \u03949-THC,Delta 9-THC,D9-THC,\u03949-TETRAHYDROCANNABINOL,\u03949-TETRAHYDROCANNABINOL (D9-THC),D9-Tetrahydrocannabinol,D9-Tetrahydrocannabinol (D9-THC),\u0394-9 THC,\u0394-9-Tetrahydrocannabinol (\u0394-9 THC),Tetrahydrocannabinol (\u03949-THC),delta 9-Tetrahydrocannabinol,delta 9-Tetrahydrocannabinol (THC),d9-THC*,\u03949-Tetrahydrocannabinol (\u03949-THC);\n \n The different possibilities of writing thca in the lab report is similar to: \n\n THCA,Tetrahydrocannabinolic Acid,Tetrahydrocannabinolic Acid (THCA),\u0394-9-Tetrahydrocannabinolic Acid,THCA-A,\u0394-9-Tetrahydrocannabinolic Acid (THCA-A),\u03949-THC Acid,\u03949-THC Acid (THCA),\u03949-THCA,THCa,\u03949-TETRAHYDROCANNABINOLIC ACID,\u03949-TETRAHYDROCANNABINOLIC ACID (THCA),D9-Tetrahydrocannabinolic acid,D9-Tetrahydrocannabinolic acid (THCa),delta-9-Tetrahydrocannabinolic Acid, delta-9-Tetrahydrocannabinolic Acid(THC-A),THC-A,\u03949-Tetrahydrocannabinolic Acid (\u03949-THCA);\n "}],"jsonSchema":{"name":"lab_report_analyte_information","strict":false,"schema":{"type":"object","properties":{"totalThcPercentage":{"type":"number","description":"The total thc or total active thc percentage of the product"},"delta9Percentage":{"type":"number","description":"The delta 9 percentage \/ thc 9 percentage of the product"},"thcaPercentage":{"type":"number","description":"The thca percentage of the product"}},"required":[],"additionalProperties":false}}}
{"prompt":[{"role":"user","content":"\n This is a markdown for a cannabis product lab report:\n ---START MARKDOWN HERE---\n \"\\nCTLA \\nContract Testing Laboratories of America\\n\\n# Certificate of Analysis\\n\\n## Sample Information\\n\\n- **CTLA ID:** 139604\\n- **Date Received:** 6\\\/10\\\/2025\\n- **Sample Name:** Willie's Remedy + THC Infused 750mL\\n- **Lot Number:** BTL251006\\n- **Customer:** Big Brands Utah\\n\\n| Analysis | Method | MDL | Specification | Result | Units | |\\n| -------------------- | ----------------------------------- | --------------- | ------------- | ------ | ----- | ---- |\\n| Rapid Complete Micro | Total Aerobic Microbial Count (USP) | USP <2021> | 100 | Report | cfu\\\/g | |\\n| | Total Coliforms (BAM) (MOD) | BAM CH. 4 (MOD) | 10 | Report | cfu\\\/g | |\\n| | E.Coli BAM (MOD) | BAM CH. 4 (MOD) | | Report | | |\\n| | Salmonella | USP <2022> | | Report | | |\\n| | Staphylococcus aureus <2022> | USP <2022> | | Report | | |\\n| | Rapid Yeast and Mold | AOAC 2014.05 | 10 | Report | cfu\\\/g | |\\n| | \\u03949-THC | HPLC | | Report | 0.110 | mg\\\/g |\\n\\n- **Serving = 1.5 fl oz (44mL)**\\n- **DB 06\\\/26**\\n\\n**PRELIMINARY REPORT:** this report is being provided for your convenience. Completed results are included above, any tests without results are still in progress and a final COA will be provided once all testing is completed.\\n\\nSpecifications provided by the Customer. Results with an asterisk (*) denote Specifications should be reviewed by the Customer. \\nThis Certificate of Analysis represents data for the sample submitted and does not constitute a guarantee of quality for the entire product from which it was taken. These results are provided for the benefit of the Customer. MDL = Method Detection Limit. This document is not to be altered or reproduced except by the original authorizing body (CTLA)\\n\\n6\\\/10\\\/2025 \\n[Signature] \\nQuality Manager\\n\\n151 E 3450 N, Ste 202, Spanish Fork, UT 84660 \\n(385) 477-4999 \\nPage 1 of 0\\n\"\n ---END OF MARKDOWN---\n \n Act like you are an ai that can extract all dates from a lab report\n Give me all the date text from this report in a table markdown format and do not derive any dates\n "}]}
{"prompt":"\n I have table of dates from a lab report of a cannabis product in markdown format:\n ```markdown\n| Date |\n|--------------|\n| 6\/10\/2025 |\n| 6\/10\/2025 |\n| 06\/26 |\n``` \n\n Convert all the date values in this table to standard ISO Format (yyyy-mm-dd)\n "}
{"id":"chatcmpl-BwqnnV8wP48vQQoFNfCJmR00PEx2Y","object":"chat.completion","created":1753365695,"model":"gpt-4o-2024-08-06","system_fingerprint":"fp_a288987b44","choices":[{"index":0,"message":{"role":"assistant","content":"Certainly! To convert the dates from your markdown table to ISO format (yyyy-mm-dd), we need to interpret the date values correctly:\n\n1. For `6\/10\/2025`:\n - Assuming this is in mm\/dd\/yyyy format, the ISO format will be `2025-06-10`.\n\n2. For `06\/10\/2025`:\n - Assuming this uses the same mm\/dd\/yyyy format, the ISO format remains `2025-06-10`.\n\n3. For `06\/26`:\n - Since the year is missing, it might be assumed to refer to the current year when the data was last complete, or a common assumption year. If it's intended as mm\/dd in 2023, the ISO format will be `2023-06-26`.\n\nHere's your updated markdown table with the dates in ISO format:\n\n```markdown\n| Date |\n|------------|\n| 2025-06-10 |\n| 2025-06-10 |\n| 2023-06-26 |\n```"},"finish_reason":"stop"}],"usage":{"prompt_tokens":99,"completion_tokens":213,"total_tokens":312,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0,"audio_tokens":0}}}
{"prompt":[{"role":"system","content":"You are a lab report analyst that can extract correct dates"},{"role":"user","content":"\n I have table of dates from a lab report of a cannabis product in markdown format:\n Certainly! To convert the dates from your markdown table to ISO format (yyyy-mm-dd), we need to interpret the date values correctly:\n\n1. For `6\/10\/2025`:\n - Assuming this is in mm\/dd\/yyyy format, the ISO format will be `2025-06-10`.\n\n2. For `06\/10\/2025`:\n - Assuming this uses the same mm\/dd\/yyyy format, the ISO format remains `2025-06-10`.\n\n3. For `06\/26`:\n - Since the year is missing, it might be assumed to refer to the current year when the data was last complete, or a common assumption year. If it's intended as mm\/dd in 2023, the ISO format will be `2023-06-26`.\n\nHere's your updated markdown table with the dates in ISO format:\n\n```markdown\n| Date |\n|------------|\n| 2025-06-10 |\n| 2025-06-10 |\n| 2023-06-26 |\n``` \n Give me the extraction date and give me the expiry date.\n \n The extraction date in the table can be similar to\n Date,Reported,Completion Date,Date Issued,Completed Date,Date Collected,Production Date,Date Completed\n \n The expiry date in the table can be similar to\n Expires,Expiry date,Expiry,Expiration Date\n "}],"jsonSchema":{"name":"extract_correct_dates","strict":false,"schema":{"type":"object","properties":{"expiryDate":{"type":"string","description":"Expiry date of the lab report."},"reportDate":{"type":"string","description":"The date the report was created or the date the sample was extracted"}},"required":[],"additionalProperties":false}}}
{"prompt":[{"role":"user","content":"\n This is a markdown for a cannabis product lab report:\n ---START MARKDOWN HERE---\n \"\\nCTLA Contract Testing Laboratories of America\\n\\n# Certificate of Analysis\\n\\n## Sample Information\\n\\n- **CTLA ID:** 139721\\n- **Date Received:** 6\\\/11\\\/2025\\n- **Sample Name:** Willie's Remedy + THC Infused 750mL\\n- **Lot Number:** BTL251106\\n- **Customer:** Practical Beverage\\n\\n| Analysis | Method | MDL | Specification | Result | Units |\\n| -------------------- | --------------- | ------ | ------------- | ------ | ----- |\\n| Rapid Complete Micro | USP <2021> | 100 | Report | <100 | cfu\\\/g |\\n| | BAM CH. 4 (MOD) | 10 | Report | <10 | cfu\\\/g |\\n| | BAM CH. 4 (MOD) | Report | Absent | | |\\n| | USP <2022> | Report | Absent | | |\\n| | USP <2022> | Report | Absent | | |\\n| | AOAC 2014.05 | 10 | Report | <10 | cfu\\\/g |\\n| \\u03949-THC | HPLC | Report | 0.1185 | mg\\\/g | |\\n\\nBB 0626\\n\\n6\\\/16\\\/2025\\n\\nSpecifications provided by the Customer. Results with an asterisk (*) denote Specifications should be verified by the Customer. This Certificate of Analysis represents data for the sample submitted and does not constitute a guarantee of quality for the entire product from which it was taken. These results are provided for the benefit of the Customer. MDL = Method Detection Limit. This document is not to be altered or reproduced except by the original authorizing body (CTLA).\\n\\n151 E 3450 N, Ste 202, Spanish Fork, UT 84660 (385) 477-4999 Page 1 of 0\"\n ---END OF MARKDOWN---\n \n Act like you are a cannabis lab analyst\n Extract the cannabis product name, product type, sample matrix\/product type and the laboratory name.\n The product type can be cannabis, kratom or mushroom\n "}],"jsonSchema":{"name":"lab_report_data","strict":false,"schema":{"type":"object","properties":{"lab_name":{"type":"string","description":"The laboratory that conducted the analysis"},"product_name":{"type":"string","description":"The name of the cannabis product"},"product_type":{"type":"string","description":"The type of the product","enum":["cannabis","kratom","mushroom"]},"sample_matrix":{"type":"string","description":"The sample matrix also known as the type of the product"}},"required":[],"additionalProperties":false}}}
{"prompt":[{"role":"user","content":"\n This is a markdown for a cannabis product lab report:\n ---START MARKDOWN HERE---\n \nCertificate of Analysis\n1 of 1\n\n# WILLIE'S REMEDY STRAWBERRY WATERMELON\n\n**Sample ID:** 525D0845.01 \n**Type:** Finished Product \n**Matrix:** Beverage \n**Unit Size:** 355g \n\n**Batch ID:** CWL252204 \n**Collected:** 4\/25\/2025 \n**Received:** 4\/25\/2025 \n**Completed:** 4\/25\/2025 \n\n**Client** \nMidwest Extraction Services \n507-214-3550 \nLic. #: 20211071 \n\n| Total THC | Total THC | Total Cannabinoids |\n|-----------|-----------|--------------------|\n| 5.28mg\/unit | 0.0% | 0.00% |\n\n## Cannabinoids by HPLC-UV\n\n| Analyte | LOQ (mg\/mL) | Results (%) | Results (mg\/unit) |\n| ------- | ----------- | ----------- | ----------------- |\n| CBDVA | --- | 0.00000 | 0.00 |\n| CBDV | --- | 0.00000 | 0.00 |\n| CBDA | --- | 0.00000 | 0.00 |\n| CBGA | 0.0003 | 0.00000 | 0.00 |\n| CBG | 0.0003 | 0.00600 | 2.14 |\n| CBD | 0.0003 | 0.00569 | 2.11 |\n| THCV | --- | 0.00000 | 0.00 |\n| THCVA | --- | 0.00000 | 0.00 |\n| CBN | 0.0003 | 0.00004 | 0.14 |\n| d9-THC | 0.0003 | 0.0149 | 5.28 |\n| d8-THC | 0.0003 | 0.00000 | 0.00 |\n| CBC | --- | 0.00000 | 0.00 |\n| THCA | --- | 0.00000 | 0.00 |\n| CBCA | --- | 0.00000 | 0.00 |\n| Total | 0.003 | | |\n\nLOQ = Limit of Quantification; Total THC = d9-THC + (0.877 x THCA); Total CBD = CBD + (0.877 x CBDA)\n\n----\n\n**Analyst:** Johanna Holloway \n**Date:** 04\/25\/2025 \n\n2300 Brown Ave ste 130, \nWaseca, MN 56093 \n(507)-214-3550 #6 \nanalytics@finaLabs.co \n\nThis item has been tested by Fina Analytics and the results relate only to the sample tested. Fina Analytics makes no claim as to the efficacy, safety or other risks associated with de or non-detected amounts of substances reported herein. The reported result is based on the sample weight. This Certificate of Analysis shall not be reproduced except in full, without approval of Fina Analytics. Validated testing methodologies with an ISO IEC 17025:2017 accredited quality system was used when an (*) is present on the Certificate of Analysis. Measurement of uncertainty is not used for pass\/fail conditions but available upon request.\n ---END OF MARKDOWN---\n \n Act like you are a lab analyst that can extract cannabinoids data from a lab report\n Give me the cannabinoids and potency results table. Give me the result in a markdown format\n "}]}
{"prompt":[{"role":"user","content":"\n This is a markdown for a cannabis product lab report:\n ---START MARKDOWN HERE---\n \"\\nCTLA Contract Testing Laboratories of America\\n\\n# Certificate of Analysis\\n\\n## Sample Information\\n\\n- **CTLA ID:** 139721\\n- **Date Received:** 6\\\/11\\\/2025\\n- **Sample Name:** Willie's Remedy + THC Infused 750mL\\n- **Lot Number:** BTL251106\\n- **Customer:** Practical Beverage\\n\\n| Analysis | Method | MDL | Specification | Result | Units |\\n| -------------------- | --------------- | ------ | ------------- | ------ | ----- |\\n| Rapid Complete Micro | USP <2021> | 100 | Report | <100 | cfu\\\/g |\\n| | BAM CH. 4 (MOD) | 10 | Report | <10 | cfu\\\/g |\\n| | BAM CH. 4 (MOD) | Report | Absent | | |\\n| | USP <2022> | Report | Absent | | |\\n| | USP <2022> | Report | Absent | | |\\n| | AOAC 2014.05 | 10 | Report | <10 | cfu\\\/g |\\n| \\u03949-THC | HPLC | Report | 0.1185 | mg\\\/g | |\\n\\nBB 0626\\n\\n6\\\/16\\\/2025\\n\\nSpecifications provided by the Customer. Results with an asterisk (*) denote Specifications should be verified by the Customer. This Certificate of Analysis represents data for the sample submitted and does not constitute a guarantee of quality for the entire product from which it was taken. These results are provided for the benefit of the Customer. MDL = Method Detection Limit. This document is not to be altered or reproduced except by the original authorizing body (CTLA).\\n\\n151 E 3450 N, Ste 202, Spanish Fork, UT 84660 (385) 477-4999 Page 1 of 0\"\n ---END OF MARKDOWN---\n \n Act like you are a lab analyst that can extract cannabinoids data from a lab report\n Give me the cannabinoids and potency results table. Give me the result in a markdown format\n "}]}
{"id":"chatcmpl-BwqnxT7sHEwtkzwG1P9znFrMXrU17","object":"chat.completion","created":1753365705,"model":"gpt-4o-2024-08-06","system_fingerprint":"fp_a288987b44","choices":[{"index":0,"message":{"role":"assistant","content":"Certainly! Below is the extracted cannabinoids and potency results table from the provided lab report in markdown format:\n\n```markdown\n## Cannabinoids and Potency Results\n\n| Cannabinoid | Method | Specification | Result | Units |\n|-------------|--------|---------------|--------|-------|\n| \\u03949-THC | HPLC | 0.1185 | mg\/g | |\n```\n\nThis table provides the analytical results for the \u03949-THC cannabinoid present in the sample, specified with the method used for its determination and the observed result in terms of concentration."},"finish_reason":"stop"}],"usage":{"prompt_tokens":509,"completion_tokens":121,"total_tokens":630,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0,"audio_tokens":0}}}
{"prompt":[{"role":"system","content":"You are a cannabis lab analyst"},{"role":"user","content":"\n I have the markdown of a cannabis product lab results : Certainly! Below is the **Cannabinoids and Potency Results Table** extracted from the provided lab report, formatted in Markdown as requested:\n\n```markdown\n## Cannabinoids and Potency Results\n\n| Cannabinoid | LOQ (mg\/mL) | Results (%) | Results (mg\/unit) |\n| ----------- | ----------- | ----------- | ----------------- |\n| CBDVA | --- | 0.00000 | 0.00 |\n| CBDV | --- | 0.00000 | 0.00 |\n| CBDA | --- | 0.00000 | 0.00 |\n| CBGA | 0.0003 | 0.00000 | 0.00 |\n| CBG | 0.0003 | 0.00600 | 2.14 |\n| CBD | 0.0003 | 0.00569 | 2.11 |\n| THCV | --- | 0.00000 | 0.00 |\n| THCVA | --- | 0.00000 | 0.00 |\n| CBN | 0.0003 | 0.00004 | 0.14 |\n| d9-THC | 0.0003 | 0.01490 | 5.28 |\n| d8-THC | 0.0003 | 0.00000 | 0.00 |\n| CBC | --- | 0.00000 | 0.00 |\n| THCA | --- | 0.00000 | 0.00 |\n| CBCA | --- | 0.00000 | 0.00 |\n| **Total** | 0.003 | | |\n\n**Notes:**\n- LOQ = Limit of Quantification\n- Total THC = d9-THC + (0.877 x THCA)\n- Total CBD = CBD + (0.877 x CBDA)\n```\n\nLet me know if you need assistance with anything else!.\n Give me the total thc percentage, the delta 9 percentage and the thca percentage from the given lab report.\n The results are found in the results percentage column.\n \n The different possibilities of writing delta 9 in the lab report is similar to: \n\n \u03949-THC,Delta 9-THC,D9-THC,\u03949-TETRAHYDROCANNABINOL,\u03949-TETRAHYDROCANNABINOL (D9-THC),D9-Tetrahydrocannabinol,D9-Tetrahydrocannabinol (D9-THC),\u0394-9 THC,\u0394-9-Tetrahydrocannabinol (\u0394-9 THC),Tetrahydrocannabinol (\u03949-THC),delta 9-Tetrahydrocannabinol,delta 9-Tetrahydrocannabinol (THC),d9-THC*,\u03949-Tetrahydrocannabinol (\u03949-THC);\n \n The different possibilities of writing thca in the lab report is similar to: \n\n THCA,Tetrahydrocannabinolic Acid,Tetrahydrocannabinolic Acid (THCA),\u0394-9-Tetrahydrocannabinolic Acid,THCA-A,\u0394-9-Tetrahydrocannabinolic Acid (THCA-A),\u03949-THC Acid,\u03949-THC Acid (THCA),\u03949-THCA,THCa,\u03949-TETRAHYDROCANNABINOLIC ACID,\u03949-TETRAHYDROCANNABINOLIC ACID (THCA),D9-Tetrahydrocannabinolic acid,D9-Tetrahydrocannabinolic acid (THCa),delta-9-Tetrahydrocannabinolic Acid, delta-9-Tetrahydrocannabinolic Acid(THC-A),THC-A,\u03949-Tetrahydrocannabinolic Acid (\u03949-THCA);\n "}],"jsonSchema":{"name":"lab_report_analyte_information","strict":false,"schema":{"type":"object","properties":{"totalThcPercentage":{"type":"number","description":"The total thc or total active thc percentage of the product"},"delta9Percentage":{"type":"number","description":"The delta 9 percentage \/ thc 9 percentage of the product"},"thcaPercentage":{"type":"number","description":"The thca percentage of the product"}},"required":[],"additionalProperties":false}}}
{"prompt":[{"role":"user","content":"\n This is a markdown for a cannabis product lab report:\n ---START MARKDOWN HERE---\n \nCertificate of Analysis\n1 of 1\n\n# WILLIE'S REMEDY STRAWBERRY WATERMELON\n\n**Sample ID:** 525D0845.01 \n**Type:** Finished Product \n**Matrix:** Beverage \n**Unit Size:** 355g \n\n**Batch ID:** CWL252204 \n**Collected:** 4\/25\/2025 \n**Received:** 4\/25\/2025 \n**Completed:** 4\/25\/2025 \n\n**Client** \nMidwest Extraction Services \n507-214-3550 \nLic. #: 20211071 \n\n| Total THC | Total THC | Total Cannabinoids |\n|-----------|-----------|--------------------|\n| 5.28mg\/unit | 0.0% | 0.00% |\n\n## Cannabinoids by HPLC-UV\n\n| Analyte | LOQ (mg\/mL) | Results (%) | Results (mg\/unit) |\n| ------- | ----------- | ----------- | ----------------- |\n| CBDVA | --- | 0.00000 | 0.00 |\n| CBDV | --- | 0.00000 | 0.00 |\n| CBDA | --- | 0.00000 | 0.00 |\n| CBGA | 0.0003 | 0.00000 | 0.00 |\n| CBG | 0.0003 | 0.00600 | 2.14 |\n| CBD | 0.0003 | 0.00569 | 2.11 |\n| THCV | --- | 0.00000 | 0.00 |\n| THCVA | --- | 0.00000 | 0.00 |\n| CBN | 0.0003 | 0.00004 | 0.14 |\n| d9-THC | 0.0003 | 0.0149 | 5.28 |\n| d8-THC | 0.0003 | 0.00000 | 0.00 |\n| CBC | --- | 0.00000 | 0.00 |\n| THCA | --- | 0.00000 | 0.00 |\n| CBCA | --- | 0.00000 | 0.00 |\n| Total | 0.003 | | |\n\nLOQ = Limit of Quantification; Total THC = d9-THC + (0.877 x THCA); Total CBD = CBD + (0.877 x CBDA)\n\n----\n\n**Analyst:** Johanna Holloway \n**Date:** 04\/25\/2025 \n\n2300 Brown Ave ste 130, \nWaseca, MN 56093 \n(507)-214-3550 #6 \nanalytics@finaLabs.co \n\nThis item has been tested by Fina Analytics and the results relate only to the sample tested. Fina Analytics makes no claim as to the efficacy, safety or other risks associated with de or non-detected amounts of substances reported herein. The reported result is based on the sample weight. This Certificate of Analysis shall not be reproduced except in full, without approval of Fina Analytics. Validated testing methodologies with an ISO IEC 17025:2017 accredited quality system was used when an (*) is present on the Certificate of Analysis. Measurement of uncertainty is not used for pass\/fail conditions but available upon request.\n ---END OF MARKDOWN---\n \n Act like you are an ai that can extract all dates from a lab report\n Give me all the date text from this report in a table markdown format and do not derive any dates\n "}]}
{"prompt":[{"role":"system","content":"You are a cannabis lab analyst"},{"role":"user","content":"\n I have the markdown of a cannabis product lab results : Certainly! Below is the extracted cannabinoids and potency results table from the provided lab report in markdown format:\n\n```markdown\n## Cannabinoids and Potency Results\n\n| Cannabinoid | Method | Specification | Result | Units |\n|-------------|--------|---------------|--------|-------|\n| \\u03949-THC | HPLC | 0.1185 | mg\/g | |\n```\n\nThis table provides the analytical results for the \u03949-THC cannabinoid present in the sample, specified with the method used for its determination and the observed result in terms of concentration..\n Give me the total thc percentage, the delta 9 percentage and the thca percentage from the given lab report.\n The results are found in the results percentage column.\n \n The different possibilities of writing delta 9 in the lab report is similar to: \n\n \u03949-THC,Delta 9-THC,D9-THC,\u03949-TETRAHYDROCANNABINOL,\u03949-TETRAHYDROCANNABINOL (D9-THC),D9-Tetrahydrocannabinol,D9-Tetrahydrocannabinol (D9-THC),\u0394-9 THC,\u0394-9-Tetrahydrocannabinol (\u0394-9 THC),Tetrahydrocannabinol (\u03949-THC),delta 9-Tetrahydrocannabinol,delta 9-Tetrahydrocannabinol (THC),d9-THC*,\u03949-Tetrahydrocannabinol (\u03949-THC);\n \n The different possibilities of writing thca in the lab report is similar to: \n\n THCA,Tetrahydrocannabinolic Acid,Tetrahydrocannabinolic Acid (THCA),\u0394-9-Tetrahydrocannabinolic Acid,THCA-A,\u0394-9-Tetrahydrocannabinolic Acid (THCA-A),\u03949-THC Acid,\u03949-THC Acid (THCA),\u03949-THCA,THCa,\u03949-TETRAHYDROCANNABINOLIC ACID,\u03949-TETRAHYDROCANNABINOLIC ACID (THCA),D9-Tetrahydrocannabinolic acid,D9-Tetrahydrocannabinolic acid (THCa),delta-9-Tetrahydrocannabinolic Acid, delta-9-Tetrahydrocannabinolic Acid(THC-A),THC-A,\u03949-Tetrahydrocannabinolic Acid (\u03949-THCA);\n "}],"jsonSchema":{"name":"lab_report_analyte_information","strict":false,"schema":{"type":"object","properties":{"totalThcPercentage":{"type":"number","description":"The total thc or total active thc percentage of the product"},"delta9Percentage":{"type":"number","description":"The delta 9 percentage \/ thc 9 percentage of the product"},"thcaPercentage":{"type":"number","description":"The thca percentage of the product"}},"required":[],"additionalProperties":false}}}
{"prompt":[{"role":"user","content":"\n This is a markdown for a cannabis product lab report:\n ---START MARKDOWN HERE---\n \"\\nCTLA Contract Testing Laboratories of America\\n\\n# Certificate of Analysis\\n\\n## Sample Information\\n\\n- **CTLA ID:** 139721\\n- **Date Received:** 6\\\/11\\\/2025\\n- **Sample Name:** Willie's Remedy + THC Infused 750mL\\n- **Lot Number:** BTL251106\\n- **Customer:** Practical Beverage\\n\\n| Analysis | Method | MDL | Specification | Result | Units |\\n| -------------------- | --------------- | ------ | ------------- | ------ | ----- |\\n| Rapid Complete Micro | USP <2021> | 100 | Report | <100 | cfu\\\/g |\\n| | BAM CH. 4 (MOD) | 10 | Report | <10 | cfu\\\/g |\\n| | BAM CH. 4 (MOD) | Report | Absent | | |\\n| | USP <2022> | Report | Absent | | |\\n| | USP <2022> | Report | Absent | | |\\n| | AOAC 2014.05 | 10 | Report | <10 | cfu\\\/g |\\n| \\u03949-THC | HPLC | Report | 0.1185 | mg\\\/g | |\\n\\nBB 0626\\n\\n6\\\/16\\\/2025\\n\\nSpecifications provided by the Customer. Results with an asterisk (*) denote Specifications should be verified by the Customer. This Certificate of Analysis represents data for the sample submitted and does not constitute a guarantee of quality for the entire product from which it was taken. These results are provided for the benefit of the Customer. MDL = Method Detection Limit. This document is not to be altered or reproduced except by the original authorizing body (CTLA).\\n\\n151 E 3450 N, Ste 202, Spanish Fork, UT 84660 (385) 477-4999 Page 1 of 0\"\n ---END OF MARKDOWN---\n \n Act like you are an ai that can extract all dates from a lab report\n Give me all the date text from this report in a table markdown format and do not derive any dates\n "}]}
{"prompt":"\n I have table of dates from a lab report of a cannabis product in markdown format:\n ```markdown\n| Date Text | Context |\n|------------------|--------------------------|\n| 4\/25\/2025 | Collected |\n| 4\/25\/2025 | Received |\n| 4\/25\/2025 | Completed |\n| 04\/25\/2025 | Analyst Date |\n``` \n\n Convert all the date values in this table to standard ISO Format (yyyy-mm-dd)\n "}
{"id":"chatcmpl-Bwqo25voculCdag39IPcs2McKxEWt","object":"chat.completion","created":1753365710,"model":"gpt-4o-2024-11-20","choices":[{"index":0,"message":{"role":"assistant","content":"Here is your table with dates converted to ISO format (yyyy-mm-dd):\n\n```markdown\n| Date Text | Context |\n|------------------|--------------------------|\n| 2025-04-25 | Collected |\n| 2025-04-25 | Received |\n| 2025-04-25 | Completed |\n| 2025-04-25 | Analyst Date |\n```"},"finish_reason":"stop"}],"usage":{"prompt_tokens":134,"completion_tokens":88,"total_tokens":222,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0,"audio_tokens":0}}}
{"prompt":"\n I have table of dates from a lab report of a cannabis product in markdown format:\n ```markdown\n| Date |\n|--------------|\n| 6\/11\/2025 |\n| 6\/16\/2025 |\n``` \n\n Convert all the date values in this table to standard ISO Format (yyyy-mm-dd)\n "}
{"id":"chatcmpl-Bwqo3pcqXIMrfFLWgPDKZ3zCVMnrO","object":"chat.completion","created":1753365711,"model":"gpt-4o-2024-08-06","system_fingerprint":"fp_a288987b44","choices":[{"index":0,"message":{"role":"assistant","content":"To convert dates from the format mm\/dd\/yyyy to ISO format (yyyy-mm-dd), you can rearrange the components of each date. Here is the table with the dates converted to ISO format:\n\n```markdown\n| Date |\n|------------|\n| 2025-06-11 |\n| 2025-06-16 |\n```"},"finish_reason":"stop"}],"usage":{"prompt_tokens":92,"completion_tokens":68,"total_tokens":160,"prompt_tokens_details":{"cached_tokens":0,"audio_tokens":0},"completion_tokens_details":{"reasoning_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0,"audio_tokens":0}}}
{"prompt":[{"role":"system","content":"You are a lab report analyst that can extract correct dates"},{"role":"user","content":"\n I have table of dates from a lab report of a cannabis product in markdown format:\n Here is your table with dates converted to ISO format (yyyy-mm-dd):\n\n```markdown\n| Date Text | Context |\n|------------------|--------------------------|\n| 2025-04-25 | Collected |\n| 2025-04-25 | Received |\n| 2025-04-25 | Completed |\n| 2025-04-25 | Analyst Date |\n``` \n Give me the extraction date and give me the expiry date.\n \n The extraction date in the table can be similar to\n Date,Reported,Completion Date,Date Issued,Completed Date,Date Collected,Production Date,Date Completed\n \n The expiry date in the table can be similar to\n Expires,Expiry date,Expiry,Expiration Date\n "}],"jsonSchema":{"name":"extract_correct_dates","strict":false,"schema":{"type":"object","properties":{"expiryDate":{"type":"string","description":"Expiry date of the lab report."},"reportDate":{"type":"string","description":"The date the report was created or the date the sample was extracted"}},"required":[],"additionalProperties":false}}}
{"prompt":[{"role":"system","content":"You are a lab report analyst that can extract correct dates"},{"role":"user","content":"\n I have table of dates from a lab report of a cannabis product in markdown format:\n To convert dates from the format mm\/dd\/yyyy to ISO format (yyyy-mm-dd), you can rearrange the components of each date. Here is the table with the dates converted to ISO format:\n\n```markdown\n| Date |\n|------------|\n| 2025-06-11 |\n| 2025-06-16 |\n``` \n Give me the extraction date and give me the expiry date.\n \n The extraction date in the table can be similar to\n Date,Reported,Completion Date,Date Issued,Completed Date,Date Collected,Production Date,Date Completed\n \n The expiry date in the table can be similar to\n Expires,Expiry date,Expiry,Expiration Date\n "}],"jsonSchema":{"name":"extract_correct_dates","strict":false,"schema":{"type":"object","properties":{"expiryDate":{"type":"string","description":"Expiry date of the lab report."},"reportDate":{"type":"string","description":"The date the report was created or the date the sample was extracted"}},"required":[],"additionalProperties":false}}}
{"prompt":[{"role":"user","content":"\n This is a markdown for a cannabis product lab report:\n ---START MARKDOWN HERE---\n \"\\nCTLA Contract Testing Laboratories of America\\n\\n# Certificate of Analysis\\n\\n## Sample Information\\n\\n- **CTLA ID:** 139907\\n- **Date Received:** 6\\\/12\\\/2025\\n- **Sample Name:** Willie's Remedy + THC Infused 750mL\\n- **Lot Number:** BTL251206\\n- **Customer:** Practical Beverage\\n\\n| Analysis | Method | MDL | Specification | Result | Units |\\n| ----------------------------------- | --------------- | ------ | ------------- | ------ | ----- |\\n| **Rapid Complete Micro** | | | | | |\\n| Total Aerobic Microbial Count (USP) | USP <2021> | 100 | Report | 1,900 | cfu\\\/g |\\n| Total Coliforms (BAM) (MOD) | BAM CH. 4 (MOD) | 10 | Report | <10 | cfu\\\/g |\\n| E.Coli BAM (MOD) | BAM CH. 4 (MOD) | Report | Report | Absent | |\\n| Salmonella | USP <2022> | Report | Report | Absent | |\\n| Staphylococcus aureus <2022> | USP <2022> | Report | Report | Absent | |\\n| Rapid Yeast and Mold | AOAC 2014.05 | 10 | Report | 150 | cfu\\\/g |\\n| **\\u03949-THC** | | | | | |\\n| \\u03949-THC | HPLC | Report | Report | 0.115 | mg\\\/g |\\n\\nBB 0626\\n\\n6\\\/16\\\/2025\\n\\nSpecifications provided by the Customer. Results with an asterisk (*) denote Specifications should be verified by the Customer. This Certificate of Analysis represents data for the sample submitted and does not constitute a guarantee of quality for the entire product from which it was taken. These results are provided for the benefit of the Customer. MDL = Method Detection Limit. This document is not to be altered or reproduced except by the original authorizing body (CTLA).\\n\\n151 E 3450 N, Ste 202, Spanish Fork, UT 84660 (385) 477-4999 Page 1 of 0\"\n ---END OF MARKDOWN---\n \n Act like you are a cannabis lab analyst\n Extract the cannabis product name, product type, sample matrix\/product type and the laboratory name.\n The product type can be cannabis, kratom or mushroom\n "}],"jsonSchema":{"name":"lab_report_data","strict":false,"schema":{"type":"object","properties":{"lab_name":{"type":"string","description":"The laboratory that conducted the analysis"},"product_name":{"type":"string","description":"The name of the cannabis product"},"product_type":{"type":"string","description":"The type of the product","enum":["cannabis","kratom","mushroom"]},"sample_matrix":{"type":"string","description":"The sample matrix also known as the type of the product"}},"required":[],"additionalProperties":false}}}
{"prompt":[{"role":"user","content":"\n This is a markdown for a cannabis product lab report:\n ---START MARKDOWN HERE---\n \"\\nCTLA Contract Testing Laboratories of America\\n\\n# Certificate of Analysis\\n\\n## Sample Information\\n\\n- **CTLA ID:** 139907\\n- **Date Received:** 6\\\/12\\\/2025\\n- **Sample Name:** Willie's Remedy + THC Infused 750mL\\n- **Lot Number:** BTL251206\\n- **Customer:** Practical Beverage\\n\\n| Analysis | Method | MDL | Specification | Result | Units |\\n| ----------------------------------- | --------------- | ------ | ------------- | ------ | ----- |\\n| **Rapid Complete Micro** | | | | | |\\n| Total Aerobic Microbial Count (USP) | USP <2021> | 100 | Report | 1,900 | cfu\\\/g |\\n| Total Coliforms (BAM) (MOD) | BAM CH. 4 (MOD) | 10 | Report | <10 | cfu\\\/g |\\n| E.Coli BAM (MOD) | BAM CH. 4 (MOD) | Report | Report | Absent | |\\n| Salmonella | USP <2022> | Report | Report | Absent | |\\n| Staphylococcus aureus <2022> | USP <2022> | Report | Report | Absent | |\\n| Rapid Yeast and Mold | AOAC 2014.05 | 10 | Report | 150 | cfu\\\/g |\\n| **\\u03949-THC** | | | | | |\\n| \\u03949-THC | HPLC | Report | Report | 0.115 | mg\\\/g |\\n\\nBB 0626\\n\\n6\\\/16\\\/2025\\n\\nSpecifications provided by the Customer. Results with an asterisk (*) denote Specifications should be verified by the Customer. This Certificate of Analysis represents data for the sample submitted and does not constitute a guarantee of quality for the entire product from which it was taken. These results are provided for the benefit of the Customer. MDL = Method Detection Limit. This document is not to be altered or reproduced except by the original authorizing body (CTLA).\\n\\n151 E 3450 N, Ste 202, Spanish Fork, UT 84660 (385) 477-4999 Page 1 of 0\"\n ---END OF MARKDOWN---\n \n Act like you are a lab analyst that can extract cannabinoids data from a lab report\n Give me the cannabinoids and potency results table. Give me the result in a markdown format\n "}]}
{"prompt":[{"role":"user","content":"\n This is a markdown for a cannabis product lab report:\n ---START MARKDOWN HERE---\n \nCertificate of Analysis \n1 of 1\n\n# Willies Remedy Strawberry Watermelon Seltzer\n\n**Sample ID:** 502F1345.04 \n**Type:** Finished Product \n**Matrix:** Beverage \n**Unit Size:** 357.21g \n\n**Batch ID:** CWL252105 \n**Collected:** 5\/21\/2025 \n**Received:** 6\/2\/2025 \n**Completed:** 6\/2\/2025 \n\n**Client** \nMidwest Extraction Services \n507-214-3550 \nLic. #: 20211071 \n\n| Total THC | Total THC | Total Cannabinoids |\n|-----------|-----------|--------------------|\n| 4.93mg\/unit | 0.0% | 0.00% |\n\n## Cannabinoids by HPLC-UV\n\n| Analyte | LOQ (mg\/mL) | Results (%) | Results (mg\/unit) |\n| ------- | ----------- | ----------- | ----------------- |\n| CBDVA | --- | 0.00000 | 0.00 |\n| CBDV | --- | 0.00000 | 0.00 |\n| CBDA | --- | 0.00000 | 0.00 |\n| CBGA | --- | 0.00000 | 0.00 |\n| CBG | 0.0003 | 0.00054 | 1.93 |\n| CBD | 0.0003 | 0.00054 | 1.93 |\n| THCV | --- | 0.00000 | 0.00 |\n| THCVA | --- | 0.00000 | 0.00 |\n| CBN | 0.0003 | 0.00005 | 0.16 |\n| d9-THC | 0.0003 | 0.00138 | 4.93 |\n| d8-THC | 0.0003 | 0.00000 | 0.00 |\n| CBC | --- | 0.00000 | 0.00 |\n| THCA | --- | 0.00000 | 0.00 |\n| CBCA | --- | 0.00000 | 0.00 |\n| Total | | 0.003 | |\n\nLOQ = Limit of Quantification; Total THC = d9-THC + (0.877 x THCA); Total CBD = CBD + (0.877 x CBDA)\n\n----\n\n**Analyst:** Johanna Holloway \n**Date:** 06\/02\/2025 \n\n----\n\nThis item has been tested by Fina Analytics and the results relate only to the sample tested. Fina Analytics makes no claim as to the efficacy, safety or other risks associated with the dev or non-detected amounts of substances reported herein. The reported result is based on the sample weight. This Certificate of Analysis shall not be reproduced except in full, without approval of Fina Analytics. Validated testing methodologies with an ISO IEC 17025:2017 accredited quality system was used when an (*) is present on the Certificate of Analysis. Measurement of uncertainty is not used for pass\/fail conditions but available upon request.\n\n----\n\n2300 Brown Ave Ste 130, \nWaseca, MN 56093 \n(507)-214-3550 #6 \nanalytics@finaalab.co\n ---END OF MARKDOWN---\n \n Act like you are a lab analyst that can extract cannabinoids data from a lab report\n Give me the cannabinoids and potency results table. Give me the result in a markdown format\n "}]}
{"prompt":[{"role":"system","content":"You are a cannabis lab analyst"},{"role":"user","content":"\n I have the markdown of a cannabis product lab results : ```markdown\n# Cannabinoids and Potency Results\n\n| Cannabinoid | Method | Result | Units |\n| ----------- | ------ | ------ | ----- |\n| \u03949-THC | HPLC | 0.115 | mg\/g |\n```\n.\n Give me the total thc percentage, the delta 9 percentage and the thca percentage from the given lab report.\n The results are found in the results percentage column.\n \n The different possibilities of writing delta 9 in the lab report is similar to: \n\n \u03949-THC,Delta 9-THC,D9-THC,\u03949-TETRAHYDROCANNABINOL,\u03949-TETRAHYDROCANNABINOL (D9-THC),D9-Tetrahydrocannabinol,D9-Tetrahydrocannabinol (D9-THC),\u0394-9 THC,\u0394-9-Tetrahydrocannabinol (\u0394-9 THC),Tetrahydrocannabinol (\u03949-THC),delta 9-Tetrahydrocannabinol,delta 9-Tetrahydrocannabinol (THC),d9-THC*,\u03949-Tetrahydrocannabinol (\u03949-THC);\n \n The different possibilities of writing thca in the lab report is similar to: \n\n THCA,Tetrahydrocannabinolic Acid,Tetrahydrocannabinolic Acid (THCA),\u0394-9-Tetrahydrocannabinolic Acid,THCA-A,\u0394-9-Tetrahydrocannabinolic Acid (THCA-A),\u03949-THC Acid,\u03949-THC Acid (THCA),\u03949-THCA,THCa,\u03949-TETRAHYDROCANNABINOLIC ACID,\u03949-TETRAHYDROCANNABINOLIC ACID (THCA),D9-Tetrahydrocannabinolic acid,D9-Tetrahydrocannabinolic acid (THCa),delta-9-Tetrahydrocannabinolic Acid, delta-9-Tetrahydrocannabinolic Acid(THC-A),THC-A,\u03949-Tetrahydrocannabinolic Acid (\u03949-THCA);\n "}],"jsonSchema":{"name":"lab_report_analyte_information","strict":false,"schema":{"type":"object","properties":{"totalThcPercentage":{"type":"number","description":"The total thc or total active thc percentage of the product"},"delta9Percentage":{"type":"number","description":"The delta 9 percentage \/ thc 9 percentage of the product"},"thcaPercentage":{"type":"number","description":"The thca percentage of the product"}},"required":[],"additionalProperties":false}}}