Gemini Pro + LangChain - Chains, Mini RAG, PAL + Multimodal

  Рет қаралды 22,971

Sam Witteveen

Sam Witteveen

Күн бұрын

Gemini Pro is out and you can use it with LangChain
Colab: drp.li/Keymg
Blog Post: ai.google.dev/
My Links:
Twitter - / sam_witteveen
Linkedin - / samwitteveen
Github:
github.com/sam... (updated)
github.com/sam...

Пікірлер: 49
@breakitdown4346
@breakitdown4346 9 ай бұрын
Hi Sam! I just wanted to say I've been watching your videos for over a year now, and they are always so informative! You really take your time explaining every step and make the learning material very easy to digest no matter what the experience level is. Thank you for all your hard work. Keep it up!
@samwitteveenai
@samwitteveenai 9 ай бұрын
Thanks for the kind words. Glad the videos are helpful.
@Slimshady68356
@Slimshady68356 8 ай бұрын
​@@samwitteveenaiyeah man, you r doing gret for the community
@314_anizbinnowshad5
@314_anizbinnowshad5 8 ай бұрын
Thank you Sam, Really been searching to integrate langchain and Gemini
@tanveerbashir8393
@tanveerbashir8393 9 ай бұрын
Thank you, Sam !!! Really it's very informative video. Keep doing this great work.
@broofya3805
@broofya3805 8 ай бұрын
Good job, Sam! Always worth it
@mrchongnoi
@mrchongnoi 8 ай бұрын
Great video as usual. Really enjoyed it.
@AIdevel
@AIdevel 7 ай бұрын
Hi how to restrict the model answers in RAG apps only to the knowledge base and reply with sorry if the answer is not available effectively the retrieval returns empty list and then model start to acts as ChatGPT to generate from its parametric knowledge
@ShlomiSchwartz
@ShlomiSchwartz 8 ай бұрын
Thanks again, for another great tutorial :)
@jesusleguiza77
@jesusleguiza77 5 ай бұрын
Hi Sam, there is some way for use function calling too? Regards
@furbasherpa2598
@furbasherpa2598 8 ай бұрын
Hello Sam, where you have given the vectorstore with text data, what to do if I have an excel sheet data that I would like the gemini pro to retrieve
@advaithr1984
@advaithr1984 9 ай бұрын
Hey Sam, I haven't tested out Gemini pro as of now and am planning to do in near future. But as compared to GPT 4 or any Palm based models what significant improvement can you notice while playing around with Gemini in terms of RAG or any NLP based program?
@generic-youtube-user
@generic-youtube-user 8 ай бұрын
hello Sam. Thanks fo this! Just wanted to ask do you have any general overview for performance of GPT-4 against Gemini's competitor model for purely text generation tasks? Actually GPT-4 is very slow for generating text but it is smart enough formany applications. Its latency causes me to have second thoughts using it.
@Dovgonosyk
@Dovgonosyk 5 ай бұрын
Thank you for the video, really informative! What would you recommend if I need a custom llm working with a set of documents(pdf, csv, etc)? Looks like a task for a langchain+gemini+cloudstore, but still can’t figure out the best way of doing it…
@innocentanyaele5986
@innocentanyaele5986 8 ай бұрын
When i run the chain.invoke({"question": "what is gemini?"}) in the "More Complicated Chain - Mini RAG" section, I get the error f"Message of '{message.type}' type not supported by Gemini." AttributeError: 'tuple' object has no attribute 'type'
@youshouldknowme2773
@youshouldknowme2773 8 ай бұрын
i've met the same error. Have you solved yet?
@samwitteveenai
@samwitteveenai 8 ай бұрын
let me look into it. I know they have done some updates since I shot the video. Gemini also sometimes gets weird errors very occasionally when it thinks something is NSFW.
@innocentanyaele5986
@innocentanyaele5986 8 ай бұрын
Alright, thank you @@samwitteveenai
@innocentanyaele5986
@innocentanyaele5986 8 ай бұрын
@@youshouldknowme2773 sadly, no
@samwitteveenai
@samwitteveenai 8 ай бұрын
@@innocentanyaele5986 what error are you seeing? "AttributeError: 'tuple' object has no attribute 'type'" Do you get the error every single time ?
@umarfarooque3687
@umarfarooque3687 9 ай бұрын
thank you for this video. I would love to see if you could make video on using llm with tools like gmail, linkedin etc to automate day to day work
@satvalite1854
@satvalite1854 8 ай бұрын
Hey sam great vid would love a video for a basic for csv and pdf querying using gemini
@d3nt391
@d3nt391 9 ай бұрын
Is there any benefit to using it through Langchain vs just the genai module? Langchain seems to overcomplicate everything
@samwitteveenai
@samwitteveenai 9 ай бұрын
You can hook it up to RAG and VectorStores easily and also make use of the premade chains like the PAL Chain I show in the video. That said you certainly don't have to use LangChain to do these things if you are comfortable writing some code yourself.
@d3nt391
@d3nt391 9 ай бұрын
@@samwitteveenai thank you for the thoughtful reply!
@jarekmor
@jarekmor 9 ай бұрын
It is worth to mention about LangSmith platform where you can debug, test, evaluate, monitor chains and integration of it with Langchain framework.
@glouie
@glouie 8 ай бұрын
Amazingly clear. Thank you so much. I believe that even a non-programmer like me will be able to start playing around with these functions. I have a large Zotero database containing PDF files related to Alzheimer's Disease. I would like to input the database to create a RAG What would you recommend? The simplest use case would be to provide scientists with the ability to retrieve documents and statements related to a human conceptualized grant submission. More interesting, would be a series of prompts to create an AI colleague for hypothesis generation based on an LLM review on the human selected literature.
@henkhbit5748
@henkhbit5748 9 ай бұрын
Thanks for the video👍 Multimodal RAG with open source would be nice ...
@seththunder2077
@seththunder2077 9 ай бұрын
Hey sam. Can you please explain more about the DocArrayInMemorySearch? I did not really understand it
@MuhammadAsif-mm4py
@MuhammadAsif-mm4py 7 ай бұрын
Anyone who can help me with the IDE he is using and how to get started
@samwitteveenai
@samwitteveenai 7 ай бұрын
Most of the code is using Colab which has a free tier and runs in the cloud from Google
@yuanshisklse
@yuanshisklse 8 ай бұрын
Thank you Sam, Really great example on integrating langchain and Gemini. Could you direct me to the notebook that you demoed just now?
@alealejandroooooo
@alealejandroooooo 9 ай бұрын
Interested in multimodal RAG with an open source multimodal model. 🙂
@Akhil-me6gk
@Akhil-me6gk 8 ай бұрын
Hey Sam very good video but I think it still does not support the creation of conversation chains like chatbots with ConversationRetrievalChain. I was trying it but it gave me some errors while running it.
@samwitteveenai
@samwitteveenai 8 ай бұрын
Yeah you will need to remake some of them as Gemini currently doesn't support System Prompts and needs to always go Human -> AI -> Human etc you can't have 2 human prompts in a row or a system prompt. You can feed the memory in as a context though pretty easily. I might make some more vids for this .
@Akhil-me6gk
@Akhil-me6gk 8 ай бұрын
@@samwitteveenai Yeh sure that would be very helpful :)
@caiyu538
@caiyu538 8 ай бұрын
👍
@velugucharan8096
@velugucharan8096 9 ай бұрын
Bro i know little bit of Deep learning and machine but i want to take lang chain course from where i want to star Imagine i am beginner suggest me some KZbin free source to learn lang chain and generative AI PLEASE BRI
@samwitteveenai
@samwitteveenai 9 ай бұрын
I have a whole bunch on this channel that you can checkout. I am thinking of making a new updated set of basics for the start of 2024 as well.
@velugucharan8096
@velugucharan8096 9 ай бұрын
@@samwitteveenai please do that as much as possible broo
@aaroldaaroldson708
@aaroldaaroldson708 9 ай бұрын
Why don’t you just go through their documentation? It is beginner friendly
@advaithr1984
@advaithr1984 9 ай бұрын
@samwitteveenai himself has a lot of content out there. Other useful youtuber are @krishnaik06 , @Analyticsvidhya , @NicholasRenotte. These have always been my go to channels. All four mentioned above have done significant content in the field of NLP, Langchain. Have the Documentation to your side all time.
@putinninovacuna8976
@putinninovacuna8976 4 ай бұрын
This is quite unhelpful. You’re not demonstrating how to implement this in a real web application and looking on Google’s documentation is so inadequate all you get from googles tutorials are snippets of code for notebooks, but they don’t teach how to integrate Vertex AI Vector Search into a real web application, not just notebooks.
@samwitteveenai
@samwitteveenai 4 ай бұрын
When I made this video there was no VertexAI LangChain. I am still frustrated with the Google support for LangChain so haven't made any more vids about it I have one shot but it breaks in one part so I never released it. Hopefully will do some more soon
The 5 Types of LLM Apps
15:30
Sam Witteveen
Рет қаралды 28 М.
Langchain Agents [2024 UPDATE]  - Beginner Friendly
20:48
Ryan & Matt Data Science
Рет қаралды 11 М.
Bend The Impossible Bar Win $1,000
00:57
Stokes Twins
Рет қаралды 44 МЛН
مسبح السرير #قصير
00:19
سكتشات وحركات
Рет қаралды 11 МЛН
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 903 М.
Je peux le faire
00:13
Daniil le Russe
Рет қаралды 11 МЛН
Unveiling Meta's Impressive CV Model: Sam 2
12:00
Sam Witteveen
Рет қаралды 33 М.
Master RAG on Vertex AI with Vector Search and Gemini Pro
31:07
Janakiram MSV
Рет қаралды 7 М.
LangGraph Crash Course with code examples
39:01
Sam Witteveen
Рет қаралды 77 М.
How to build Multimodal Retrieval-Augmented Generation (RAG) with Gemini
34:22
Google for Developers
Рет қаралды 57 М.
How to Build a Real-Time Multimodal RAG Application in Minutes
1:00:40
Merantix AI Campus
Рет қаралды 3,1 М.
LangChain Agents - Joining Tools and Chains with Decisions
13:34
Sam Witteveen
Рет қаралды 77 М.
Advanced RAG 06 - RAG Fusion
13:05
Sam Witteveen
Рет қаралды 20 М.
Claude 3.5 Sonnet Projects Tutorial: NEXT LEVEL AI Programming!
29:57
Bend The Impossible Bar Win $1,000
00:57
Stokes Twins
Рет қаралды 44 МЛН