Skip to content

Commit

Permalink
fix: remove docs caching for gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzLaurer committed Dec 12, 2024
1 parent 94aed2e commit e22552e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,6 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Cache Poetry dependencies
uses: actions/cache@v4
with:
key: poetry-${{ hashFiles('poetry.lock') }}
path: |
~/.cache/pypoetry
.venv
restore-keys: |
poetry-
- name: Install dependencies
run: |
poetry config virtualenvs.create true
Expand All @@ -110,6 +100,4 @@ jobs:
# Configure git to use the new repository URL
git remote set-url origin https://github.com/MoritzLaurer/prompt_templates.git
# Use poetry shell to ensure we're in the right environment
poetry shell
poetry run mkdocs gh-deploy --force
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prompt Templates

Prompt templates have become key artifacts for researchers and practitioners working with AI. There is, however, no standardized way of sharing prompt templates. Prompts and prompt templates are shared on the Hugging Face Hub in [.txt files](https://huggingface.co/HuggingFaceFW/fineweb-edu-classifier/blob/main/utils/prompt.txt), in [HF datasets](https://huggingface.co/datasets/fka/awesome-chatgpt-prompts), as strings in [model cards](https://huggingface.co/OpenGVLab/InternVL2-8B#grounding-benchmarks), or on GitHub as [python strings](https://github.com/huggingface/cosmopedia/tree/main/prompts) embedded in scripts, in [JSON and YAML](https://github.com/hwchase17/langchain-hub/blob/master/prompts/README.md) files, or in [Jinja2](https://github.com/argilla-io/distilabel/tree/main/src/distilabel/steps/tasks/templates) files.
Prompt templates have become key artifacts for researchers and practitioners working with AI. There is, however, no standardized way of sharing prompt templates. Prompts and prompt templates are shared on the Hugging Face Hub in [.txt files](https://huggingface.co/HuggingFaceFW/fineweb-edu-classifier/blob/main/utils/prompt.txt), in [HF datasets](https://huggingface.co/datasets/fka/awesome-chatgpt-prompts), as strings in [model cards](https://huggingface.co/OpenGVLab/InternVL2-8B#grounding-benchmarks), or on GitHub as [python strings](https://github.com/huggingface/cosmopedia/tree/main/prompts) embedded in scripts, in [JSON and YAML](https://github.com/hwchase17/langchain-hub/blob/master/prompts/README.md) files, or in [Jinja2](https://github.com/argilla-io/distilabel/tree/main/src/distilabel/steps/tasks/templates) files.



Expand Down
12 changes: 6 additions & 6 deletions examples/example-usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"id": "0b4d0b9b",
"metadata": {},
"outputs": [
Expand All @@ -89,7 +89,7 @@
" 'openai-metaprompt-text.yaml']"
]
},
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -102,7 +102,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"id": "379532fe",
"metadata": {},
"outputs": [
Expand All @@ -112,7 +112,7 @@
"{'source': 'https://gist.github.com/dedlim/6bf6d81f77c19e20cd40594aa09e3ecd'}"
]
},
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -1872,9 +1872,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "hf-hub-prompts-IL0l2v-m-py3.12",
"display_name": "prompt-templates",
"language": "python",
"name": "python3"
"name": "prompt-templates"
},
"language_info": {
"codemirror_mode": {
Expand Down

0 comments on commit e22552e

Please sign in to comment.