Skip to content

Ajaykumarkv17/LLM_Examples

Repository files navigation

LLM Cookbooks & GenAI Examples

A comprehensive collection of examples, tutorials, and cookbooks for building AI applications using popular Large Language Models (LLMs) and GenAI frameworks.

🌟 Featured Collections

1. Anthropic Claude Tools

  • Customer service agent implementation
  • Structured JSON output generation
  • Tool use patterns and best practices

2. AutoGen Framework

  • Multi-agent conversations
  • AI-powered data visualization
  • Automated plotting and analytics

3. CrewAI Examples

  • Specialized agent roles
  • Team coordination patterns
  • Data visualization workflows

4. Groq Integration

  • Parallel tool execution
  • Structured output generation
  • Text-to-SQL implementations
  • Verified query examples

5. Hugging Face Toolkits

  • LLaMA model implementations
  • RAG with various backends
  • Agent-based systems
  • Vision-language models
  • Data analysis tools

6. LangChain Framework

  • Databricks SQL integration
  • Smart LLM implementations
  • Chain and agent orchestration

7. LlamaIndex Solutions

  • Document processing and RAG
  • Multimodal implementations
  • Agent workflows
  • PDF and slide deck handling

8. VannaAI Examples

  • Natural language to SQL
  • Interactive query generation
  • Database integration patterns

🛠 Getting Started

Prerequisites

  • Python 3.8+
  • Git
  • Required API keys:
    • Hugging Face
    • OpenAI (optional)
    • Anthropic (optional)
    • Groq (optional)

Repository Setup

  1. Clone the repository:
git clone https://github.com/Ajaykumarkv/llmexamples.git
cd llmexamples
  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install base dependencies:
pip install -r requirements.txt
  1. 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_here

Get your API keys:

📚 Example Usage

Each cookbook directory contains detailed documentation and Jupyter notebooks. To get started:

  1. Navigate to the desired cookbook:
cd [cookbook-directory]  # e.g., cd Huggingface_cookbooks
  1. Install cookbook-specific dependencies:
pip install -r requirements.txt  # if present
  1. Launch Jupyter:
jupyter notebook

📖 Documentation

Each directory contains detailed documentation and example notebooks:

  • {Framework/tool}-cookbooks/ - Step-by-step tutorials

🤝 Contributing

Contributions are welcome! Please read our Contributing Guidelines before submitting pull requests.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

📞 Support

  • 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

🔗 Additional Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published