Skip to content

Commit 90c545c

Browse files
jakelorocconrfultonavinash2692
authored
small fixes to the Georgia Tech tutorial (#85)
* Removes some typos * remove break stmt in docling example. --------- Co-authored-by: Nathan Fulton <[email protected]> Co-authored-by: Avinash Balakrishnan <[email protected]>
1 parent 4010d5a commit 90c545c

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

docs/examples/generative_slots/inter_module_composition/summarizers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ def summarize_contract(contract_text: str) -> str:
1313

1414
@generative
1515
def summarize_short_story(story: str) -> str:
16-
"""Summarize a short story, with one paragraph on plot and one paragraph on braod themes."""
16+
"""Summarize a short story, with one paragraph on plot and one paragraph on broad themes."""

docs/examples/notebooks/compositionality_with_generative_slots.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"\n",
9696
"@generative\n",
9797
"def summarize_short_story(story: str) -> str:\n",
98-
" \"\"\"Summarize a short story, with one paragraph on plot and one paragraph on braod themes.\"\"\""
98+
" \"\"\"Summarize a short story, with one paragraph on plot and one paragraph on broad themes.\"\"\""
9999
]
100100
},
101101
{

docs/examples/notebooks/georgia_tech.ipynb

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"!curl -fsSL https://ollama.com/install.sh | sh > /dev/null\n",
3737
"!nohup ollama serve >/dev/null 2>&1 &\n",
3838
"\n",
39-
"# Download the granite:3.38b weights.\n",
39+
"# Download the granite:3.3:8b weights.\n",
4040
"!ollama pull granite3.3:8b\n",
4141
"!ollama pull llama3.2:3b\n",
4242
"\n",
@@ -193,7 +193,7 @@
193193
"\n",
194194
"@generative\n",
195195
"def summarize_short_story(story: str) -> str:\n",
196-
" \"\"\"Summarize a short story, with one paragraph on plot and one paragraph on braod themes.\"\"\"\n",
196+
" \"\"\"Summarize a short story, with one paragraph on plot and one paragraph on broad themes.\"\"\"\n",
197197
"\n",
198198
"\n",
199199
"################################################################################\n",
@@ -441,12 +441,12 @@
441441
"from mellea.backends.types import ModelOption\n",
442442
"\n",
443443
"# You can use multiple different models at the same time!\n",
444-
"m_mistral = mellea.MelleaSession(backend=OllamaModelBackend(model_id=META_LLAMA_3_2_3B))\n",
444+
"m_llama = mellea.MelleaSession(backend=OllamaModelBackend(model_id=META_LLAMA_3_2_3B))\n",
445445
"\n",
446446
"for seed in [x * 12 for x in range(5)]:\n",
447-
" table2 = m_mistral.transform(\n",
447+
" table2 = m_llama.transform(\n",
448448
" table1,\n",
449-
" \"Add a column 'Model' that extracts which model was used or 'None' if none.\",\n",
449+
" \"Add a 'Model' column as the last column that extracts which model was used for that feature or 'None' if none.\",\n",
450450
" model_options={ModelOption.SEED: seed},\n",
451451
" )\n",
452452
" if isinstance(table2, Table):\n",
@@ -474,7 +474,7 @@
474474
"\n",
475475
"**The MObject Pattern**: You should store data alongside its relevant operations (tools). This allows LLMs to interact with both the data and methods in a unified, structured manner. It also simplifies the process of exposing only the specific fields and methods you want the LLM to access.\n",
476476
"\n",
477-
"The MOBject pattern also provides a way of evolving existing classical codebases into generative programs. Mellea's @mify decorator lets you turn any class into an MObject. If needed, you can specify which fields and methods are included, and provide a template for how the object should be represented to the LLM."
477+
"The MObject pattern also provides a way of evolving existing classical codebases into generative programs. Mellea's @mify decorator lets you turn any class into an MObject. If needed, you can specify which fields and methods are included, and provide a template for how the object should be represented to the LLM."
478478
]
479479
},
480480
{
@@ -544,9 +544,7 @@
544544
{
545545
"cell_type": "code",
546546
"execution_count": null,
547-
"metadata": {
548-
"id": "Co662BJtBYBt"
549-
},
547+
"metadata": {},
550548
"outputs": [],
551549
"source": []
552550
}

docs/examples/tutorial/compositionality_with_generative_slots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def summarize_contract(contract_text: str) -> str:
1414

1515
@generative
1616
def summarize_short_story(story: str) -> str:
17-
"""Summarize a short story, with one paragraph on plot and one paragraph on braod themes."""
17+
"""Summarize a short story, with one paragraph on plot and one paragraph on broad themes."""
1818

1919

2020
# The Decision Aides Library

0 commit comments

Comments
 (0)