No video

Chat with a CSV - LangChain CSV Agents Tutorial For Beginners (OpenAI API)

  Рет қаралды 12,881

Ryan & Matt Data Science

Ryan & Matt Data Science

Күн бұрын

In this Langchain video, we take a look at how you can use CSV agents and the OpenAI API to talk directly to a CSV file. While still a bit buggy, this is a pretty cool feature to implement in a test tool. It's a great way to get your feet wet with python automations and ai.
Interested in discussing a Data or AI project? Feel free to reach out via email or simply complete the contact form on my website.
Article with Code: ryannolandata....
📧 Email: ryannolandata@gmail.com
🌐 Website & Blog: ryannolandata....
🍿 WATCH NEXT
OpenAI/Langchain Playlist: • How to Build Your Firs...
Zero, One, and Few Shot Prompts: • Zero, One, and Few Sho...
GPT 4 Vision for Beginners: • GPT 4 Vision (PYTHON) ...
Build Your First AI LLM: • How to Build Your Firs...
MY OTHER SOCIALS:
👨‍💻 LinkedIn: / ryan-p-nolan
🐦 Twitter: / ryannolan_
⚙️ GitHub: github.com/Rya...
🖥️ Discord: / discord
📚 *Data and AI Courses: datacamp.pxf.i...
📚 *Practice SQL & Python Interview Questions: stratascratch....
WHO AM I?
As a full-time data analyst/scientist at a fintech company specializing in combating fraud within underwriting and risk, I've transitioned from my background in Electrical Engineering to pursue my true passion: data. In this dynamic field, I've discovered a profound interest in leveraging data analytics to address complex challenges in the financial sector.
This KZfaq channel serves as both a platform for sharing knowledge and a personal journey of continuous learning. With a commitment to growth, I aim to expand my skill set by publishing 2 to 3 new videos each week, delving into various aspects of data analytics/science and Artificial Intelligence. Join me on this exciting journey as we explore the endless possibilities of data together.
*This is an affiliate program. I may receive a small portion of the final sale at no extra cost to you.

Пікірлер: 36
@RyanAndMattDataScience
@RyanAndMattDataScience 21 күн бұрын
Hey guys I hope you enjoyed the video! If you did please subscribe to the channel! Join our Data Science Discord Here: discord.com/invite/F7dxbvHUhg If you want to watch a full course on Langchain check out Datacamp: datacamp.pxf.io/XYD7Qg Want to solve Python data interview questions: stratascratch.com/?via=ryan I'm also open to freelance data projects. Hit me up at ryannolandata@gmail.com *Both Datacamp and Stratascratch are affiliate links.
@evanklingle8842
@evanklingle8842 6 ай бұрын
Ryan- This is awesome! I’ve been looking for tutorials to get into LangChain. It’s been super intimidating, but you broke it down into simple steps. Thank you!
@RyanAndMattDataScience
@RyanAndMattDataScience 6 ай бұрын
No problem I have another agent type video out next week with csvs
@Abdulrhman146.
@Abdulrhman146. Ай бұрын
Thanks a lot Ryan, that was a great tutorial. do you know how can i add memory to the agent? i want it to remember all interactions with user.
@tonygan1132
@tonygan1132 6 ай бұрын
Good tutorial, everything is clear, learned a lot, thx for the efforts.
@RyanAndMattDataScience
@RyanAndMattDataScience 6 ай бұрын
Thank you for checking it out
@RyanAndMattDataScience
@RyanAndMattDataScience 2 ай бұрын
Looking for the code? I just uploaded an article based on this video: ryannolandata.com/chat-with-a-csv-using-langchain/ Also, I'm taking on Data and AI projects. Have something for me to work on? Fill out the contact form on my site or email me.
@user-go7rd4cx1g
@user-go7rd4cx1g 5 ай бұрын
Hello, i want to ask. It possible if result/output of the prompt outside the .csv?
@vispinet
@vispinet 4 ай бұрын
I have the same question. Also it would be nice to know how to handle exceptions
@usamasajid2600
@usamasajid2600 6 ай бұрын
Ryan I follow your tutorail install all libraries but having a problem in creating csv agent when i run this command agent = create_csv_agent(ChatOpenAI(temperature=0), "/content/drive/MyDrive/data.csv", verbose=True) It gives me this error below ValueError: Prompt missing required variables: {'tool_names', 'tools'} I am an absolute beginner and can't able to fix this error please help.... Please Reply
@mikedowns1842
@mikedowns1842 6 ай бұрын
armchair comment, but I believe agents must have tools
@ta_helado
@ta_helado Ай бұрын
how to solve the outputparsererror you got? im having the same
@devalmodi141
@devalmodi141 2 ай бұрын
How do I take the file name from the user prompt and then ask questions on it?
@GamerGDS
@GamerGDS 3 ай бұрын
How is this different from a simple OpenAI Assistant that has file_search?
@ranati2000
@ranati2000 3 ай бұрын
{'input': 'How many total FIPS are there?', 'output': 'Agent stopped due to iteration limit or time limit.'} Any Idea please let me know ?
@akath22
@akath22 6 ай бұрын
Would be nice to get the code snippets :D Thanks for the tutorial
@RyanAndMattDataScience
@RyanAndMattDataScience 6 ай бұрын
I can get the Notebook in the description later today.
@stanTrX
@stanTrX 3 ай бұрын
What s the difference with directly parsing csv to llm vs using RAG? Per this example?
@rohansingh1057
@rohansingh1057 3 ай бұрын
RAG just gives you the context you require to answer the question. While nice for paragraph style text. It is awful for CSV or tabular data. Simple operations like summing up the table will be quite confusing for the LLM. Also it's nearly impossible to use it with large tables (or even the one shown here). Assume you have 100K rows, and you ask for the mean of a column. Pretty simple, but would break RAG. Here, langchain is using a technique known as "chain of thought" where it has a problem and it tries to solve it using "tools". These tools are defined as prompts and in this case these tools are Pandas functions and the LLM output is then run as Pandas code over the actual CSV. So essentially when Ryan asked the total wins, the LLM did not do any calculations. It simply deduced the csv['W'].sum() should give the correct answer and that generated code was executed by the CSV. Also in RAG, there is only 1 API call (generally speaking in most basic RAG implementations), while in Chain of Thought agents, there can be several API calls to the LLM.
@stanTrX
@stanTrX 3 ай бұрын
@@rohansingh1057 thanks a lot
@NileshKumar_NK
@NileshKumar_NK 3 ай бұрын
@@rohansingh1057 bro I am facing the same problem, not able to get simple answers from a csv file, like avg, sum etc. How can I do it. I am a beginner in this. Can u guide me a lil.
@rohansingh1057
@rohansingh1057 3 ай бұрын
@@NileshKumar_NK Follow the video as it is. It is the best there is. Alternatively you can use OpenAI assistants API which allows you to upload a few files and get answers but I think that will be pricing for GPT-4 which is very expensive.
@sherifalaa5
@sherifalaa5 2 ай бұрын
@@rohansingh1057 amazing explaination, thank you
@akshatjain5586
@akshatjain5586 5 ай бұрын
is the openAi api key free to use ?
@RyanAndMattDataScience
@RyanAndMattDataScience 5 ай бұрын
They give you credit when you create an account
@FrozenValorantYT
@FrozenValorantYT 6 ай бұрын
Doesn’t work accurately for large dataset like 55K rows
@RyanAndMattDataScience
@RyanAndMattDataScience 5 ай бұрын
Haven’t tested it with a large dataset yet. Maybe another project down the line.
@nishadkhare7164
@nishadkhare7164 5 ай бұрын
chunk that dataset and test
@loveutube04
@loveutube04 27 күн бұрын
Bro looks like the younger version of seriel k!ller guy from No country for Old Men
@akath22
@akath22 6 ай бұрын
Tried this and it has too many bugs unfortunately
@RyanAndMattDataScience
@RyanAndMattDataScience 6 ай бұрын
It worked for me? Maybe there is a typo in your code? Uploading the notebook later today
@ihsanbp7786
@ihsanbp7786 6 ай бұрын
can you share the colab notebook?
@RyanAndMattDataScience
@RyanAndMattDataScience 6 ай бұрын
I need to upload all the vids into GitHub. I’m so far behind but n doing that
Learn to Build Exciting LLM applications with Langchain and Streamlit
19:27
Ryan & Matt Data Science
Рет қаралды 3,4 М.
LangChain Explained in 13 Minutes | QuickStart Tutorial for Beginners
12:44
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 86 МЛН
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 4,1 МЛН
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 9 МЛН
Chat with a CSV | LangChain Agents Tutorial (Beginners)
26:22
Alejandro AO - Software & Ai
Рет қаралды 64 М.
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Рет қаралды 451 М.
How to build chat with your data using Pinecone, LangChain and OpenAI
15:05
Chat with MySQL Database with Python | LangChain Tutorial
37:11
Alejandro AO - Software & Ai
Рет қаралды 44 М.
I Analyzed My Finance With Local LLMs
17:51
Thu Vu data analytics
Рет қаралды 469 М.
Chat with SQL and Tabular Databases using LLM Agents (DON'T USE RAG!)
58:54
Langchain Agents [2024 UPDATE]  - Beginner Friendly
20:48
Ryan & Matt Data Science
Рет қаралды 11 М.