Siddhant-Goswami / 100x-LLM

This is my open source project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project Overview

This project has all the code discussed in the 100x LLM lectures

Installation Guide

Prerequisites

  • Python 3.8+
  • pip

Creating a Virtual Environment

  1. Install virtualenv if not already installed:
   pip install virtualenv
  1. Create a new virtual environment:
   virtualenv venv
   source venv/bin/activate

Setup

  1. Clone the repository:
    git clone <repository-url>
  2. Navigate to the project directory:
    cd <project-directory>
  3. Install required packages:
    pip install -r requirements.txt
  4. Set up environment variables:
    • Copy .env_example to .env.
    • Add necessary API keys and configuration settings to .env.

Topics

Chat Completions

  • OpenAI Chat Completions: Utilizes OpenAI's GPT models for generating chat completions.
  • Groq Chat Completions: Uses Groq's API for chat completions.
  • Hugging Face Chat Completions: Demonstrates chat completions using Hugging Face models.

Function Calling

  • Weather Information: Fetches current weather using OpenAI and Groq APIs.
  • Stock Prices: Retrieves current stock prices using OpenAI's API.

Image Classification

  • Utilizes Hugging Face's Inference API to classify images provided via URLs.

Data Retrieval

  • Custom API built with FastAPI to perform operations like adding numbers and querying data.

File Structure

  • chat_completions/: Contains scripts for chat completions using different APIs.
  • function_calling/: Scripts for calling functions like fetching weather and stock prices.
  • huggingface/: Examples of using Hugging Face's Inference API for tasks like image classification.
  • api/: Contains FastAPI applications for custom functionalities.
  • data/: Sample data files used in the project.

Additional Notes

About

This is my open source project

License:MIT License


Languages

Language:Python 100.0%