Skip to content

Install Guide

PyPI install

Install the published package:

pip install llm-feature-gen

Supported targets are summarized in the platform support matrix.

Development install

If you are working from a repository checkout:

python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

To build the documentation locally:

pip install -e ".[docs]"

Optional runtime dependencies

Some file formats depend on extra libraries at runtime:

  • PDF: pypdf
  • DOCX: python-docx
  • HTML: beautifulsoup4
  • XLSX: openpyxl
  • XLS: xlrd
  • Parquet: pyarrow or fastparquet

Install them as needed:

pip install pypdf python-docx beautifulsoup4 openpyxl xlrd pyarrow

Video audio extraction also requires the ffmpeg system binary to be available on your machine.

Environment variables

The default provider reads credentials from a .env file in your working directory.

OpenAI:

OPENAI_API_KEY=your_api_key
OPENAI_MODEL=gpt-4.1-mini
OPENAI_AUDIO_MODEL=whisper-1

Azure OpenAI:

AZURE_OPENAI_API_KEY=your_api_key
AZURE_OPENAI_API_VERSION=your_api_version
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
AZURE_OPENAI_GPT41_DEPLOYMENT_NAME=your_chat_deployment
AZURE_OPENAI_WHISPER_DEPLOYMENT=your_audio_deployment

For local OpenAI-compatible servers, see the provider configuration reference.