Skip to content

Instantly share code, notes, and snippets.

@nerdalert
Created May 16, 2024 19:01
Show Gist options
  • Save nerdalert/1e8f706c83abc25522e0fb9cd87089e3 to your computer and use it in GitHub Desktop.
Save nerdalert/1e8f706c83abc25522e0fb9cd87089e3 to your computer and use it in GitHub Desktop.

curl -X 'POST' \
--cacert server-ca-crt.pem2 \
--cert client-tls-crt.pem2 \
--key client-tls-key.pem2 \
'https://datagen-service-predictor-fmaas-rhods-testing.apps.fmaas-devstage-backend.fmaas.res.ibm.com/skill/datagen' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
  "created_by": "IBM",
  "mm_model_id": "mistralai/mixtral-8x7b-instruct-v0-1",
  "num_samples": 5,  
  "task_description": "extracting content from an email\n",
  "seed_examples": [
    {
      "answer": "Submit an Ad Hoc request to Procurement\n",
      "context": "Subject: High-Def Monitor Update\n\nDate:\n\nFriday, February 23, 2024 at 9:13:32$_{ }$PM Eastern Standard Time\n\nFrom:\n\nLuke Inglis\n\nTo:\n\nKate Soule\n\nHi Kate,\n\nI am writing to explain to you the delay in our lab receiving monitors. On Dec 2$^{nd,}$ 2023, I started the process of purchasing 7 high-def Samsung monitors for the MIT-IBM Watson AI Lab. I think you already know, but I wanted to outline the steps needed to make this purchase.\n\n1. Obtain a quote from Samsung\n\n2. Submit an Expense Pre-Approval\n\n3. Approval from Line VP\n\n4. Submit an Ad Hoc request to Procurement\n\n5. Approval from Manager\n\n6. Approval from 2$^{nd}$ line Manager\n\n7. Approval from Finance\n\n8. Procurement then identifies their specialist for this request\n\n9. The Procurement specialist then reviews the request and determines which supplier to use and reaches out to the contact person there\n\n10. These two finalize agreements needed to execute the order\n\n11. Monitors are then shipped to our location\n\nWe have now finally reached number 11 in this process. Below I wanted to outline what we are receiving and when they are expected to arrive.\n\n| Monitor       | Price  | Estimated Arrival  |\n|----------------------|---------|---------------------|\n| Odyssey Ark 55-inch | $1,952 | 5/10/2024      |\n| Odyssey G7 32-Inch  | $669  | 3/7/2024      |\n| Odyssey G7 32-Inch  | $669  | 3/7/2024      |\n| Odyssey G55C 27-Inch | $297  | 2/27/2024      |\n| Odyssey G55C 27-Inch | $297  | 2/27/2024      |\n\nSpecifically, I wanted to address the shipping date for the Odyssey Ark 55-inch. I know the 10th of May 2024 is not ideal but there was confusion as the supplier is in Europe and thought that 5/10/2024 was actually 10/5/2024.\n\nI apologize for the confusion.\n\nRegards,\n\nLuke Inglis Operations Manager AI Models & MIT-IBM Watson AI Lab IBM Research\n",
      "question": "What was the fourth step of the purchase process?\n"
    },
    {
      "answer": "7 high-def Samsung monitors for the MIT-IBM Watson AI Lab\n",
      "context": "Subject: High-Def Monitor Update\n\nDate:\n\nFriday, February 23, 2024 at 9:13:32$_{ }$PM Eastern Standard Time\n\nFrom:\n\nLuke Inglis\n\nTo:\n\nKate Soule\n\nHi Kate,\n\nI am writing to explain to you the delay in our lab receiving monitors. On Dec 2$^{nd,}$ 2023, I started the process of purchasing 7 high-def Samsung monitors for the MIT-IBM Watson AI Lab. I think you already know, but I wanted to outline the steps needed to make this purchase.\n\n1. Obtain a quote from Samsung\n\n2. Submit an Expense Pre-Approval\n\n3. Approval from Line VP\n\n4. Submit an Ad Hoc request to Procurement\n\n5. Approval from Manager\n\n6. Approval from 2$^{nd}$ line Manager\n\n7. Approval from Finance\n\n8. Procurement then identifies their specialist for this request\n\n9. The Procurement specialist then reviews the request and determines which supplier to use and reaches out to the contact person there\n\n10. These two finalize agreements needed to execute the order\n\n11. Monitors are then shipped to our location\n\nWe have now finally reached number 11 in this process. Below I wanted to outline what we are receiving and when they are expected to arrive.\n\n| Monitor       | Price  | Estimated Arrival  |\n|----------------------|---------|---------------------|\n| Odyssey Ark 55-inch | $1,952 | 5/10/2024      |\n| Odyssey G7 32-Inch  | $669  | 3/7/2024      |\n| Odyssey G7 32-Inch  | $669  | 3/7/2024      |\n| Odyssey G55C 27-Inch | $297  | 2/27/2024      |\n| Odyssey G55C 27-Inch | $297  | 2/27/2024      |\n\nSpecifically, I wanted to address the shipping date for the Odyssey Ark 55-inch. I know the 10th of May 2024 is not ideal but there was confusion as the supplier is in Europe and thought that 5/10/2024 was actually 10/5/2024.\n\nI apologize for the confusion.\n\nRegards,\n\nLuke Inglis Operations Manager AI Models & MIT-IBM Watson AI Lab IBM Research\n",
      "question": "What is being purchased?"
    },
    {
      "answer": "2/27/2024, 3/7/2024, 5/10/2024\n",
      "context": "Subject: High-Def Monitor Update\n\nDate:\n\nFriday, February 23, 2024 at 9:13:32$_{ }$PM Eastern Standard Time\n\nFrom:\n\nLuke Inglis\n\nTo:\n\nKate Soule\n\nHi Kate,\n\nI am writing to explain to you the delay in our lab receiving monitors. On Dec 2$^{nd,}$ 2023, I started the process of purchasing 7 high-def Samsung monitors for the MIT-IBM Watson AI Lab. I think you already know, but I wanted to outline the steps needed to make this purchase.\n\n1. Obtain a quote from Samsung\n\n2. Submit an Expense Pre-Approval\n\n3. Approval from Line VP\n\n4. Submit an Ad Hoc request to Procurement\n\n5. Approval from Manager\n\n6. Approval from 2$^{nd}$ line Manager\n\n7. Approval from Finance\n\n8. Procurement then identifies their specialist for this request\n\n9. The Procurement specialist then reviews the request and determines which supplier to use and reaches out to the contact person there\n\n10. These two finalize agreements needed to execute the order\n\n11. Monitors are then shipped to our location\n\nWe have now finally reached number 11 in this process. Below I wanted to outline what we are receiving and when they are expected to arrive.\n\n| Monitor       | Price  | Estimated Arrival  |\n|----------------------|---------|---------------------|\n| Odyssey Ark 55-inch | $1,952 | 5/10/2024      |\n| Odyssey G7 32-Inch  | $669  | 3/7/2024      |\n| Odyssey G7 32-Inch  | $669  | 3/7/2024      |\n| Odyssey G55C 27-Inch | $297  | 2/27/2024      |\n| Odyssey G55C 27-Inch | $297  | 2/27/2024      |\n\nSpecifically, I wanted to address the shipping date for the Odyssey Ark 55-inch. I know the 10th of May 2024 is not ideal but there was confusion as the supplier is in Europe and thought that 5/10/2024 was actually 10/5/2024.\n\nI apologize for the confusion.\n\nRegards,\n\nLuke Inglis Operations Manager AI Models & MIT-IBM Watson AI Lab IBM Research\n",
      "question": "What are all of the estimated arrival dates for these items? \n"
    }
  ]
}' | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10636  100  4321  100  6315     17     25  0:04:14  0:04:11  0:00:03  1036
[
  {
    "created_by": "IBM",
    "task_description": "extracting content from an email\n",
    "path": "/tmp/new_data/sdg_pipeline_test/2e4ce379-0ee9-4cf9-9953-c26fcc95935b/qna.yaml",
    "icl_context": "Subject: High-Def Monitor Update\n\nDate:\n\nFriday, February 23, 2024 at 9:13:32$_{ }$PM Eastern Standard Time\n\nFrom:\n\nLuke Inglis\n\nTo:\n\nKate Soule\n\nHi Kate,\n\nI am writing to explain to you the delay in our lab receiving monitors. On Dec 2$^{nd,}$ 2023, I started the process of purchasing 7 high-def Samsung monitors for the MIT-IBM Watson AI Lab. I think you already know, but I wanted to outline the steps needed to make this purchase.\n\n1. Obtain a quote from Samsung\n\n2. Submit an Expense Pre-Approval\n\n3. Approval from Line VP\n\n4. Submit an Ad Hoc request to Procurement\n\n5. Approval from Manager\n\n6. Approval from 2$^{nd}$ line Manager\n\n7. Approval from Finance\n\n8. Procurement then identifies their specialist for this request\n\n9. The Procurement specialist then reviews the request and determines which supplier to use and reaches out to the contact person there\n\n10. These two finalize agreements needed to execute the order\n\n11. Monitors are then shipped to our location\n\nWe have now finally reached number 11 in this process. Below I wanted to outline what we are receiving and when they are expected to arrive.\n\n| Monitor       | Price  | Estimated Arrival  |\n|----------------------|---------|---------------------|\n| Odyssey Ark 55-inch | $1,952 | 5/10/2024      |\n| Odyssey G7 32-Inch  | $669  | 3/7/2024      |\n| Odyssey G7 32-Inch  | $669  | 3/7/2024      |\n| Odyssey G55C 27-Inch | $297  | 2/27/2024      |\n| Odyssey G55C 27-Inch | $297  | 2/27/2024      |\n\nSpecifically, I wanted to address the shipping date for the Odyssey Ark 55-inch. I know the 10th of May 2024 is not ideal but there was confusion as the supplier is in Europe and thought that 5/10/2024 was actually 10/5/2024.\n\nI apologize for the confusion.\n\nRegards,\n\nLuke Inglis Operations Manager AI Models & MIT-IBM Watson AI Lab IBM Research\n",
    "icl_q": "What was the fourth step of the purchase process?\n",
    "icl_a": "Submit an Ad Hoc request to Procurement\n",
    "context": "Subject: High-Def Monitor Update\n\nDate:\n\nFriday, February 23, 2024 at 9:13:32$_{ }$PM Eastern Standard Time\n\nFrom:\n\nLuke Inglis\n\nTo:\n\nKate Soule\n\nHi Kate,\n\nI am writing to explain to you the delay in our lab receiving monitors. On Dec 2$^{nd,}$ 2023, I started the process of purchasing 7 high-def Samsung monitors for the MIT-IBM Watson AI Lab. I think you already know, but I wanted to outline the steps needed to make this purchase.\n\n1. Obtain a quote from Samsung\n\n2. Submit an Expense Pre-Approval\n\n3. Approval from Line VP\n\n4. Submit an Ad Hoc request to Procurement\n\n5. Approval from Manager\n\n6. Approval from 2$^{nd}$ line Manager\n\n7. Approval from Finance\n\n8. Procurement then identifies their specialist for this request\n\n9. The Procurement specialist then reviews the request and determines which supplier to use and reaches out to the contact person there\n\n10. These two finalize agreements needed to execute the order\n\n11. Monitors are then shipped to our location\n\nWe have now finally reached number 11 in this process. Below I wanted to outline what we are receiving and when they are expected to arrive.\n\n| Monitor       | Price  | Estimated Arrival  |\n|----------------------|---------|---------------------|\n| Odyssey Ark 55-inch | $1,952 | 5/10/2024      |\n| Odyssey G7 32-Inch  | $669  | 3/7/2024      |\n| Odyssey G7 32-Inch  | $669  | 3/7/2024      |\n| Odyssey G55C 27-Inch | $297  | 2/27/2024      |\n| Odyssey G55C 27-Inch | $297  | 2/27/2024      |\n\nSpecifically, I wanted to address the shipping date for the Odyssey Ark 55-inch. I know the 10th of May 2024 is not ideal but there was confusion as the supplier is in Europe and thought that 5/10/2024 was actually 10/5/2024.\n\nI apologize for the confusion.\n\nRegards,\n\nLuke Inglis Operations Manager AI Models & MIT-IBM Watson AI Lab IBM Research\n",
    "inputs": "Who is the person responsible for managing the AI Models & MIT-IBM Watson AI Lab at IBM Research?",
    "targets": "Luke Inglis, Operations Manager AI Models & MIT-IBM Watson AI Lab, IBM Research",
    "origin_branch_name": "",
    "pull_request": "",
    "qarating": 3
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment