Samuel Chan
Samuel Chan
  • Видео 107
  • Просмотров 631 762
Build Chat AI apps w/ Streamlit + LangChain
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...
Просмотров: 18 907

Видео

You should use LangChain's Caching!
Просмотров 8 тыс.Год назад
LangChain provides a caching mechanism for LLMs (large language models). The benefits of caching in your LLM development are: 1. Save you money by reducing the number of API calls you make to the LLM provider (like OpenAI, Cohere etc), if you're often requesting the same completion multiple times 2. Speeds up your application by reducing the number of API calls you make to the LLM provider. We ...
A language for LLM prompt design | Guidance
Просмотров 10 тыс.Год назад
Guidance calls itself "a guidance language for controlling large language models", and is an open source project by Microsoft that "enables [prompt designers] to control modern language models more effectively and efficiently than traditional prompting or chaining". This is a tutorial on Guidance to see whether it delivers on that promise and how it fits into the LLM (large language models, lik...
GPT builds entire app from prompt (ft. SMOL Developer)
Просмотров 2,3 тыс.Год назад
We leverage on SMOL AI Developer, (~150 lines of mostly prompt engineering code) to build a party invitation web application for us using just plain text prompting, powered by GPT-3.5 / GPT-4. Smol calls itself a "Coherent Whole Program Synthesis aka your own personal junior developer" and we give this a spin to see if it lives up to its promise. Smol-ai Developer: github.com/smol-ai/developer ...
Making a Sci-Fi game w/ Cohere LLM + Stability.ai: Generative AI tutorial
Просмотров 1,5 тыс.Год назад
We use Cohere, a large language model with a free tier, along with Stability AI's text to image models to help us create a game world ("world building") unlike any others, except the 729 SciFi-themed civilization games out there. Great for diving into Cohere LLM and text-to-image models from Stability AI (makers of Stable Diffusion) - Watch PART 1 of the LangChain / LLM series: Build a GPT Q&A ...
Copilot Chat Demo | Copilot X: best AI pair programmer!
Просмотров 1,3 тыс.Год назад
A demonstration of GitHub Copilot Chat, one of the latest addition to Copilot X. What's already the best AI code assistant just got better. Powered by OpenAI's Codex model and directly integrates into Visual Studio and VS Code, this extension takes your coding productivity up a few notches. Repository for the code demonstration: github.com/onlyphantom/llm-python
Building a queryable journal 💬 w/ OpenAI, markdown & LlamaIndex 🦙
Просмотров 2,6 тыс.Год назад
We incorporate OpenAI and LlamaIndex into a markdown-based notetaking system (like Obsidian) to build a daily journal system that is remarkably query-able and very very cheap (using local storage for our vectors). I use it daily, but I never got around to explaining the build process. Here it is now! This tutorial features GPT-3, LlamaIndex, OpenAI, argparse to turn it into a command line inter...
Building an AI language tutor: Pinecone + LlamaIndex + GPT-3 + BeautifulSoup
Просмотров 5 тыс.Год назад
We train GPT-3.5 on Nietzsche's writing to build the world's best GPT-based language translation and AI language tutor. Features Pinecone, LlamaIndex, GPT3, and BeautifulSoup for web scrapping. - Watch PART 1 of the LangChain / LLM series: Build a GPT Q&A on your own data ruclips.net/video/DYOU_Z0hAwo/видео.html - Watch PART 2 of the LangChain / LLM series: LangChain OpenAI to chat w/ (query) o...
OpenAI's python QuickStart (tutorial/first look)
Просмотров 3,6 тыс.Год назад
Taking a short detour to have a closer look at OpenAI's official python library, including GPT-3 for text completion and natural language Q&A , Dall-E 2 for generative art (AI image generation), and OpenAI's Whisper for speech to text and human level transcription. In the next video, we'll continue building on LangChain, LlamaIndex other amazing LLM libraries! - Watch PART 1 of the LangChain / ...
Locally-hosted, offline LLM w/LlamaIndex + OPT (open source, instruction-tuning LLM)
Просмотров 31 тыс.Год назад
Implementing an open source LLM that runs on your machine, that you can even access in offline mode! This uses Meta's OPT model, a 175-billion-parameter that rivals GPT-3 in performance. Also interestingly, we'll use the instruction-tuned version of it, known as the OPT-IML. Mentioned in the video: - OPT (Open Pre-trained Transformers): huggingface.co/docs/transformers/model_doc/opt - OPT Paper...
GPT scrapes + answers from any sites (ft. Chromadb, Trafilatura)
Просмотров 7 тыс.Год назад
Implementing a GPT-3-powered Natural language Question Answering bot for ANY websites, featuring LlamaIndex, Trafilatura and ChromaDB. You can pass in a list of websites, then directly ask questions on it, and GPT will build the index required to help retrieve and generate answers to your questions. LlamaIndex (GPT Index) is a project that provides a central interface to connect your LLM’s with...
Understanding Embeddings in LLMs (ft LlamaIndex + Chroma db)
Просмотров 38 тыс.Год назад
We do a deep dive into one of the most important pieces of LLMs (large language models, like GPT-4, Alpaca, Llama etc): EMBEDDINGS! :) In every langchain or llamaindex tutorial you'll come across this idea, but they can feel quite "rushed" or opaque, so this video presents a deeper look into what embeddings really are, and the role it plays in a world dominated by large language models like GPT...
LangChain + HuggingFace's Inference API (no OpenAI credits required!)
Просмотров 52 тыс.Год назад
We combine LangChain with GPT-2 and HuggingFace, a platform hosting cutting-edge LLM and other deep learning AI models. This has the added benefit of not incurring any charges since we're not using OpenAI (might as well, seeing we're in a recession right about now) but instead using the GPT-2 model hosted on HuggingFace.. LangChain is a fantastic tool for developers looking to build AI systems ...
LangChain + OpenAI to chat w/ (query) own Database / CSV!
Просмотров 42 тыс.Год назад
In part 2 of this series we use natural language (english) to query our database and CSV. LangChain integrates with GPT to convert natural language to the corresponding SQL statements, or pandas command, which is then executed to return a natural language response. LangChain is a fantastic tool for developers looking to build AI systems using the variety of LLMs (large language models, like GPT...
LangChain + OpenAI tutorial: Building a Q&A system w/ own text data
Просмотров 30 тыс.Год назад
LangChain is a fantastic tool for developers looking to build AI systems using the variety of LLMs (large language models, like GPT-4, Alpaca, Llama etc), as it helps unify and standardize the developer experience in text embeddings, vector stores / databases (like Chroma), and chaining it for downstream applications through agents. In this tutorial we're using our own custom text / data and tr...
TorchVision Quick Start: Image classifier in 10 mins
Просмотров 2,3 тыс.Год назад
TorchVision Quick Start: Image classifier in 10 mins
Python's 3.9 "@cache" (and lru_cache) is amazing!
Просмотров 775Год назад
Python's 3.9 "@cache" (and lru_cache) is amazing!
Train a PyTorch neural network step-by-step | PyTorch deep learning (Feb 2023)
Просмотров 783Год назад
Train a PyTorch neural network step-by-step | PyTorch deep learning (Feb 2023)
Use less for-loops, use more vectorization
Просмотров 4,9 тыс.Год назад
Use less for-loops, use more vectorization
Backpropagation algorithm & gradient descent, but explain it like I'm 5
Просмотров 938Год назад
Backpropagation algorithm & gradient descent, but explain it like I'm 5
Use set intersections, not for loops!
Просмотров 250Год назад
Use set intersections, not for loops!
PyTorch's Computational Graph + Torchviz | PyTorch (2023)
Просмотров 3 тыс.Год назад
PyTorch's Computational Graph Torchviz | PyTorch (2023)
Taskwarrior is THE task management system you need
Просмотров 10 тыс.Год назад
Taskwarrior is THE task management system you need
Building neural networks with PyTorch (PyTorch w/ GPU tutorial, part 4)
Просмотров 404Год назад
Building neural networks with PyTorch (PyTorch w/ GPU tutorial, part 4)
PyTorch Datasets, DataLoaders and Transforms (PyTorch w/ GPU series, part 3)
Просмотров 871Год назад
PyTorch Datasets, DataLoaders and Transforms (PyTorch w/ GPU series, part 3)
Introduction to Tensors (PyTorch with GPU series, part 2)
Просмотров 982Год назад
Introduction to Tensors (PyTorch with GPU series, part 2)
GPU-based deep learning (2023) series 1: PyTorch & CUDA installation guide
Просмотров 4,7 тыс.2 года назад
GPU-based deep learning (2023) series 1: PyTorch & CUDA installation guide
Hands on introduction to Docker Compose V2 (tutorial ft. wordpress, mysql, phpmyadmin)
Просмотров 9912 года назад
Hands on introduction to Docker Compose V2 (tutorial ft. wordpress, mysql, phpmyadmin)
Hands on Introduction to Docker & Data Persistence w/ Docker Volumes
Просмотров 6482 года назад
Hands on Introduction to Docker & Data Persistence w/ Docker Volumes
DuckDB: Hi-performance SQL queries on pandas dataframe (Python)
Просмотров 13 тыс.2 года назад
DuckDB: Hi-performance SQL queries on pandas dataframe (Python)

Комментарии

  • @dank_shiv
    @dank_shiv 5 дней назад

    Here just for an easy example I understood the process myself allready

  • @arthurrcarv
    @arthurrcarv 11 дней назад

    How do I do it if the kernel is a 2x3 matrix?

  • @Quick-d6n
    @Quick-d6n 26 дней назад

    that is absolutely fascinating

  • @lancemarchetti8673
    @lancemarchetti8673 Месяц назад

    Nice!

  • @jayhanjaelee
    @jayhanjaelee Месяц назад

    Cool. 👍

  • @oussamaessadaoui
    @oussamaessadaoui Месяц назад

    Hey , nice video .. i have a different question .. what's your keyboard ? it sounds amazing :)

  • @Tele-Quebec
    @Tele-Quebec Месяц назад

    Hi Is there a way to get views by many dimensions like (day, adType, video, channel, ageGroup, gender, country, province, city and so on)

  • @TechnicalRahul-ju1jn
    @TechnicalRahul-ju1jn Месяц назад

    fake i tried this all

  • @fickdmbesonderstrasenjunge
    @fickdmbesonderstrasenjunge Месяц назад

    Way the craziest intellectuo i ever met #nlp #multitasking

  • @CodingforMachine
    @CodingforMachine Месяц назад

    leetcode clone using django, python subprosser and docker

  • @SivaKumar-of7mu
    @SivaKumar-of7mu Месяц назад

    I also cant find repo on your git

  • @GroxMirk
    @GroxMirk Месяц назад

    You can find code from the video in commit b4e1df2ed84c87fdc65e18c2fd46b98a25ac94d1 in master on Jan 28, 2020 In latest commit to this date file digit_01.py missing setup of FONT, CYAN and canvas variables

  • @GroxMirk
    @GroxMirk Месяц назад

    Big thank you. Greatly implemented course.

  • @BalajiM-n4n
    @BalajiM-n4n 2 месяца назад

    Good thanks useful content

  • @TheShreyas10
    @TheShreyas10 2 месяца назад

    Hey can you please share the repo, I cant find it on your git

  • @pradip_patil292
    @pradip_patil292 2 месяца назад

    IS this open key free ?

  • @mdaffailhami
    @mdaffailhami 2 месяца назад

    Pendapatnya bang soal Polars vs Pandas?

  • @CanDoSo_org
    @CanDoSo_org 2 месяца назад

    Thanks. But the page margin is too narrow. How to increase the page margin?

  • @PlayingArc
    @PlayingArc 3 месяца назад

    What keyboard is that it sounds incredible

  • @minimin-wj8vp
    @minimin-wj8vp 3 месяца назад

    thanks 🌹

  • @jeanrewss
    @jeanrewss 3 месяца назад

    comp sci sigh

  • @oludelehalleluyah6723
    @oludelehalleluyah6723 4 месяца назад

    Please what VS Code theme are you using?

  • @money_wins_controls
    @money_wins_controls 4 месяца назад

    u explained gradeint descent as back propagation. but theres a diffence i m trying to figure out why need back propagation when gradient descent does the job - finind the minima. the most appropriate parameters w.r.t to cost function. what role does backprogation play in adjusting the paramters. whats the intuition

  • @ardgbani
    @ardgbani 4 месяца назад

    😅 the pens

  • @hardtosay123
    @hardtosay123 5 месяцев назад

    thank you man

  • @ben001hi
    @ben001hi 5 месяцев назад

    clean explanation. thx

  • @BBLulli
    @BBLulli 5 месяцев назад

    Thanks bro

  • @PujaKumari-ku6dg
    @PujaKumari-ku6dg 5 месяцев назад

    How can i get the code of this video

  • @hello-lb3vf
    @hello-lb3vf 5 месяцев назад

    I've been searching how to do this... I couldn't find a solution until I stumbled across this video. Thank you :)

  • @paulushimawan5196
    @paulushimawan5196 5 месяцев назад

    Hi, somehow after I'm applying the yearslider, the legend on the bottom (pop) can't fit the screen anymore at 1,200,000,000 (year 1995+). Is there something I can do about that? I have tried to change the font size (labelFontSize) but it's not working.

  • @SudhakarVyas
    @SudhakarVyas 5 месяцев назад

    Thanks for this video! Quick question, Is there any risk of PII leakage in this implementation ? Asking this because we cannot see the model getting downloaded locally.

  • @TJ-hs1qm
    @TJ-hs1qm 6 месяцев назад

    to turn off security for local dev xpack.security.enabled=false xpack.security.enrollment.enabled=false

  • @Shifasiddiqui-ur1cm
    @Shifasiddiqui-ur1cm 6 месяцев назад

    i did the exact same thing but "workon web3" command didnt work in my vs and also it created block0 only with the contract address etc no block 1

  • @johnini
    @johnini 6 месяцев назад

    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!

  • @rameshh3821
    @rameshh3821 6 месяцев назад

    Is it possible to plot charts on top of sql data ?

  • @cheybrown2076
    @cheybrown2076 6 месяцев назад

    One question though… the “project_dir” variable - how did you add the forward slash and projectname variable without putting in quotes. Was expecting it to throw and error cause it’s like you’re dividing the path by projectname

  • @cheybrown2076
    @cheybrown2076 6 месяцев назад

    Brilliant vid!

  • @RoiDeMai
    @RoiDeMai 7 месяцев назад

    Samuel, thank you for the hint with threshold filter. When applied, it is much easier for OCR to see the digits with such font.

  • @pranavsharma8717
    @pranavsharma8717 7 месяцев назад

    Hey how can we get tpoken usage with streaming = true

  • @mihaelacostea5783
    @mihaelacostea5783 7 месяцев назад

    Hi, could this type of chatbot be integrated with Messenger and own website for customer support like interactions, based on own Q&A files and text?

  • @RaushanKumar-ut2ke
    @RaushanKumar-ut2ke 7 месяцев назад

    Because SQLDatabase from langchain support only one schema.

  • @RaushanKumar-ut2ke
    @RaushanKumar-ut2ke 7 месяцев назад

    Hi Samuel, do we have any method to connect multiple schema for database chatting?

  • @MageDigest-c1z
    @MageDigest-c1z 7 месяцев назад

    very good video for starters 🙂

  • @KrishPatel-cu6dg
    @KrishPatel-cu6dg 7 месяцев назад

    Thank You Sir

  • @BassamAdel-wg3gr
    @BassamAdel-wg3gr 7 месяцев назад

    How to return SQLQuery just wanna get that :(( any idea ?

  • @miltondiaz2531
    @miltondiaz2531 7 месяцев назад

    Excelente. A+1. Se puede conectar un base de datos de Foxpro + DuckDB con python

  • @AnthonyNehme-po3qk
    @AnthonyNehme-po3qk 7 месяцев назад

    Why didnt u flip the kernel? Isnt it correlation? Even tho here its symmetric but students may misunderstand

  • @c0mpuipf
    @c0mpuipf 8 месяцев назад

    crazy how none of these are relevant anymore; i get all sorts of errors after installing llama_index (newest version as of today) - i see many deprecations - PromptHelper and others; but this has been a nice lesson though, i'm subscribed now

  • @tk-og4yk
    @tk-og4yk 8 месяцев назад

    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?

  • @utk1000
    @utk1000 8 месяцев назад

    ImportError: cannot import name 'HuggingFace_Hub' from 'langchain' . how tf does it not exist anymore?

    • @KrishiCH-k9b
      @KrishiCH-k9b 5 месяцев назад

      i think you should try "from langchain_community" instead?