⚠️ NOT a working implementation: just an interview task
A small Python library designed to interact with Large Language Models.
- Python 3.8 or higher
- Docker (optional, to run tests in a containerized environment)
-
Clone the repository:
git clone https://github.com/lpezzolla/py-llm-lib.git cd py-llm-lib
-
(Optional) Create and activate a Python virtual environment:
python -m venv .venv source .venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
- Build the Docker image:
docker-compose build
- Start the container:
docker-compose up
Run the test suite with pytest
:
pytest --maxfail=1 --disable-warnings
Run tests inside the Docker container:
docker-compose up
By default, the docker-compose.yml
file runs the test suite when the container starts.