Skip to content

A draft Python lib to interact with LLMs - interview task

Notifications You must be signed in to change notification settings

lpezzolla/py-llm-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A draft Python lib to interact with LLMs - interview task

Resources

Stars

Watchers

Forks

Packages

No packages published