Python AI Agent Tutorial - Build a Coding Assistant w/ RAG & LangChain

23,622
0
Published 2024-05-29
In this video, I'll be showing you how to build your own custom AI agent within Python using Retrieval Augmented Generation (RAG) and LangChain. Even if you're an intermediate Python user, this tutorial will be easy to follow as I demonstrate how to query information and then make an AI agent that acts as a coding or Github assistant in less than an hour.

If you want to land a developer job check out my program with CourseCareers: techwithtim.net/dev

🎞 Video Resources 🎞
Sign up for Astra vector database today. Use your business email address and get from $1000- $3000 in free credits and consulting with your subscription. www.datastax.com/lp/astra-registration?utm_medium=…

OpenAI API Key: platform.openai.com/api-keys
Finished Code: github.com/techwithtim/GitHub-AI-Assitant-Agent
GitHub URL: github.com/techwithtim/Flask-Web-App-Tutorial/issu…

⏳ Timestamps ⏳
00:00 | Overview
00:32 | Demo
03:04 | Installation/Setup
06:13 | API Keys/Tokens
08:37 | Astra DB Database Setup
11:50 | OpenAI API Key
12:52 | Fetching GitHub Issues
22:43 | Connecting to a Vector Store Database (RAG)
29:15 | Adding Documents to The Vector Store
36:25 | Writing the Agent
43:06 | Creating a Note Tool
45:41 | Running The Agent

Hashtags
#techwithtim #pythonai #langchain #github #codingtutorial

All Comments (21)
  • @mredmister3014
    Yes!!! You listened to your audience request for this use case. Keep doing this with own private data with structured and unstructured data. Like I’m wondering if I can write summary totals in the agent on the transactions for the day type of thing or look for a specific value on a given date in my chat agent.
  • @heco17
    Hey tim, i really liked your series about rust, could you continue the series doing some rest API tutorial?
  • Another great video tutorial. I think we can improve the tutorials my adding streamlit integration so that the tutorials end up creating a web app
  • @mikeulator
    Just finished your tutorial from April 28 on building a local ai agent and it was great! The one thing I was looking for in it, and was hoping might be in this one, is using a local vector store database and not having to use a cloud solution. In the previous tutorial you had to parse and vectorize the file every time, which is not efficient. Would love to see a local solution from you. Thank you for posting these.
  • @adisaksukul8088
    Hi Tim, thanks for another great video. I have a question: what will be the benefit of coding with LangChain over no-code tools like Langflow?
  • @gurudaki
    Superb content as always. Do you believe Yim theta AI future is associated with AI Agents?
  • Thanks Tim. Sorry if I sound pedantic. agent object already tools. agent is passed to AgentExecutor alongside tools as second kwarg which the agent already contains. Is this how the AgentExecutor API is designed? :)
  • @BobsNumber4
    Are we able to use any public GitHub repo for issues? Or does I need to be our own?
  • @rajapinja9297
    What is the python version should I use, since I'm trying to run this it on python 3.11.1 , getting langchain_astradb, and create_tool_calling_agent not able to find those 2 modules spent couple of hours trying to resolve but no luck so far, and appreciate your response
  • @sreechandra9738
    Hello , I have little knowledge about API's , and Im an intermediate python programmer. No idea about langchain, databases etc. Can i follow along with the video.
  • @extras4510
    Small question, I don’t have any previous experience with langchain but I think I am an intermediate python programmer like you said in the video will that be enough for following along with the video
  • @mintz347
    Can you do more django web development with python?
  • @haraGADygyl
    Does anyone get this error: raise APIRequestError(raw_response, payload=json_data) astrapy.core.api.APIRequestError: {"errors":[{"message":"No \"createCollection\" command found as \"GeneralCommand\"","errorCode":"NO_COMMAND_MATCHED"}]}
  • Thanks for this wonderful video Tim. I am a Data Scientist working from India with 12+ years of exp. and would like to shift to Dubai. Is it ok to get a job search visa and then search jobs from there. Please share ur thoughts and experience
  • @rajapinja9297
    Not sure, getting this error not able to resolve , module not found error for langchain_astradb, though I have installed that package
  • @Al_Miqdad_
    hey tim how are you today? please help me I'm trying to run telegram bot and a apschedluer script, does anyone knows how to run both of them in one script