Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.34 KB

File metadata and controls

65 lines (43 loc) · 1.34 KB

wags-llm

image image image Actions status

Wagnerds toolkit for structured LLM workflows.

Run LLM tasks with:

  • versioned prompts
  • typed (Pydantic) outputs
  • optional caching

Extend by defining your own prompts and response models


Installation

Wags-LLM is available on PyPI:

python3 -m pip install wags_llm

Example

See our Example Notebook for an example on how to use Wags-LLM.


Development

Clone the repo and create a virtual environment:

git clone https://github.com/genomicmedlab/wags_llm
cd wags_llm
python3 -m virtualenv venv
source venv/bin/activate

Install development dependencies and prek:

python3 -m pip install -e '.[dev,tests]'
prek install

Check style with ruff:

python3 -m ruff format . && python3 -m ruff check --fix .

Run tests with pytest:

pytest