Skip to content

Commit e5e4743

Browse files
committed
And the corresponding change to the Notebook
1 parent 6bd6929 commit e5e4743

1 file changed

Lines changed: 33 additions & 22 deletions

File tree

assets/nbs/Onboarding.ipynb

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@
428428
"source": [
429429
"> Notice how nothing has used AI yet. Now we set your local and remote AI preferences.\n",
430430
"\n",
431-
"## 🤖 Awaken the Local AI\n",
431+
"## 🤖 Choose the Local AI\n",
432432
" \n",
433433
"Pipulate champions \"Local-First Sovereignty\". This means your data and your AI run on your \n",
434434
"own hardware by default. We use **[Ollama](https://ollama.com/)** to provide this local intelligence.\n",
@@ -482,10 +482,18 @@
482482
" wand.imperio(side_quest=\"optional\")"
483483
]
484484
},
485+
{
486+
"cell_type": "markdown",
487+
"id": "24",
488+
"metadata": {},
489+
"source": [
490+
"## 🦾 Prompt the Local AI"
491+
]
492+
},
485493
{
486494
"cell_type": "code",
487495
"execution_count": null,
488-
"id": "24",
496+
"id": "25",
489497
"metadata": {},
490498
"outputs": [],
491499
"source": [
@@ -502,7 +510,7 @@
502510
},
503511
{
504512
"cell_type": "markdown",
505-
"id": "25",
513+
"id": "26",
506514
"metadata": {},
507515
"source": [
508516
"## ☁️ Connect the Cloud AI\n",
@@ -522,7 +530,7 @@
522530
{
523531
"cell_type": "code",
524532
"execution_count": null,
525-
"id": "26",
533+
"id": "27",
526534
"metadata": {},
527535
"outputs": [],
528536
"source": [
@@ -564,7 +572,7 @@
564572
},
565573
{
566574
"cell_type": "markdown",
567-
"id": "27",
575+
"id": "28",
568576
"metadata": {},
569577
"source": [
570578
"## 🏕️ The Basecamp (Take a Breath)\n",
@@ -584,7 +592,7 @@
584592
{
585593
"cell_type": "code",
586594
"execution_count": null,
587-
"id": "28",
595+
"id": "29",
588596
"metadata": {},
589597
"outputs": [],
590598
"source": [
@@ -611,7 +619,7 @@
611619
},
612620
{
613621
"cell_type": "markdown",
614-
"id": "29",
622+
"id": "30",
615623
"metadata": {},
616624
"source": [
617625
"## 🧪 The Synthesis: Denoising the Reality\n",
@@ -623,7 +631,7 @@
623631
},
624632
{
625633
"cell_type": "markdown",
626-
"id": "30",
634+
"id": "31",
627635
"metadata": {},
628636
"source": [
629637
"# There is an issue with the code-block below about what actually gets written into the wand (the diff) versus what remains links to locations in the filesystem so they can be included as \"attachements\" later on. Either way it becomes part of a text prompt submit to the API. We're not going to mess with mime encoding. However, the user shouldn't have to look at a mess in the wand memory. I think now we shove a whole diff in there. We want an easy way to pick from what files of the LLM Optics actually get included. This will surely be fine-tuned over time with different objectives like easing into browser automation path analysis and such (inclusion of accessibility tree). Also the localhost Verification Links this creates are broken and produce: 404 : Not Found You are requesting a page that does not exist!"
@@ -632,7 +640,7 @@
632640
{
633641
"cell_type": "code",
634642
"execution_count": null,
635-
"id": "31",
643+
"id": "32",
636644
"metadata": {},
637645
"outputs": [],
638646
"source": [
@@ -657,7 +665,7 @@
657665
},
658666
{
659667
"cell_type": "markdown",
660-
"id": "32",
668+
"id": "33",
661669
"metadata": {},
662670
"source": [
663671
"## 🚀 The Cloud AI Handoff (The Fork in the Road)\n",
@@ -675,7 +683,7 @@
675683
{
676684
"cell_type": "code",
677685
"execution_count": null,
678-
"id": "33",
686+
"id": "34",
679687
"metadata": {},
680688
"outputs": [],
681689
"source": [
@@ -697,7 +705,7 @@
697705
},
698706
{
699707
"cell_type": "markdown",
700-
"id": "34",
708+
"id": "35",
701709
"metadata": {},
702710
"source": [
703711
"## ⚡ The JavaScript Gap (Cloud AI Handoff)\n",
@@ -711,16 +719,18 @@
711719
},
712720
{
713721
"cell_type": "markdown",
714-
"id": "35",
722+
"id": "36",
715723
"metadata": {},
716724
"source": [
717725
"# The below step must not be able to enter the \"The audit is complete.\" part if it also produced the output immediately prior: \"AI prompt failed: This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later.\" That is a contradiction. That state must never be allowed to exist. It's either try again later because it failed. Or it succeeded and the big AI reply is showing. We may have to implement the same backoff we put in contextualizer.py."
718726
]
719727
},
720728
{
721-
"cell_type": "raw",
722-
"id": "36",
729+
"cell_type": "code",
730+
"execution_count": null,
731+
"id": "37",
723732
"metadata": {},
733+
"outputs": [],
724734
"source": [
725735
"# Step 8: The Cloud Execution (Manual or API)\n",
726736
"from imports import onboard_sauce as sauce\n",
@@ -737,7 +747,8 @@
737747
" active_model_used = \"Manual Web UI Paste\"\n",
738748
" else:\n",
739749
" wand.speak(f\"No manual response detected. Engaging formal API via {ACTIVE_CLOUD_MODEL}...\")\n",
740-
" payload = wand.get(\"onboarding_01\", \"final_cloud_payload\")\n",
750+
" # JIT Compile the payload from pointers\n",
751+
" payload = sauce.compile_cloud_payload(\"onboarding_01\", recovered_url)\n",
741752
" \n",
742753
" if payload:\n",
743754
" # The actual API call happens here!\n",
@@ -786,7 +797,7 @@
786797
},
787798
{
788799
"cell_type": "markdown",
789-
"id": "37",
800+
"id": "38",
790801
"metadata": {},
791802
"source": [
792803
"## 🧰 The Workshop is Open\n",
@@ -799,7 +810,7 @@
799810
{
800811
"cell_type": "code",
801812
"execution_count": null,
802-
"id": "38",
813+
"id": "39",
803814
"metadata": {},
804815
"outputs": [],
805816
"source": [
@@ -815,7 +826,7 @@
815826
},
816827
{
817828
"cell_type": "markdown",
818-
"id": "39",
829+
"id": "40",
819830
"metadata": {},
820831
"source": [
821832
"---\n",
@@ -824,7 +835,7 @@
824835
},
825836
{
826837
"cell_type": "raw",
827-
"id": "40",
838+
"id": "41",
828839
"metadata": {},
829840
"source": [
830841
"from imports import onboard_sauce as sauce\n",
@@ -839,7 +850,7 @@
839850
{
840851
"cell_type": "code",
841852
"execution_count": null,
842-
"id": "41",
853+
"id": "42",
843854
"metadata": {},
844855
"outputs": [],
845856
"source": [
@@ -851,7 +862,7 @@
851862
{
852863
"cell_type": "code",
853864
"execution_count": null,
854-
"id": "42",
865+
"id": "43",
855866
"metadata": {},
856867
"outputs": [],
857868
"source": []

0 commit comments

Comments
 (0)