Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 1.05 KB

README.md

File metadata and controls

51 lines (43 loc) · 1.05 KB

PY LLM Lib

⚠️ NOT a working implementation: just an interview task

A small Python library designed to interact with Large Language Models.

Setup instructions

Prerequisites

  • Python 3.8 or higher
  • Docker (optional, to run tests in a containerized environment)

Installing Locally

  1. Clone the repository:

    git clone https://github.com/lpezzolla/py-llm-lib.git
    cd py-llm-lib
  2. (Optional) Create and activate a Python virtual environment:

    python -m venv .venv
    source .venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt

Using Docker

  1. Build the Docker image:
    docker-compose build
  2. Start the container:
    docker-compose up

Running tests

Locally

Run the test suite with pytest:

pytest --maxfail=1 --disable-warnings

With Docker

Run tests inside the Docker container:

docker-compose up

By default, the docker-compose.yml file runs the test suite when the container starts.