Skip to content

Commit 873c8a8

Browse files
committed
More CI bits
1 parent 177b6aa commit 873c8a8

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
10+
environment: pypi # GitHub environment for additional protection
1011
permissions:
1112
id-token: write # Required for trusted publishing
1213

@@ -28,7 +29,7 @@ jobs:
2829

2930
- name: Publish to PyPI
3031
uses: pypa/gh-action-pypi-publish@release/v1
31-
with:
32+
# with:
3233
# Uses OIDC trusted publishing - no token needed if configured
3334
# If you need to use a token instead, uncomment below:
3435
# password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ A convention for expressing language text and templates for AI language model-re
44

55
# Why Word Loom?
66

7-
When working with LLMs, we've found ourselves needing better ways to manage prompts. Traditional code doesn't quite fit—prompts are natural language, not code. But they're also not just static text—they need templating, versioning, metadata and crucially, **internationalization**.
7+
When working with LLMs, we've found ourselves needing better ways to manage prompts. Traditional code doesn't quite fit—prompts are natural language, not code. But they're also not just static text—they need templating, versioning, metadata and, crucially, internationalization.
88

9-
Word Loom addresses a gap that becomes obvious once you start building real LLM applications:
9+
Word Loom addresses some gaps that become clear once you start building real LLM applications:
1010

1111
1. **Separation of concerns**: Keep your prompts out of your code, making them easier to iterate, version, and review
1212
2. **Multilingual by design**: LLM prompt engineering isn't just translation—a prompt that works well in English may need significant changes to achieve similar results in Japanese or Spanish. Word Loom lets you keep all language variants together, test them independently, and maintain metadata about their performance
@@ -65,7 +65,7 @@ response = client.chat.completions.create(
6565
model='gpt-4',
6666
messages=[
6767
{'role': 'system', 'content': greeting_text},
68-
{'role': 'user', 'content': 'Tell me about Python'}
68+
{'role': 'user', 'content': 'How does an LLM work?'}
6969
]
7070
)
7171
```

wordloom_spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ print(prompt.markers) # ['target_lang', 'text']
259259
expanded = str(prompt).format(target_lang='French', text='Hello')
260260
```
261261

262-
**TODO**: Add examples of more complex prompts with e.g. nested loops, such as ReAct loops.
262+
**TODO**: Add examples of more complex prompts with e.g. nested loops, and "agentic" blah blah blah.
263263

264264
Tips:
265265

0 commit comments

Comments
 (0)