Skip to content

Welcome to LLM Data Processer

A Python library for seamlessly working with Large Language Models (LLMs) from multiple providers. Easily integrate Hugging Face models, Google Gemini, OpenAI, and more with a unified interface.

Python 3.8+ License

Features

  • 🤖 Multi-Provider Support: Hugging Face, Google Gemini, OpenAI
  • 💬 Interactive Chat Widget: Built-in Jupyter notebook UI
  • 📊 Data Integration: Query pandas DataFrames with natural language
  • 📄 PDF Processing: Extract and analyze PDF documents
  • 🔍 Structured Information Extraction: Extract structured data with custom schemas and automatic retry logic
  • 📝 Guideline System: Custom guidelines to control model behavior
  • 🎨 History Management: Automatic conversation tracking
  • 🔧 Easy Configuration: Simple initialization with sensible defaults

Quick Start

Installation

pip install -r requirements.txt

Basic Usage

from llm_helper import AIHelper

# Initialize with Llama-3.1
ai = AIHelper(model_name='Llama-3.1')

# Ask a question
response = ai.ask("What is machine learning?")
print(response)

Interactive Chat

# Launch chat widget in Jupyter
ai.chat_widget()

Next Steps

Support