LangChain OpenTutorial
  • 🦜️🔗 The LangChain Open Tutorial for Everyone
  • 01-Basic
    • Getting Started on Windows
    • 02-Getting-Started-Mac
    • OpenAI API Key Generation and Testing Guide
    • LangSmith Tracking Setup
    • Using the OpenAI API (GPT-4o Multimodal)
    • Basic Example: Prompt+Model+OutputParser
    • LCEL Interface
    • Runnable
  • 02-Prompt
    • Prompt Template
    • Few-Shot Templates
    • LangChain Hub
    • Personal Prompts for LangChain
    • Prompt Caching
  • 03-OutputParser
    • PydanticOutputParser
    • PydanticOutputParser
    • CommaSeparatedListOutputParser
    • Structured Output Parser
    • JsonOutputParser
    • PandasDataFrameOutputParser
    • DatetimeOutputParser
    • EnumOutputParser
    • Output Fixing Parser
  • 04-Model
    • Using Various LLM Models
    • Chat Models
    • Caching
    • Caching VLLM
    • Model Serialization
    • Check Token Usage
    • Google Generative AI
    • Huggingface Endpoints
    • HuggingFace Local
    • HuggingFace Pipeline
    • ChatOllama
    • GPT4ALL
    • Video Q&A LLM (Gemini)
  • 05-Memory
    • ConversationBufferMemory
    • ConversationBufferWindowMemory
    • ConversationTokenBufferMemory
    • ConversationEntityMemory
    • ConversationKGMemory
    • ConversationSummaryMemory
    • VectorStoreRetrieverMemory
    • LCEL (Remembering Conversation History): Adding Memory
    • Memory Using SQLite
    • Conversation With History
  • 06-DocumentLoader
    • Document & Document Loader
    • PDF Loader
    • WebBaseLoader
    • CSV Loader
    • Excel File Loading in LangChain
    • Microsoft Word(doc, docx) With Langchain
    • Microsoft PowerPoint
    • TXT Loader
    • JSON
    • Arxiv Loader
    • UpstageDocumentParseLoader
    • LlamaParse
    • HWP (Hangeul) Loader
  • 07-TextSplitter
    • Character Text Splitter
    • 02. RecursiveCharacterTextSplitter
    • Text Splitting Methods in NLP
    • TokenTextSplitter
    • SemanticChunker
    • Split code with Langchain
    • MarkdownHeaderTextSplitter
    • HTMLHeaderTextSplitter
    • RecursiveJsonSplitter
  • 08-Embedding
    • OpenAI Embeddings
    • CacheBackedEmbeddings
    • HuggingFace Embeddings
    • Upstage
    • Ollama Embeddings With Langchain
    • LlamaCpp Embeddings With Langchain
    • GPT4ALL
    • Multimodal Embeddings With Langchain
  • 09-VectorStore
    • Vector Stores
    • Chroma
    • Faiss
    • Pinecone
    • Qdrant
    • Elasticsearch
    • MongoDB Atlas
    • PGVector
    • Neo4j
    • Weaviate
    • Faiss
    • {VectorStore Name}
  • 10-Retriever
    • VectorStore-backed Retriever
    • Contextual Compression Retriever
    • Ensemble Retriever
    • Long Context Reorder
    • Parent Document Retriever
    • MultiQueryRetriever
    • MultiVectorRetriever
    • Self-querying
    • TimeWeightedVectorStoreRetriever
    • TimeWeightedVectorStoreRetriever
    • Kiwi BM25 Retriever
    • Ensemble Retriever with Convex Combination (CC)
  • 11-Reranker
    • Cross Encoder Reranker
    • JinaReranker
    • FlashRank Reranker
  • 12-RAG
    • Understanding the basic structure of RAG
    • RAG Basic WebBaseLoader
    • Exploring RAG in LangChain
    • RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval
    • Conversation-With-History
    • Translation
    • Multi Modal RAG
  • 13-LangChain-Expression-Language
    • RunnablePassthrough
    • Inspect Runnables
    • RunnableLambda
    • Routing
    • Runnable Parallel
    • Configure-Runtime-Chain-Components
    • Creating Runnable objects with chain decorator
    • RunnableWithMessageHistory
    • Generator
    • Binding
    • Fallbacks
    • RunnableRetry
    • WithListeners
    • How to stream runnables
  • 14-Chains
    • Summarization
    • SQL
    • Structured Output Chain
    • StructuredDataChat
  • 15-Agent
    • Tools
    • Bind Tools
    • Tool Calling Agent
    • Tool Calling Agent with More LLM Models
    • Iteration-human-in-the-loop
    • Agentic RAG
    • CSV/Excel Analysis Agent
    • Agent-with-Toolkits-File-Management
    • Make Report Using RAG, Web searching, Image generation Agent
    • TwoAgentDebateWithTools
    • React Agent
  • 16-Evaluations
    • Generate synthetic test dataset (with RAGAS)
    • Evaluation using RAGAS
    • HF-Upload
    • LangSmith-Dataset
    • LLM-as-Judge
    • Embedding-based Evaluator(embedding_distance)
    • LangSmith Custom LLM Evaluation
    • Heuristic Evaluation
    • Compare experiment evaluations
    • Summary Evaluators
    • Groundedness Evaluation
    • Pairwise Evaluation
    • LangSmith Repeat Evaluation
    • LangSmith Online Evaluation
    • LangFuse Online Evaluation
  • 17-LangGraph
    • 01-Core-Features
      • Understanding Common Python Syntax Used in LangGraph
      • Title
      • Building a Basic Chatbot with LangGraph
      • Building an Agent with LangGraph
      • Agent with Memory
      • LangGraph Streaming Outputs
      • Human-in-the-loop
      • LangGraph Manual State Update
      • Asking Humans for Help: Customizing State in LangGraph
      • DeleteMessages
      • DeleteMessages
      • LangGraph ToolNode
      • LangGraph ToolNode
      • Branch Creation for Parallel Node Execution
      • Conversation Summaries with LangGraph
      • Conversation Summaries with LangGraph
      • LangGrpah Subgraph
      • How to transform the input and output of a subgraph
      • LangGraph Streaming Mode
      • Errors
      • A Long-Term Memory Agent
    • 02-Structures
      • LangGraph-Building-Graphs
      • Naive RAG
      • Add Groundedness Check
      • Adding a Web Search Module
      • LangGraph-Add-Query-Rewrite
      • Agentic RAG
      • Adaptive RAG
      • Multi-Agent Structures (1)
      • Multi Agent Structures (2)
    • 03-Use-Cases
      • LangGraph Agent Simulation
      • Meta Prompt Generator based on User Requirements
      • CRAG: Corrective RAG
      • Plan-and-Execute
      • Multi Agent Collaboration Network
      • Multi Agent Collaboration Network
      • Multi-Agent Supervisor
      • 08-LangGraph-Hierarchical-Multi-Agent-Teams
      • 08-LangGraph-Hierarchical-Multi-Agent-Teams
      • SQL-Agent
      • 10-LangGraph-Research-Assistant
      • LangGraph Code Assistant
      • Deploy on LangGraph Cloud
      • Tree of Thoughts (ToT)
      • Ollama Deep Researcher (Deepseek-R1)
      • Functional API
      • Reflection in LangGraph
  • 19-Cookbook
    • 01-SQL
      • TextToSQL
      • SpeechToSQL
    • 02-RecommendationSystem
      • ResumeRecommendationReview
    • 03-GraphDB
      • Movie QA System with Graph Database
      • 05-TitanicQASystem
      • Real-Time GraphRAG QA
    • 04-GraphRAG
      • Academic Search System
      • Academic QA System with GraphRAG
    • 05-AIMemoryManagementSystem
      • ConversationMemoryManagementSystem
    • 06-Multimodal
      • Multimodal RAG
      • Shopping QnA
    • 07-Agent
      • 14-MoARAG
      • CoT Based Smart Web Search
      • 16-MultiAgentShoppingMallSystem
      • Agent-Based Dynamic Slot Filling
      • Code Debugging System
      • New Employee Onboarding Chatbot
      • 20-LangGraphStudio-MultiAgent
      • Multi-Agent Scheduler System
    • 08-Serving
      • FastAPI Serving
      • Sending Requests to Remote Graph Server
      • Building a Agent API with LangServe: Integrating Currency Exchange and Trip Planning
    • 08-SyntheticDataset
      • Synthetic Dataset Generation using RAG
    • 09-Monitoring
      • Langfuse Selfhosting
Powered by GitBook
On this page
  • Overview
  • Table of Contents
  • References
  • OpenAI - GPT Series
  • Model Variants
  • GPT-4o Overview
  • Meta - Llama Series
  • Model Variants
  • Llama 3.3 Overview
  • Anthropic - Claude Series
  • Model Variants
  • Claude 3 Opus Overview
  • Google - Gemini
  • Model Variants
  • Gemini 2.0 Flash Overview
  • Mistral AI Models Overview
  • Model Variants
  • Alibaba - Qwen
  • Model Variants
  • Key Features
  1. 04-Model

Using Various LLM Models

Previous04-ModelNextChat Models

Last updated 28 days ago

  • Author:

  • Peer Review :

  • Proofread :

  • This is a part of

Overview

This tutorial provides a comprehensive guide to major Large Language Models (LLMs) in the AI Market.

Table of Contents

References


OpenAI - GPT Series

GPT models by OpenAI are advanced transformer-based language models designed for tasks like text generation, summarization, translation, and Q&A. Offered primarily as a cloud-based API, they let developers use the models without hosting them. While not open-source, GPT provides pre-trained models with fine-tuning capabilities.

Model Variants

  1. GPT-4o Series (Flagship Models)

    • GPT-4o: High-reliability model with improved speed over Turbo

    • GPT-4-turbo: Latest model with vision, JSON, and function calling capabilities

    • GPT-4o-mini: Entry-level model surpassing GPT-3.5 Turbo performance

  2. O1 Series (Reasoning Specialists)

    • O1: Advanced reasoning model for complex problem-solving

    • O1-mini: Fast, cost-effective model for specialized tasks

  3. GPT-4o Multimedia Series (Beta)

    • GPT-4o-realtime: Real-time audio and text processing model

    • GPT-4o-audio-preview: Specialized audio input/output model

GPT-4o Overview

Core Features

  • Most advanced GPT-4 model with enhanced reliability

  • Faster processing compared to GPT-4-turbo variant

  • Extensive 128,000-token context window

  • 16,384-token maximum output capacity

Performance

  • Superior reliability and consistency in responses

  • Enhanced reasoning capabilities across diverse tasks

  • Optimized speed for real-time applications

  • Balanced efficiency for resource utilization

Use Cases

  • Complex analysis and problem-solving

  • Long-form content generation

  • Detailed technical documentation

  • Advanced code generation and review

Technical Specifications

  • Latest GPT architecture optimizations

  • Improved response accuracy

  • Built-in safety measures

  • Enhanced context retention

Meta - Llama Series

Meta's Llama AI series offers open-source models that allow fine-tuning, distillation, and flexible deployment.

Model Variants

  1. Llama 3.1 (Multilingual)

    • 8B: Light-weight, ultra-fast model for mobile and edge devices

    • 405B: Flagship foundation model for diverse use cases

  2. Llama 3.2 (Lightweight and Multimodal)

    • 1B and 3B: Efficient models for on-device processing

    • 11B and 90B: Multimodal models with high-resolution image reasoning

  3. Llama 3.3 (Multilingual)

    • 70B: Multilingual support with enhanced performance

Llama 3.3 Overview

Safety Features

  • Incorporates alignment techniques for safe responses

Performance

  • Comparable to larger models with fewer resources

Efficiency

  • Optimized for common GPUs, reducing hardware needs

Language Support

  • Supports eight languages, including English and Spanish

Training

  • Pre-trained on 15 trillion tokens

  • Fine-tuned through Supervised Fine-tuning (SFT) and RLHF

    Supervised Fine-tuning : Supervised fine-tuning is a process of improving an existing AI model's performance by training it with labeled data. For example, if you want to teach the model text summarization, you provide pairs of 'original text' and 'summarized text' as training data. Through this training with correct answer pairs, the model can enhance its performance on specific tasks.

    Reinforcement Learning with Human Feedback (RLHF) : RLHF is a method where AI models learn to generate better responses through human feedback. When the AI generates responses, humans evaluate them, and the model improves based on these evaluations. Just like a student improves their skills through teacher feedback, AI develops to provide more ethical and helpful responses through human feedback.

Use Cases

Anthropic - Claude Series

Claude models by Anthropic are advanced language models with cloud-based APIs for diverse NLP tasks. These models balance performance, safety, and real-time responsiveness.

Model Variants

  1. Claude 3 Series (Flagship Models)

    • Claude 3 Haiku: Near-instant responsiveness

    • Claude 3 Sonnet: Balanced intelligence and speed

    • Claude 3 Opus: Strong performance for complex tasks

  2. Claude 3.5 Series (Enhanced Models)

    • Claude 3.5 Haiku: Enhanced real-time responses

    • Claude 3.5 Sonnet: Advanced research and analysis capabilities

Claude 3 Opus Overview

Core Features

  • Handles highly complex tasks such as math and coding

  • Extensive context window for detailed document processing

Performance

  • Superior reliability and consistency

  • Optimized for real-time applications

Use Cases

  • Long-form content generation

  • Detailed technical documentation

  • Advanced code generation and review

Google - Gemini

Google's Gemini models prioritize efficiency and scalability, designed for a wide range of advanced applications.

Model Variants

  1. Gemini 1.5 Flash: Offers a 1 million-token context window

  2. Gemini 1.5 Pro: Offers a 2 million-token context window

  3. Gemini 2.0 Flash (Experimental): Next-generation model with enhanced speed and performance

Gemini 2.0 Flash Overview

Core Features

  • Supports multimodal live APIs for real-time vision and audio streaming applications

  • Enhanced spatial understanding and native image generation capabilities

  • Integrated tool usage and improved agent functionalities

Performance

  • Provides faster speeds and improved performance compared to previous models

Use Cases

  • Real-time streaming applications

  • Reasoning tasks for complex problem-solving

  • Image and text generation

Mistral AI Models Overview

Mistral AI provides commercial and open-source models for diverse NLP tasks, including specialized solutions.

Model Variants

Commercial Models

  • Mistral Large 24.11: Multilingual with a 128k context window

  • Codestral: Coding specialist with 80+ language support

  • Ministral Series: Lightweight models for low-latency applications

Open Source Models

  • Mathstral: Mathematics-focused

  • Codestral Mamba: 256k context for coding tasks

Alibaba - Qwen

Alibaba’s Qwen models offer open-source and commercial variants optimized for diverse industries and tasks.

Model Variants

  1. Qwen 2.5: Advanced multilingual model

  2. Qwen-VL: Multimodal text and image capabilities

  3. Qwen-Audio: Specialized in audio transcription and analysis

  4. Qwen-Coder: Optimized for coding tasks

  5. Qwen-Math: Designed for advanced math problem-solving

Key Features

  • Leading performance on various benchmarks

  • Easy deployment with Alibaba Cloud’s platform

  • Applications in generative AI, such as writing, image generation, and audio analysis

.

.

.

.

.

.

For more detailed information, please refer to .

For more detailed information, please refer to .

For more detailed information, please refer to .

For more detailed information, refer to .

For more detailed information, please refer to .

For more detailed information, visit .

OpenAI's models overview
Meta's models overview
Anthropic's models overview
Google’s models overview
Mistral's models overview
Alibaba Cloud’s models overview
OpenAI's official documentation
Meta's official documentation
Anthropic's official documentation
Google's Gemini documentation
Mistral's official documentation
Alibaba Cloud’s official Qwen page
eunhhyy
Wooseok Jeong
Chaeyoon Kim
LangChain Open Tutorial
Overview
OpenAI GPT Series
Meta Llama Series
Anthropic Claude Series
Google Gemini Series
Mistral AI models Series
Alibaba Qwen Series