Skip to content

Commit 0557d49

Browse files
authored
Merge branch 'main' into jal/update-tool-handling
2 parents 8ba270e + 03d93b4 commit 0557d49

23 files changed

+1225
-511
lines changed

.github/workflows/quality.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
strategy:
1818
matrix:
1919
python-version: ['3.10', '3.11', '3.12'] # Need to add 3.13 once we resolve outlines issues.
20+
env:
21+
CICD: 1
22+
OLLAMA_HOST: "127.0.0.1:5000"
2023
steps:
2124
- uses: actions/checkout@v4
2225
- name: Install uv and set the python version
@@ -31,9 +34,22 @@ jobs:
3134
path: ~/.cache/pre-commit
3235
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
3336
- name: Install dependencies
34-
run: uv sync --frozen --all-extras
37+
run: uv sync --frozen --all-extras --group dev
3538
- name: Check style and run tests
3639
run: pre-commit run --all-files
37-
- name: Send failure message
40+
- name: Send failure message pre-commit
3841
if: failure() # This step will only run if a previous step failed
3942
run: echo "The quality verification failed. Please run precommit "
43+
- name: Install Ollama
44+
run: curl -fsSL https://ollama.com/install.sh | sh
45+
- name: Start serving ollama
46+
run: nohup ollama serve &
47+
- name: Pull Llama 3.2:1b model
48+
run: ollama pull llama3.2:1b
49+
50+
- name: Run Tests
51+
run: uv run -m pytest -v test
52+
- name: Send failure message tests
53+
if: failure() # This step will only run if a previous step failed
54+
run: echo "Tests failed. Please verify that tests are working locally."
55+

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/document_mobject.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
},
6161
"outputs": [],
6262
"source": [
63-
"!uv pip install mellea -q"
63+
"!uv pip install mellea[docling]"
6464
]
6565
},
6666
{

0 commit comments

Comments
 (0)