ADVANCED Python AI Agent Tutorial - Using RAG

125,882
0
Published 2024-02-14
In this video, I will be showing you how to create an artificial intelligence agent that will be able to use all of the tools that we provide it with. That's right, we will create and AI agent & give it various tools for it to use selectively based on the task at hand.

Note: This video refers to llamaindex version 0.9. On Feb 12th, 2024 llamaindex version 0.10 was released which is mostly the same but has some added functionality :)

🎞 Video Resources 🎞
Check out Llama Index: www.llamaindex.ai/

Llama Index Docs: docs.llamaindex.ai/en/stable/
Population Dataset: www.kaggle.com/datasets/joebeachcapital/world-popu…
Llama Hub: llamahub.ai/
Code in this video: github.com/techwithtim/PythonAgentAI/tree/main

⏳ Timestamps ⏳
00:00 | Overview
00:27 | Project Demos
03:54 | Understanding Agents & RAG
06:29 | Installation/Setup
09:00 | Data Sources
13:18 | Querying Pandas Data
19:17 | Building Agent Capabilities
29:18 | Querying Unstructured Data
39:38 | Next Steps

Hashtags
#PythonAI
#TechWithTim
#AICoding

All Comments (21)
  • @loggerboy9325
    Just a tip for whoever is following along.The code, from llama_index.query_engine needs to be llama_index.core.query_engine.
  • Guys! The llama-index package format has changed, try importing this way and it should work: from llama_index.core.query_engine import ... Like so everyone can see!
  • @sadiqkhawaja7019
    Detailed, no-nonense, topical. One of the best coding channels on youtube. Always looking forward to a new video.
  • @hypo30cal
    If you are running this blindly without using Tim's requirements file, please note that due to security `from llama_index.query_engine import PandasQueryEngine` is no longer the right import, try pip installing `llama-index-experimental` and then using the PandasQueryEngine class from `from llama_index.experimental.query_engine import PandasQueryEngine`. This is for py3.10. Finally, the PromptTemplate class is now at `from llama_index.core import PromptTemplate`. The documentation will really help though. Thanks Tim.
  • @josephabuo6027
    5 mins into the video and I am already excited about the future!
  • @ReDoG129
    This channel is a Godsend, which instilled the fundamentals of Python within me, which helped me to obtain a certification in robotics. You never cease to amaze me. 😊
  • @Al_Miqdad_
    thank you very much for your feedback ❤❤❤❤
  • @mushinart
    Amazing video ,tim ...i always wanted a fast an ld easy way to understand llamaindex...now I can build my own project fast ... Thanks a million brother
  • Excellent tutorial. Its clear enough to follow and implement. Keep up your good work.
  • @myanghua
    This is the gold standard for this kind of coding tutorials.💯 I hope more Youtubers would be like him. Please keep up the good work.
  • @myslates2854
    Tim you saved my day, you are awesome. I will write in details later how, but for now thanks for the brilliant working code
  • @ayanjawaid2251
    Tim we need more content like this or a course... and as always awesome work ❤
  • @suryapratap3622
    awesome great explanation i spended days to read the docs i know the efforts you in to generate this content, thanks