siddiVinayaka commited on
Commit
2e8acd2
·
verified ·
1 Parent(s): 898f38d

Update Quickstart prompt to verified invoice processing decision in Cortex_system_one(Testing).ipynb

Browse files
Files changed (1) hide show
  1. Cortex_system_one(Testing).ipynb +10 -10
Cortex_system_one(Testing).ipynb CHANGED
@@ -27,7 +27,7 @@
27
  "This official interactive notebook demonstrates **Cortex-System-One**, an original from-scratch System-1 foundation architecture engineered for fast 41\u201350ms enterprise decision intelligence on commodity hardware (Tesla T4).\n\n",
28
  "---\n",
29
  "### \u26a1 Section 1: 1-Click Load & Single-Decision Inference\n",
30
- "Installs dependencies, pulls the calibrated model weights directly from Hugging Face into cache in ~15s, and runs instant inference on an enterprise code defect security triage scenario."
31
  ]
32
  },
33
  {
@@ -50,19 +50,19 @@
50
  "model, calibration = load_cortex_model(model_dir, device=device)\n\n",
51
  "# 4. Run Instant Decision Inference (41\u201350ms on Tesla T4)\n",
52
  "prompt = (\n",
53
- " \"Workflow: Code Defect Security\\n\"\n",
54
- " \"Task State: {\\\"file\\\":\\\"auth_service.py\\\",\\\"ast_node\\\":\\\"BinaryOp_Add\\\",\\\"code_snippet\\\":\\\"query = 'SELECT * FROM users WHERE email = \\'' + user_input + '\\''\\\",\\\"cwe\\\":\\\"CWE-89\\\"}\\n\\n\"\n",
55
- " \"Task: Determine security defect classification and required remediation.\\n\"\n",
56
  " \"Options:\\n\"\n",
57
- " \"(A) Safe string formatting with no security impact\\n\"\n",
58
- " \"(B) Critical SQL injection vulnerability requiring parameterized query binding\\n\"\n",
59
- " \"(C) Minor performance overhead from string concatenation\\n\\n\"\n",
60
  " \"Analyze the state and select the correct option.\\nAnswer:\"\n",
61
  ")\n\n",
62
  "options = [\n",
63
- " \"Safe string formatting with no security impact\",\n",
64
- " \"Critical SQL injection vulnerability requiring parameterized query binding\",\n",
65
- " \"Minor performance overhead from string concatenation\"\n",
66
  "]\n\n",
67
  "result = predict_decision(model, prompt, options, calibration=calibration, device=device)\n",
68
  "confidence = result.get('confidence', result['probabilities'][result['predicted_option']])\n",
 
27
  "This official interactive notebook demonstrates **Cortex-System-One**, an original from-scratch System-1 foundation architecture engineered for fast 41\u201350ms enterprise decision intelligence on commodity hardware (Tesla T4).\n\n",
28
  "---\n",
29
  "### \u26a1 Section 1: 1-Click Load & Single-Decision Inference\n",
30
+ "Installs dependencies, pulls the calibrated model weights directly from Hugging Face into cache in ~15s, and runs instant inference on an enterprise invoice financial schema validation scenario."
31
  ]
32
  },
33
  {
 
50
  "model, calibration = load_cortex_model(model_dir, device=device)\n\n",
51
  "# 4. Run Instant Decision Inference (41\u201350ms on Tesla T4)\n",
52
  "prompt = (\n",
53
+ " \"Workflow: Invoice Processing\\n\"\n",
54
+ " \"Task State: {\\\"invoice_id\\\":\\\"INV-9421\\\",\\\"subtotal\\\":1000.0,\\\"tax\\\":180.0,\\\"total\\\":1500.0}\\n\\n\"\n",
55
+ " \"Task: Determine invoice validation status.\\n\"\n",
56
  " \"Options:\\n\"\n",
57
+ " \"(A) Flag total calculation mismatch for manual accounting review\\n\"\n",
58
+ " \"(B) Approve payment immediately with automated clearance\\n\"\n",
59
+ " \"(C) Mark invoice as duplicate submission\\n\\n\"\n",
60
  " \"Analyze the state and select the correct option.\\nAnswer:\"\n",
61
  ")\n\n",
62
  "options = [\n",
63
+ " \"Flag total calculation mismatch for manual accounting review\",\n",
64
+ " \"Approve payment immediately with automated clearance\",\n",
65
+ " \"Mark invoice as duplicate submission\"\n",
66
  "]\n\n",
67
  "result = predict_decision(model, prompt, options, calibration=calibration, device=device)\n",
68
  "confidence = result.get('confidence', result['probabilities'][result['predicted_option']])\n",