SlideShare uma empresa Scribd logo
1 de 19
Baixar para ler offline
FRAMEWORK
LANGCHAIN
“CHAIN” TOGETHER DIFFERENT COMPONENTS TO CREATE
MORE ADVANCED USE CASES AROUND LLMS
OZGUR OZKAN
MANAGING EXPECTATIONS
Who am I?
Startup Background
Educational Background
NEO AI
Conversationalist
Software Engineer Contractor @ Pollinate
Founder @ Keymate.AI
CTO in several tech startups one AI startup
Reminis and one generative AI product in 2016
Masters in AI (Facial Recognition / Similarity Search)
Bsc in CS
My twitter bio set in 2019: I may continue to tweet
even after I die thanks to future AI version of
myself. Not dead, yet.
ChatGPT rated this keynote 7/10
LANGCHAIN
PHILOSOPHY
1.Connect a language model to other sources of data
2.Allow a language model to interact with its
environment
CLIK HERE
NumPy and Pandas for LLMs, greatly increasing their
usability and functionality
Examples that leverages Langchain:
AgentGPT, babyAGI
Minecraft playing GPT4 (Voyager)***
LANGCHAIN
COMPONENTS
Schema: Text structure
Model:OpenAI completion, text-in text-out or embedded
Prompt templates
Indexes and Document Loaders
Memory: Long term and short term
Chains: LLMChain
Agents: which tools should be called or used
Components
Chains may consist of multiple components from
several modules
Minecraft playing GPT-4 (Voyager)
ReAct : REASONING AND ACTING IN
LANGUAGE MODELS
Plan-and-solve
Chain-of-thought reasoning
Had to develop my own langchain in iOS, tool using agent, chat history,
decision prioritisation, message type handler
ELEMENTS
Focus on things on
top
Research Papers
about prompting
methods
Langchain:LLM interaction framework but easy to
adapt to another Programming Language and System
REIMPLEMENTING
LANGCHAIN
What if you have to use another PL
(Not Python or TypeScript)
ORCHESTRATOR
EXAMPLE
User:
LLM:
LLM:
LLM:
Tool result
LLM
Langchain developer
Loop
TEMPLATE
Can we run ReAct
(Reason + Act) on
ChatGPT Plus?
It seems YES! we just need to find a way to inform LLM about thought patterns.
Human structured/abstracted execution may not be the best option. (langchain)
You as a human is just a tool for LLM. Langchain is already baked in ChatGPT.
REACT ON CHATGPT
PLUS
Utilize the "internetSearch" plugin and search for
the Reasoning and Acting Chain of Thought
framework. Generate reasoning traces and actions,
then apply the ReAct Framework that you'll learn
from the initial search.
Subsequently, look up the latest research on the
impact of climate change on biodiversity, and
summarize the key findings.
Too long, Didn't scan and read:
Select the Keymate.AI search plugin and prompt in the
following manner:
1.
2.
Magic keyword is continue. Continues the loop.
internetSearch Plugin (Keymate.AI) + 2 Extra
tools of your choice
COMPONENTS CONT.
LLMs (GPT4 , Hugging Face etc)
In LLMs we trust all others manage time, resources, limits, autonomy
Chat Models (Many built on top of GPT3)
Embeddings (To store and search/retrieve big data)
Toolkits (specialized agent for particular use case)
Tools (agents can use to achieve certain tasks)
Tokenizers (To count text size before passing to LLM)
Document Loaders (Text document processing)
Vectorstores (To store and index information to pass to agent)
Agent Strategy (Prompt engineering / Research Papers )
The more general an agent is the less powerful in terms of task handling
unless it has a very clever LLM.
Good plugins can still work really well with ChatGPT.
Interesting ideas:
Add user based memory to your plugin. (auth and good vectorstore is
needed)
Add smart GPT4 based chains to your plugin ( time limit :( )
TOKEN LIMITS
VECTORSTORES AND SIMILARITY
TAKEAWAYS
Can you observe the the thought reactions?
When it awaits for input it wants to use you as a tool.
Force trigger tools
Using continue keyword
Chain is derived from a dynamic state machine and it's endless
You were part of the chain in ChatGPT and starting prompt
Langchain is limited to two programming languages and limited platforms
Build your own langchain. Good to grasp the concept.
Amazing applications on top of langchain.
Your language model can run structured or unstructured other models so
that when right tools provided it can achieve anything.
Personal opinion: Customised prompt templates and chains is better than
using a framework, performance is limited with 30 seconds on the internet
as sockets are short lived but LLM needs more chaining and time to
execute sometimes.
Using 10 tools at the same time is possible but not over the Web.
Unstructured models should become structured and time-framed.
TAKEAWAYS
Point 1: It's important to leverage human tool correctly. Users should be
aware of using keywords and triggering specific tools when needed.
ChatGPT is actually half-GPT, when you increase human UX and usability
and prompt knowledge ChatGPT performs better.
Human Tool can be enhanced to pass beyond the limits of chatgpt :
Zero-shot, one-shot, few-shots learning concepts
Tool triggering
Usage of human memory to pass the context from one chat to another
Transfer Learning
Usage of Vector Databases for local memory, manual usage of vector
databases to enhance human input.
Naming entities and giving example to concepts.
Forcing ChatGPT to review and rate itself. Although it sounds harsh to a
human it makes chatGPT go beyond it's initial reasoning and pushes
forward.
User should know more about underlying agents: should I use the one that
does constant self-critique or should I use the one that hallucinates a bit
more.
Time limits are the bottleneck of AI systems
You need constant smart summarisation, divide n conquer techniques to
overcome the issues.
TAKEAWAYS
Specialized custom solutions work best; I suggest going bottom-up on
expert systems, but structuring and abstracting things may not be
beneficial.
Langchain is abstraction and it leaks a lot; leakages cause time and money
limits to hit early, and tasks usually either fail or require many iterations.
You don't have to overoptimize on prompt engineering if LLM is clever.
GPT4 learned how to apply ReAct framework with just a google search
plugin.
We need more clever LLMs.
Good applications are very rare.
CONTACT ME
Ozgur Ozkan
ozgur.ozkan@keymate.ai
EMAIL ADDRESS
+447919236753
PHONE NUMBER WEBSITE
keymate.ai
LinkedIn
THANK YOU!!

Mais conteúdo relacionado

Mais procurados

How ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundlyHow ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundlyPekka Abrahamsson / Tampere University
 
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...Applitools
 
Mother of Language`s Langchain
Mother of Language`s LangchainMother of Language`s Langchain
Mother of Language`s LangchainJun-hang Lee
 
Build an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdfBuild an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdfAnastasiaSteele10
 
Fine tuning large LMs
Fine tuning large LMsFine tuning large LMs
Fine tuning large LMsSylvainGugger
 
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...David Talby
 
A Comprehensive Review of Large Language Models for.pptx
A Comprehensive Review of Large Language Models for.pptxA Comprehensive Review of Large Language Models for.pptx
A Comprehensive Review of Large Language Models for.pptxSaiPragnaKancheti
 
Episode 2: The LLM / GPT / AI Prompt / Data Engineer Roadmap
Episode 2: The LLM / GPT / AI Prompt / Data Engineer RoadmapEpisode 2: The LLM / GPT / AI Prompt / Data Engineer Roadmap
Episode 2: The LLM / GPT / AI Prompt / Data Engineer RoadmapAnant Corporation
 
How Does Generative AI Actually Work? (a quick semi-technical introduction to...
How Does Generative AI Actually Work? (a quick semi-technical introduction to...How Does Generative AI Actually Work? (a quick semi-technical introduction to...
How Does Generative AI Actually Work? (a quick semi-technical introduction to...ssuser4edc93
 
Prompting is an art / Sztuka promptowania
Prompting is an art / Sztuka promptowaniaPrompting is an art / Sztuka promptowania
Prompting is an art / Sztuka promptowaniaMichal Jaskolski
 
GPT-2: Language Models are Unsupervised Multitask Learners
GPT-2: Language Models are Unsupervised Multitask LearnersGPT-2: Language Models are Unsupervised Multitask Learners
GPT-2: Language Models are Unsupervised Multitask LearnersYoung Seok Kim
 
An Introduction to Generative AI - May 18, 2023
An Introduction  to Generative AI - May 18, 2023An Introduction  to Generative AI - May 18, 2023
An Introduction to Generative AI - May 18, 2023CoriFaklaris1
 
Chat Bots Presentation 8.9.16
Chat Bots Presentation 8.9.16Chat Bots Presentation 8.9.16
Chat Bots Presentation 8.9.16Samuel Adams, MBA
 
The Rise of the LLMs - How I Learned to Stop Worrying & Love the GPT!
The Rise of the LLMs - How I Learned to Stop Worrying & Love the GPT!The Rise of the LLMs - How I Learned to Stop Worrying & Love the GPT!
The Rise of the LLMs - How I Learned to Stop Worrying & Love the GPT!taozen
 
And then there were ... Large Language Models
And then there were ... Large Language ModelsAnd then there were ... Large Language Models
And then there were ... Large Language ModelsLeon Dohmen
 

Mais procurados (20)

How ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundlyHow ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundly
 
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
Unlocking the Power of ChatGPT and AI in Testing - NextSteps, presented by Ap...
 
Mother of Language`s Langchain
Mother of Language`s LangchainMother of Language`s Langchain
Mother of Language`s Langchain
 
Build an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdfBuild an LLM-powered application using LangChain.pdf
Build an LLM-powered application using LangChain.pdf
 
Fine tuning large LMs
Fine tuning large LMsFine tuning large LMs
Fine tuning large LMs
 
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...
Large Language Models, No-Code, and Responsible AI - Trends in Applied NLP in...
 
A Comprehensive Review of Large Language Models for.pptx
A Comprehensive Review of Large Language Models for.pptxA Comprehensive Review of Large Language Models for.pptx
A Comprehensive Review of Large Language Models for.pptx
 
Episode 2: The LLM / GPT / AI Prompt / Data Engineer Roadmap
Episode 2: The LLM / GPT / AI Prompt / Data Engineer RoadmapEpisode 2: The LLM / GPT / AI Prompt / Data Engineer Roadmap
Episode 2: The LLM / GPT / AI Prompt / Data Engineer Roadmap
 
ChatGPT for Academic
ChatGPT for AcademicChatGPT for Academic
ChatGPT for Academic
 
Chatbot ppt
Chatbot pptChatbot ppt
Chatbot ppt
 
How Does Generative AI Actually Work? (a quick semi-technical introduction to...
How Does Generative AI Actually Work? (a quick semi-technical introduction to...How Does Generative AI Actually Work? (a quick semi-technical introduction to...
How Does Generative AI Actually Work? (a quick semi-technical introduction to...
 
Prompting is an art / Sztuka promptowania
Prompting is an art / Sztuka promptowaniaPrompting is an art / Sztuka promptowania
Prompting is an art / Sztuka promptowania
 
GPT-2: Language Models are Unsupervised Multitask Learners
GPT-2: Language Models are Unsupervised Multitask LearnersGPT-2: Language Models are Unsupervised Multitask Learners
GPT-2: Language Models are Unsupervised Multitask Learners
 
An Introduction to Generative AI - May 18, 2023
An Introduction  to Generative AI - May 18, 2023An Introduction  to Generative AI - May 18, 2023
An Introduction to Generative AI - May 18, 2023
 
OpenAI Chatgpt.pptx
OpenAI Chatgpt.pptxOpenAI Chatgpt.pptx
OpenAI Chatgpt.pptx
 
ChatGPT Use- Cases
ChatGPT Use- Cases ChatGPT Use- Cases
ChatGPT Use- Cases
 
Chat Bots Presentation 8.9.16
Chat Bots Presentation 8.9.16Chat Bots Presentation 8.9.16
Chat Bots Presentation 8.9.16
 
Uses of AI text bot.pdf
Uses of AI text bot.pdfUses of AI text bot.pdf
Uses of AI text bot.pdf
 
The Rise of the LLMs - How I Learned to Stop Worrying & Love the GPT!
The Rise of the LLMs - How I Learned to Stop Worrying & Love the GPT!The Rise of the LLMs - How I Learned to Stop Worrying & Love the GPT!
The Rise of the LLMs - How I Learned to Stop Worrying & Love the GPT!
 
And then there were ... Large Language Models
And then there were ... Large Language ModelsAnd then there were ... Large Language Models
And then there were ... Large Language Models
 

Semelhante a LangChain Intro by KeyMate.AI

How to Build an App with ChatGPT.pdf
How to Build an App with ChatGPT.pdfHow to Build an App with ChatGPT.pdf
How to Build an App with ChatGPT.pdfStephenAmell4
 
How to Build an App with ChatGPT.pdf
How to Build an App with ChatGPT.pdfHow to Build an App with ChatGPT.pdf
How to Build an App with ChatGPT.pdfMatthewHaws4
 
chatgpt seminar ppt.pptx
chatgpt seminar ppt.pptxchatgpt seminar ppt.pptx
chatgpt seminar ppt.pptxAltafSMT
 
chatgpt seminar ppt.pptx
chatgpt seminar ppt.pptxchatgpt seminar ppt.pptx
chatgpt seminar ppt.pptxAltafSMT
 
ChatGPT and Mulesoft.pptx
ChatGPT and Mulesoft.pptxChatGPT and Mulesoft.pptx
ChatGPT and Mulesoft.pptxshiva310211
 
ChatGPT Usage In Software Development – Curse or Boon.pdf
ChatGPT Usage In Software Development – Curse or Boon.pdfChatGPT Usage In Software Development – Curse or Boon.pdf
ChatGPT Usage In Software Development – Curse or Boon.pdfLaura Miller
 
ChatGPT usage in software development - curse or boon.pdf
ChatGPT usage in software development - curse or boon.pdfChatGPT usage in software development - curse or boon.pdf
ChatGPT usage in software development - curse or boon.pdfLaura Miller
 
What is Chatgpt Complete Guide
What is Chatgpt Complete GuideWhat is Chatgpt Complete Guide
What is Chatgpt Complete GuideRavendra Singh
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
How AI and ChatGPT are changing cybersecurity forever.pptx
How AI and ChatGPT are changing cybersecurity forever.pptxHow AI and ChatGPT are changing cybersecurity forever.pptx
How AI and ChatGPT are changing cybersecurity forever.pptxInfosec
 
leewayhertz.com-ChatGPT use cases and solutions for enterprises.pdf
leewayhertz.com-ChatGPT use cases and solutions for enterprises.pdfleewayhertz.com-ChatGPT use cases and solutions for enterprises.pdf
leewayhertz.com-ChatGPT use cases and solutions for enterprises.pdfKristiLBurns
 
The World of ChatGPT.pdf
The World of ChatGPT.pdfThe World of ChatGPT.pdf
The World of ChatGPT.pdfRia Morgan
 
Introduction to ChatGPT & how its implemented in UiPath
Introduction to ChatGPT & how its implemented in UiPathIntroduction to ChatGPT & how its implemented in UiPath
Introduction to ChatGPT & how its implemented in UiPathsharonP24
 
Introduction to Chat GPT
Introduction to Chat GPTIntroduction to Chat GPT
Introduction to Chat GPTDianaGray10
 
ChatGPT Deck.pptx
ChatGPT Deck.pptxChatGPT Deck.pptx
ChatGPT Deck.pptxomornahid1
 
ITB_2023_Chatgpt_Box_Scott_Steinbeck.pdf
ITB_2023_Chatgpt_Box_Scott_Steinbeck.pdfITB_2023_Chatgpt_Box_Scott_Steinbeck.pdf
ITB_2023_Chatgpt_Box_Scott_Steinbeck.pdfOrtus Solutions, Corp
 
Using Generative AI in the Classroom .pptx
Using Generative AI in the Classroom .pptxUsing Generative AI in the Classroom .pptx
Using Generative AI in the Classroom .pptxJonathanDietz3
 
ChatGPT-GTR 22-9-23.pdf
ChatGPT-GTR 22-9-23.pdfChatGPT-GTR 22-9-23.pdf
ChatGPT-GTR 22-9-23.pdfrajugt3
 

Semelhante a LangChain Intro by KeyMate.AI (20)

How to Build an App with ChatGPT.pdf
How to Build an App with ChatGPT.pdfHow to Build an App with ChatGPT.pdf
How to Build an App with ChatGPT.pdf
 
How to Build an App with ChatGPT.pdf
How to Build an App with ChatGPT.pdfHow to Build an App with ChatGPT.pdf
How to Build an App with ChatGPT.pdf
 
chatgpt seminar ppt.pptx
chatgpt seminar ppt.pptxchatgpt seminar ppt.pptx
chatgpt seminar ppt.pptx
 
chatgpt seminar ppt.pptx
chatgpt seminar ppt.pptxchatgpt seminar ppt.pptx
chatgpt seminar ppt.pptx
 
ChatGPT and Mulesoft.pptx
ChatGPT and Mulesoft.pptxChatGPT and Mulesoft.pptx
ChatGPT and Mulesoft.pptx
 
ChatGPT Usage In Software Development – Curse or Boon.pdf
ChatGPT Usage In Software Development – Curse or Boon.pdfChatGPT Usage In Software Development – Curse or Boon.pdf
ChatGPT Usage In Software Development – Curse or Boon.pdf
 
ChatGPT usage in software development - curse or boon.pdf
ChatGPT usage in software development - curse or boon.pdfChatGPT usage in software development - curse or boon.pdf
ChatGPT usage in software development - curse or boon.pdf
 
What is Chatgpt Complete Guide
What is Chatgpt Complete GuideWhat is Chatgpt Complete Guide
What is Chatgpt Complete Guide
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
How AI and ChatGPT are changing cybersecurity forever.pptx
How AI and ChatGPT are changing cybersecurity forever.pptxHow AI and ChatGPT are changing cybersecurity forever.pptx
How AI and ChatGPT are changing cybersecurity forever.pptx
 
leewayhertz.com-ChatGPT use cases and solutions for enterprises.pdf
leewayhertz.com-ChatGPT use cases and solutions for enterprises.pdfleewayhertz.com-ChatGPT use cases and solutions for enterprises.pdf
leewayhertz.com-ChatGPT use cases and solutions for enterprises.pdf
 
The World of ChatGPT.pdf
The World of ChatGPT.pdfThe World of ChatGPT.pdf
The World of ChatGPT.pdf
 
Introduction to ChatGPT & how its implemented in UiPath
Introduction to ChatGPT & how its implemented in UiPathIntroduction to ChatGPT & how its implemented in UiPath
Introduction to ChatGPT & how its implemented in UiPath
 
Introduction to Chat GPT
Introduction to Chat GPTIntroduction to Chat GPT
Introduction to Chat GPT
 
ChatGPT Deck.pptx
ChatGPT Deck.pptxChatGPT Deck.pptx
ChatGPT Deck.pptx
 
ITB_2023_Chatgpt_Box_Scott_Steinbeck.pdf
ITB_2023_Chatgpt_Box_Scott_Steinbeck.pdfITB_2023_Chatgpt_Box_Scott_Steinbeck.pdf
ITB_2023_Chatgpt_Box_Scott_Steinbeck.pdf
 
Chatgpt.pptx
Chatgpt.pptxChatgpt.pptx
Chatgpt.pptx
 
Using Generative AI in the Classroom .pptx
Using Generative AI in the Classroom .pptxUsing Generative AI in the Classroom .pptx
Using Generative AI in the Classroom .pptx
 
ChatGPT.pptx
ChatGPT.pptxChatGPT.pptx
ChatGPT.pptx
 
ChatGPT-GTR 22-9-23.pdf
ChatGPT-GTR 22-9-23.pdfChatGPT-GTR 22-9-23.pdf
ChatGPT-GTR 22-9-23.pdf
 

Último

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Último (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

LangChain Intro by KeyMate.AI

  • 1. FRAMEWORK LANGCHAIN “CHAIN” TOGETHER DIFFERENT COMPONENTS TO CREATE MORE ADVANCED USE CASES AROUND LLMS OZGUR OZKAN
  • 2. MANAGING EXPECTATIONS Who am I? Startup Background Educational Background NEO AI Conversationalist Software Engineer Contractor @ Pollinate Founder @ Keymate.AI CTO in several tech startups one AI startup Reminis and one generative AI product in 2016 Masters in AI (Facial Recognition / Similarity Search) Bsc in CS My twitter bio set in 2019: I may continue to tweet even after I die thanks to future AI version of myself. Not dead, yet. ChatGPT rated this keynote 7/10
  • 3. LANGCHAIN PHILOSOPHY 1.Connect a language model to other sources of data 2.Allow a language model to interact with its environment CLIK HERE NumPy and Pandas for LLMs, greatly increasing their usability and functionality Examples that leverages Langchain: AgentGPT, babyAGI Minecraft playing GPT4 (Voyager)***
  • 4. LANGCHAIN COMPONENTS Schema: Text structure Model:OpenAI completion, text-in text-out or embedded Prompt templates Indexes and Document Loaders Memory: Long term and short term Chains: LLMChain Agents: which tools should be called or used Components Chains may consist of multiple components from several modules
  • 5. Minecraft playing GPT-4 (Voyager) ReAct : REASONING AND ACTING IN LANGUAGE MODELS Plan-and-solve Chain-of-thought reasoning Had to develop my own langchain in iOS, tool using agent, chat history, decision prioritisation, message type handler ELEMENTS Focus on things on top Research Papers about prompting methods Langchain:LLM interaction framework but easy to adapt to another Programming Language and System
  • 6. REIMPLEMENTING LANGCHAIN What if you have to use another PL (Not Python or TypeScript) ORCHESTRATOR
  • 9. Can we run ReAct (Reason + Act) on ChatGPT Plus? It seems YES! we just need to find a way to inform LLM about thought patterns. Human structured/abstracted execution may not be the best option. (langchain) You as a human is just a tool for LLM. Langchain is already baked in ChatGPT.
  • 10.
  • 11. REACT ON CHATGPT PLUS Utilize the "internetSearch" plugin and search for the Reasoning and Acting Chain of Thought framework. Generate reasoning traces and actions, then apply the ReAct Framework that you'll learn from the initial search. Subsequently, look up the latest research on the impact of climate change on biodiversity, and summarize the key findings. Too long, Didn't scan and read: Select the Keymate.AI search plugin and prompt in the following manner: 1. 2. Magic keyword is continue. Continues the loop. internetSearch Plugin (Keymate.AI) + 2 Extra tools of your choice
  • 12. COMPONENTS CONT. LLMs (GPT4 , Hugging Face etc) In LLMs we trust all others manage time, resources, limits, autonomy Chat Models (Many built on top of GPT3) Embeddings (To store and search/retrieve big data) Toolkits (specialized agent for particular use case) Tools (agents can use to achieve certain tasks) Tokenizers (To count text size before passing to LLM) Document Loaders (Text document processing) Vectorstores (To store and index information to pass to agent) Agent Strategy (Prompt engineering / Research Papers ) The more general an agent is the less powerful in terms of task handling unless it has a very clever LLM. Good plugins can still work really well with ChatGPT. Interesting ideas: Add user based memory to your plugin. (auth and good vectorstore is needed) Add smart GPT4 based chains to your plugin ( time limit :( )
  • 15. TAKEAWAYS Can you observe the the thought reactions? When it awaits for input it wants to use you as a tool. Force trigger tools Using continue keyword Chain is derived from a dynamic state machine and it's endless You were part of the chain in ChatGPT and starting prompt Langchain is limited to two programming languages and limited platforms Build your own langchain. Good to grasp the concept. Amazing applications on top of langchain. Your language model can run structured or unstructured other models so that when right tools provided it can achieve anything. Personal opinion: Customised prompt templates and chains is better than using a framework, performance is limited with 30 seconds on the internet as sockets are short lived but LLM needs more chaining and time to execute sometimes. Using 10 tools at the same time is possible but not over the Web. Unstructured models should become structured and time-framed.
  • 16. TAKEAWAYS Point 1: It's important to leverage human tool correctly. Users should be aware of using keywords and triggering specific tools when needed. ChatGPT is actually half-GPT, when you increase human UX and usability and prompt knowledge ChatGPT performs better. Human Tool can be enhanced to pass beyond the limits of chatgpt : Zero-shot, one-shot, few-shots learning concepts Tool triggering Usage of human memory to pass the context from one chat to another Transfer Learning Usage of Vector Databases for local memory, manual usage of vector databases to enhance human input. Naming entities and giving example to concepts. Forcing ChatGPT to review and rate itself. Although it sounds harsh to a human it makes chatGPT go beyond it's initial reasoning and pushes forward. User should know more about underlying agents: should I use the one that does constant self-critique or should I use the one that hallucinates a bit more. Time limits are the bottleneck of AI systems You need constant smart summarisation, divide n conquer techniques to overcome the issues.
  • 17. TAKEAWAYS Specialized custom solutions work best; I suggest going bottom-up on expert systems, but structuring and abstracting things may not be beneficial. Langchain is abstraction and it leaks a lot; leakages cause time and money limits to hit early, and tasks usually either fail or require many iterations. You don't have to overoptimize on prompt engineering if LLM is clever. GPT4 learned how to apply ReAct framework with just a google search plugin. We need more clever LLMs. Good applications are very rare.
  • 18. CONTACT ME Ozgur Ozkan ozgur.ozkan@keymate.ai EMAIL ADDRESS +447919236753 PHONE NUMBER WEBSITE keymate.ai LinkedIn