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.
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
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
Next Steps
- Check out the Installation Guide for detailed setup
- Read the Usage Guide for examples
- Explore the API Reference for all methods
- See Examples for real-world use cases