Ecosistemul LangChain

Developing LLM Applications with LangChain

Jonathan Bennion

AI Engineer & LangChain Contributor

Cunoașteți instructorul...

 

Fotografie Jonathan Bennion.

 

 

  • Jonathan Bennion, Inginer AI
  • ML & AI la Facebook, Google, Amazon, Disney, EA
  • A creat Logical Fallacy chain în LangChain
  • Contribuitor la DeepEval
Developing LLM Applications with LangChain

Construiți aplicații LLM cu LangChain

Un șantier de construcții pentru aplicații LLM/AI.

Developing LLM Applications with LangChain

Ecosistemul LangChain format din LangChain, LangSmith și LangGraph.

Developing LLM Applications with LangChain

Integrări LangChain

Organizații partenere LangChain, inclusiv Anthropic, OpenAI, Hugging Face, neo4j, Databricks, XAI, Mistral, Cohere, Snowflake și AWS.

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

Construirea aplicațiilor LLM cu LangChain...

Un chatbot de asistență clienți cu două moduri: unul pentru informații despre produse și recomandări, altul pentru sfaturi specifice și întrebări frecvente pentru clienții cu probleme la plasarea comenzilor.

Developing LLM Applications with LangChain

Construirea aplicațiilor LLM cu LangChain...

Un LLM reprezentat ca un motor de mașină.

Developing LLM Applications with LangChain

Construirea aplicațiilor LLM cu LangChain...

O decizie bifurcată.

Developing LLM Applications with LangChain

Construirea aplicațiilor LLM cu LangChain...

O bază de date.

Developing LLM Applications with LangChain

Construirea aplicațiilor LLM cu LangChain...

O lupă reprezentând căutarea și regăsirea informațiilor.

Developing LLM Applications with LangChain

Interogarea modelelor OpenAI

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...
  • Parametri suplimentari: max_completion_tokens, temperature etc.
1 https://platform.openai.com/docs/quickstart
Developing LLM Applications with LangChain

🤗 Interogarea modelelor Hugging Face

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

Să exersăm!

Developing LLM Applications with LangChain

Preparing Video For Download...