A comprehensive collection of examples, tutorials, and cookbooks for building AI applications using popular Large Language Models (LLMs) and GenAI frameworks.
- Customer service agent implementation
- Structured JSON output generation
- Tool use patterns and best practices
- Multi-agent conversations
- AI-powered data visualization
- Automated plotting and analytics
- Specialized agent roles
- Team coordination patterns
- Data visualization workflows
- Parallel tool execution
- Structured output generation
- Text-to-SQL implementations
- Verified query examples
- LLaMA model implementations
- RAG with various backends
- Agent-based systems
- Vision-language models
- Data analysis tools
- Databricks SQL integration
- Smart LLM implementations
- Chain and agent orchestration
- Document processing and RAG
- Multimodal implementations
- Agent workflows
- PDF and slide deck handling
- Natural language to SQL
- Interactive query generation
- Database integration patterns
- Python 3.8+
- Git
- Required API keys:
- Hugging Face
- OpenAI (optional)
- Anthropic (optional)
- Groq (optional)
- Clone the repository:
git clone https://github.com/Ajaykumarkv/llmexamples.git
cd llmexamples- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install base dependencies:
pip install -r requirements.txt- Configure your environment:
# Required for most examples
export HUGGINGFACE_API_KEY=your_key_here
# Optional based on examples you're running
export OPENAI_API_KEY=your_key_here
export ANTHROPIC_API_KEY=your_key_here
export GROQ_API_KEY=your_key_hereGet your API keys:
Each cookbook directory contains detailed documentation and Jupyter notebooks. To get started:
- Navigate to the desired cookbook:
cd [cookbook-directory] # e.g., cd Huggingface_cookbooks- Install cookbook-specific dependencies:
pip install -r requirements.txt # if present- Launch Jupyter:
jupyter notebookEach directory contains detailed documentation and example notebooks:
{Framework/tool}-cookbooks/- Step-by-step tutorials
Contributions are welcome! Please read our Contributing Guidelines before submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
- Create an issue for bug reports or feature requests or error occurs while trying out.
- Star the repository if you find useful
- Clone the repository for colloboration
- Fork for your own modifications
- Open for discussions