Build Chat AI apps w/ Streamlit + LangChain

preview_player
Показать описание
Langchain's Agent is the powerhouse to LLM (large language models), as it "delegates" to specialized tools ("experts") like calculator, web browser, translators etc among a wide suite of tools, determining at each step the best specialized tool, or combination of tools, to use. All powered by #langchain tools and action agents.

Action agents: at each timestep, decide on the next action using the outputs of all previous actions

Plan-and-execute agents: decide on the full sequence of actions up front, then execute them all without updating the plan

We combine this with Streamlit, a python based web app framework popular among machine learning engineers to build an AI web application powered by langchain and feels interactive and blazing fast⚡!

Read about LangChain Agents:

Read about Streamlit:

MRKL paper:

- Watch PART 1 of the LangChain / LLM series:
Build a GPT Q&A on your own data

- Watch PART 2 of the LangChain / LLM series:
LangChain + OpenAI to chat w/ (query) own Database / CSV!

- Watch PART 3 of the LangChain / LLM series
LangChain + HuggingFace's Inference API (no OpenAI credits required!)

- Watch PART 4 of the LangChain / LLM series
Understanding Embeddings in LLMs (ft LlamadIndex + Chroma db)

- Watch PART 5 of the LangChain / LLM series
Query any website with GPT3 and LlamaIndex

- Watch PART 6 of the LangChain / LLM series
Locally-hosted, offline LLM w/LlamaIndex + OPT (open source, instruction-tuning LLM)

- Watch PART 7 of the LangChain / LLM series
Building an AI language tutor: Pinecone + LlamaIndex + GPT-3 + BeautifulSoup

- Watch PART 8 of the LangChain / LLM series
Building a queryable journal 💬 w/ OpenAI, markdown & LlamaIndex 🦙

- Watch PART 9 of the LLM series

- Watch PART 10 of the LLM series
GPT builds entire app from prompt (ft. SMOL Developer)

- Watch Part 11 (Prompt Engineering / Prompt Design)
A language for LLM Prompt Design: Guidance

- Watch Part 12: LangChain Caching

All the code for the LLM (large language models) series featuring GPT-3, ChatGPT, LangChain, LlamaIndex and more are on my github repository so go and ⭐ star or 🍴 fork it. Happy Coding!
Рекомендации по теме
Комментарии
Автор

I don't know how you do it but man you create a lot of content. Thank you very much.

kenchang
Автор

Your LangChain series is incredible. I've learned so much, to reiterate many others here. Hope to see more in the future! Thanks!

Georgeisbusting
Автор

Good video. I feel that the best way to learn about the whole "Langchain ecosystem" is to start with Flowise and then to eventually moved back into Langchain for more bespoke projects.

irotom
Автор

Great content, really like this format. Lots of specific information presented very quickly.

AlistairWalsh
Автор

Thank you so much for this informative video on building Chat AI apps with Streamlit and LangChain! Your content is incredibly helpful and well-presented. I've learned a lot and appreciate the effort you put into creating this. Keep up the great work! 👍

phil.d
Автор

Hey Sam,
your series has helped me immensely. I am trying to build on the work here and add some sort of cacheing so I can continue to ask questions. Any tips you can offer to do this?

tk-ogyk
Автор

thank you for this content! i am looking forward to watching more of your videos!

Christopher_Tron
Автор

Would you share the code of the last version of the streamlit app with more tools that you showcase on the video? the one on github seems to be the simple one. Thanks! was a great series!

johnini
Автор

That's actually exactly what I am building right now for my personal assistant. I realized that a plain vector search wasn't accurate enough, so do I small llm call first to get the domain which I need to query, and skip unrelated domains.

jaba
Автор

Would you make a video about building embeddings & LLM without relying on APIs, just our data, please.

shrmpy
Автор

Please what VS Code theme are you using?

oludelehalleluyah
Автор

@samuelChan super great videos (big thankyou, super helpful)

Streamlit Question
(In the second part of the video, you mention console log verity briefly)

Does this mean are you able to output the console log into streamlit call back handler?
Use case: Trying to show all details in ui including full outputs of console log in each of agents step in streamlit. (Hence trying to clarify how) so can re-use.

AI-LLM
Автор

Great tutorial, thank you.
Question : Can we set multiple tools for an Agent, if yes, how can the Agent chose the right tool to use ?

noualiibrahimyassine
Автор

We can implement these tools for our conversational bots? Bots we can have conversations with with simulated memory and can call functions also.

TheSacredGrove
Автор

Thank you for this content. It's helping me a lot to build a chat bot with a knowledge base in my company. Can you provide the streamlit demo code from the final of the video in you repo? I checked and just saw the simpler streamlit demo.

LeoneParise
Автор

Great Content :), I'm trying to implement CSV agent in Streamlit, but It's not able to render the plots interactively in streamlit layout instead they r opening in other tab, any suggestions, or workarounds on using CSV agent inside streamlit

mspraja
Автор

Its possible to combinate the pdf file with this one?

gabrielmartinphilot
Автор

Greate 🎉. Is is possible to donthe same for local LLM model rather than OpenAI model?

al-nashmiali
Автор

Hi thank you. I tried the simple code and seens no matter the question it always use the agent instead to chat. Simple question gets an error. I was wondering use an agent only when it is need. Is that correct?

arthurperini
Автор

Another great vid🙌🏼 I’m getting a type error ddgs object does not support the context manager protocol🤔my code is exact and all install and imports done, any ideas?

Mysterious_-lp