Run prompts from files
Project description
Prompt-as-Method
Run prompts from files.
Install
pip install prompt-as-method
Quickstart
If you have an Ollama running on the default port on your local machine:
ollama pull llama3.1 # download model
python3 -m prompt_as_method \
--prompt examples/sentiment/prompt.json \
--data examples/sentiment/data.csv
This runs the prompt template examples/sentiment/prompt.json for each row of examples/sentiment/data.csv with {{{text}}} replaced by the row's value for it.
Contributing
See the development notes.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prompt_as_method-0.3.1.tar.gz.
File metadata
- Download URL: prompt_as_method-0.3.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aa6a7e6551fa85f7c381680a7d18d7c610ae487ab18f6dc4918918cea0f2311
|
|
| MD5 |
697ff50b3f6fa457c3d4d85d7a97c3c5
|
|
| BLAKE2b-256 |
222a71cb82af9de3ba4bbd09923ae8537732cf052f89f625a3391915c6b35aa1
|
Provenance
The following attestation bundles were made for prompt_as_method-0.3.1.tar.gz:
Publisher:
publish.yml on GESIS-Methods-Hub/prompt-as-method
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prompt_as_method-0.3.1.tar.gz -
Subject digest:
6aa6a7e6551fa85f7c381680a7d18d7c610ae487ab18f6dc4918918cea0f2311 - Sigstore transparency entry: 225598499
- Sigstore integration time:
-
Permalink:
GESIS-Methods-Hub/prompt-as-method@322f8d60bde0731de0b120b9458bac29dba0ba7c -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/GESIS-Methods-Hub
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@322f8d60bde0731de0b120b9458bac29dba0ba7c -
Trigger Event:
release
-
Statement type:
File details
Details for the file prompt_as_method-0.3.1-py3-none-any.whl.
File metadata
- Download URL: prompt_as_method-0.3.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96cf72cd9be7882d712e26e9439b806ac161c4d598c6181b1dcd9a9e237d84f6
|
|
| MD5 |
5221f61e44675f8ff60628a14f570dc1
|
|
| BLAKE2b-256 |
32716f8ff8f9deccf33c521b3cff46753065d2eb4a15607e8e06fcd4eb3d933f
|
Provenance
The following attestation bundles were made for prompt_as_method-0.3.1-py3-none-any.whl:
Publisher:
publish.yml on GESIS-Methods-Hub/prompt-as-method
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prompt_as_method-0.3.1-py3-none-any.whl -
Subject digest:
96cf72cd9be7882d712e26e9439b806ac161c4d598c6181b1dcd9a9e237d84f6 - Sigstore transparency entry: 225598522
- Sigstore integration time:
-
Permalink:
GESIS-Methods-Hub/prompt-as-method@322f8d60bde0731de0b120b9458bac29dba0ba7c -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/GESIS-Methods-Hub
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@322f8d60bde0731de0b120b9458bac29dba0ba7c -
Trigger Event:
release
-
Statement type: