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

  Рет қаралды 17,556

Ryan & Matt Data Science

Ryan & Matt Data Science

Күн бұрын

Пікірлер
@RyanAndMattDataScience
@RyanAndMattDataScience 4 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
No problem I have another agent type video out next week with csvs
@RyanAndMattDataScience
@RyanAndMattDataScience 6 ай бұрын
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.
@ta_helado
@ta_helado 5 ай бұрын
how to solve the outputparsererror you got? im having the same
@devalmodi141
@devalmodi141 6 ай бұрын
How do I take the file name from the user prompt and then ask questions on it?
@Abdulrhman146.
@Abdulrhman146. 5 ай бұрын
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.
@FIRZAICHLASULAMALARIANSYAH
@FIRZAICHLASULAMALARIANSYAH 9 ай бұрын
Hello, i want to ask. It possible if result/output of the prompt outside the .csv?
@vispinet
@vispinet 8 ай бұрын
I have the same question. Also it would be nice to know how to handle exceptions
@usamasajid2600
@usamasajid2600 10 ай бұрын
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 10 ай бұрын
armchair comment, but I believe agents must have tools
@GamerGDS
@GamerGDS 7 ай бұрын
How is this different from a simple OpenAI Assistant that has file_search?
@tonygan1132
@tonygan1132 10 ай бұрын
Good tutorial, everything is clear, learned a lot, thx for the efforts.
@RyanAndMattDataScience
@RyanAndMattDataScience 10 ай бұрын
Thank you for checking it out
@stanTrX
@stanTrX 7 ай бұрын
What s the difference with directly parsing csv to llm vs using RAG? Per this example?
@rohansingh1057
@rohansingh1057 7 ай бұрын
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 7 ай бұрын
@@rohansingh1057 thanks a lot
@NileshKumar_NK
@NileshKumar_NK 7 ай бұрын
@@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 7 ай бұрын
@@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 7 ай бұрын
@@rohansingh1057 amazing explaination, thank you
@ranati2000
@ranati2000 7 ай бұрын
{'input': 'How many total FIPS are there?', 'output': 'Agent stopped due to iteration limit or time limit.'} Any Idea please let me know ?
@ihsanbp7786
@ihsanbp7786 10 ай бұрын
can you share the colab notebook?
@RyanAndMattDataScience
@RyanAndMattDataScience 10 ай бұрын
I need to upload all the vids into GitHub. I’m so far behind but n doing that
@akshatjain5586
@akshatjain5586 9 ай бұрын
is the openAi api key free to use ?
@RyanAndMattDataScience
@RyanAndMattDataScience 9 ай бұрын
They give you credit when you create an account
@akath22
@akath22 10 ай бұрын
Would be nice to get the code snippets :D Thanks for the tutorial
@RyanAndMattDataScience
@RyanAndMattDataScience 10 ай бұрын
I can get the Notebook in the description later today.
@akath22
@akath22 10 ай бұрын
Tried this and it has too many bugs unfortunately
@RyanAndMattDataScience
@RyanAndMattDataScience 10 ай бұрын
It worked for me? Maybe there is a typo in your code? Uploading the notebook later today
@FrozenValorantYT
@FrozenValorantYT 10 ай бұрын
Doesn’t work accurately for large dataset like 55K rows
@RyanAndMattDataScience
@RyanAndMattDataScience 10 ай бұрын
Haven’t tested it with a large dataset yet. Maybe another project down the line.
@nishadkhare7164
@nishadkhare7164 9 ай бұрын
chunk that dataset and test
@loveutube04
@loveutube04 5 ай бұрын
Bro looks like the younger version of seriel k!ller guy from No country for Old Men
Learn to Build Exciting LLM applications with Langchain and Streamlit
19:27
Ryan & Matt Data Science
Рет қаралды 4 М.
Chat with a CSV | LangChain Agents Tutorial (Beginners)
26:22
Alejandro AO - Software & Ai
Рет қаралды 70 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Chat with SQL and Tabular Databases using LLM Agents (DON'T USE RAG!)
58:54
Farzad Roozitalab (AI RoundTable)
Рет қаралды 82 М.
Chat with CSV files using LangChain Agent [GPT-4o]
24:12
Tony Kipkemboi
Рет қаралды 3,1 М.
Build a Python Web App to chat with your datasets using GenAI
4:23
Tech at Worldline
Рет қаралды 34 М.
LangChain Explained in 13 Minutes | QuickStart Tutorial for Beginners
12:44
LangChain Master Class For Beginners 2024 [+20 Examples, LangChain V0.2]
3:17:51
Talk to your CSV & Excel with LangChain
9:49
Sam Witteveen
Рет қаралды 94 М.
Chatbot with RAG, using LangChain, OpenAI, and Groq
20:14
Qdrant - Vector Database & Search Engine
Рет қаралды 25 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН