Skip to main content

No project description provided

Project description

# Prompt-as-Method

[![PyPI - Version](https://img.shields.io/pypi/v/prompt-as-method)](https://pypi.org/project/prompt-as-method/)
[![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2FGESIS-Methods-Hub%2Fprompt-as-method%2Frefs%2Fheads%2Fmain%2Fpyproject.toml)](https://github.com/GESIS-Methods-Hub/prompt-as-method)
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/GESIS-Methods-Hub/prompt-as-method/test.yml?label=tests)](https://github.com/GESIS-Methods-Hub/prompt-as-method/actions/workflows/test.yml)
[![Static Badge](https://img.shields.io/badge/licence-MIT-%2395c30d)](https://github.com/GESIS-Methods-Hub/prompt-as-method/blob/main/LICENSE)

Execute methods that are programmed as prompt to a generative model

## Install

```shell
pip install prompt-as-method
```

## Quickstart

If you have an [Ollama](https://ollama.com/download) running on the default port on your local machine:

```shell
python3 -m prompt-as-method \
--prompt-template ../tests/examples/example-sentiment.json \
--values ../tests/examples/example-sentiment-data.tsv
```

## Contributing

See the [development notes](https://github.com/GESIS-Methods-Hub/prompt-as-method/blob/main/docs/development.md).

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

prompt_as_method-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prompt_as_method-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file prompt_as_method-0.1.0.tar.gz.

File metadata

  • Download URL: prompt_as_method-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for prompt_as_method-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd9f564630513ef3dbd51f4e405a2ba8a88c683c3e6317d52edf94b75e544ff4
MD5 78857ea8c658594dcdccadaccc317918
BLAKE2b-256 a3d2322dd90b3c377f5d16ee9fb4ec8b5bbf06cada56352b28a696cafb2cd828

See more details on using hashes here.

Provenance

The following attestation bundles were made for prompt_as_method-0.1.0.tar.gz:

Publisher: publish.yml on GESIS-Methods-Hub/prompt-as-method

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file prompt_as_method-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for prompt_as_method-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4278d6998a0077418a34096f34f6aed6bb4afc4827bf1fbd4b880c56d5ec1b8e
MD5 4d86bcf2e24342cb345377fc4915b12c
BLAKE2b-256 77489acb68d30a8e5bd6d05048d31142889447fde4f73f6b4e4283f3030b5494

See more details on using hashes here.

Provenance

The following attestation bundles were made for prompt_as_method-0.1.0-py3-none-any.whl:

Publisher: publish.yml on GESIS-Methods-Hub/prompt-as-method

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page