The LangChain ecosystem

Developing LLM Applications with LangChain

Jonathan Bennion

AI Engineer & LangChain Contributor

Meet your instructor...

 

Jonathan Bennion headshot.

 

 

  • Jonathan Bennion, AI Engineer
  • ML & AI at Facebook, Google, Amazon, Disney, EA
  • Created Logical Fallacy chain in LangChain
  • Contributor to DeepEval
Developing LLM Applications with LangChain

Build LLM Apps with LangChain

A building site for LLM/AI applications.

Developing LLM Applications with LangChain

The LangChain ecosystem consisting of LangChain, LangSmith, and LangGraph.

Developing LLM Applications with LangChain

LangChain integrations

LangChain partner organizations, including Anthropic, OpenAI, Hugging Face, neo4j, Databricks, XAI, Mistral, Cohere, Snowflake, and AWS.

1 https://python.langchain.com/docs/integrations/providers/
Developing LLM Applications with LangChain

Building LLM apps the LangChain way...

A customer support chatbot with two different modes: one to provide product information and make recommendations, and another to provide specific advise and FAQs for customers experiencing issues with placing orders.

Developing LLM Applications with LangChain

Building LLM apps the LangChain way...

An LLM represented as a car engine.

Developing LLM Applications with LangChain

Building LLM apps the LangChain way...

A split decision.

Developing LLM Applications with LangChain

Building LLM apps the LangChain way...

A database.

Developing LLM Applications with LangChain

Building LLM apps the LangChain way...

A magnifying glass representing the finding and retrieval of information.

Developing LLM Applications with LangChain

Prompting OpenAI models

from langchain_openai import ChatOpenAI

llm = ChatOpenAI( model="gpt-4o-mini", api_key='...' )
llm.invoke("What is LangChain?")
LangChain is a framework designed for developing applications...
  • Additional parameters: max_completion_tokens, temperature, etc.
1 https://platform.openai.com/docs/quickstart
Developing LLM Applications with LangChain

🤗 Prompting Hugging Face models

from langchain_huggingface import HuggingFacePipeline

llm = HuggingFacePipeline.from_model_id( model_id="meta-llama/Llama-3.2-3B-Instruct", task="text-generation", pipeline_kwargs={"max_new_tokens": 100} )
llm.invoke("What is Hugging Face?")
Hugging Face is a popular open-source artificial intelligence (AI) library...
Developing LLM Applications with LangChain

Let's practice!

Developing LLM Applications with LangChain

Preparing Video For Download...