What is Retrieval Augmented Generation (RAG) and JinaAI?

  Рет қаралды 2,989

Chris Hay

Chris Hay

5 ай бұрын

Retrieval Augmented Generation (RAG) is one of the big AI patterns you must know for 2024, in this tutorial i break down the RAG pattern, What the Jina AI embeddings model isand why JinaAI is a game changer for LLM's such as GPT, Llama and Mistral.
In the video, chris breaks down what the issues with LLM's such as GPT, Mixtral 7B and Llama-2 are and how the RAG pattern helps solves the problems of hallucinations, extending data.
Chris also shows you in detail on how the RAG pattern exacty works under the hood, so you can truly understand what's going on
He also talks about how JinaAI is different, how it works, how compares to openai ada embeddings model and how Jina AI will kick off the next model trend for 2024.

Пікірлер: 21
@mohamedghazal3630
@mohamedghazal3630 4 ай бұрын
Thank you! very simple, precise, yet very informative!
@chrishayuk
@chrishayuk 4 ай бұрын
Glad it was helpful!
@JAnders-oy2sv
@JAnders-oy2sv 2 ай бұрын
Another clear and informative video, thank you! I agree, I think RAG will be huge in 2024. One thing I would like to know, is it possible to have the LLM list or identify the chunk or chunks used to produce a response? Perhaps metadata or indexes can be added to the chunks which the LLM can use when generating a response.
@jonb9806
@jonb9806 4 ай бұрын
Great video Chris. Even I could understand your explanation!
@chrishayuk
@chrishayuk 4 ай бұрын
thank you, it was a really difficult one to find the right angle for, glad it was useful.
@spheroid77
@spheroid77 4 ай бұрын
Chris, great video as always. I learn so much from your channel, thanks. One thing I at least didn't quite "get" from this - where you talk about vectorization and embeddings - what actually *is* that process? The general concept I understand - turn the chunk into a numerical vector and compare them for similarity - but the vectorization itself - what is JinaAI doing at that point and how does it overcome e.g. the challenges of mismatching vocab between the question and the knowledge chunk without being externally trained itself on a bunch of stuff? Or maybe the embeddings are based on some other training from elsewhere? Was just a bit hazy on that point... maybe a thought for a future video if you're inclined :)
@chrishayuk
@chrishayuk 4 ай бұрын
you're right.. that's probably a really good video to do, as it's quite complex. it's quite interesting. my latest video on tiktoken, explains vectorization for decoder models, but that's a little simplistic compared to embedding models. will do a video on embeddings
@spheroid77
@spheroid77 4 ай бұрын
Fantastic, thanks! @@chrishayuk
@willarnold3121
@willarnold3121 5 ай бұрын
Great video Chris!
@chrishayuk
@chrishayuk 5 ай бұрын
Thaaaank you!!
@juliussakalys9600
@juliussakalys9600 5 ай бұрын
Hi Chris, I appreciate the high quality content! Could you do a video or just give a simple reply on where are you taking your expertise from? Maybe some communities, projects or anything of the sort. Personally (and I am sure that other people as well), I would like to become proficient in basically the same things that you are an expert at when it comes to engineering solutions for AI related problems :)
@chrishayuk
@chrishayuk 5 ай бұрын
That is a pretty difficult one to answer, in all honesty just let myself play. I’ve been using the RAG pattern a lot at work. However, I felt the explanations of RAG were either 1 level too high, or 2 levels too deep. That’s usually when I’ll do a video like this one, just to go under the covers and show what’s really happening
@juliussakalys9600
@juliussakalys9600 5 ай бұрын
Thanks, I guess the takeaway is to try and play more with such things myself.
@chrishayuk
@chrishayuk 5 ай бұрын
@@juliussakalys9600 it’s tough to know where to look and start, I’ll try and put some sort of guide together
@harrykekgmail
@harrykekgmail 3 ай бұрын
quality explanations!
@chrishayuk
@chrishayuk 3 ай бұрын
Thank you, glad it was useful
@Kopp141
@Kopp141 5 ай бұрын
Thank you for a fantastic breakdown of RAG. I can now see why my Copilot trial at work is so bad at information retrieval. I'm guessing that as the queries get more complex and the spread of the data becomes wider, the less useful this method will become less effective. Does that push us toward a rolling fine-tune approach to a base model?
@chrishayuk
@chrishayuk 4 ай бұрын
i think the hybrid model where you have a circle of RAG and finetune is likely the way forward
@path1024
@path1024 5 ай бұрын
If you want facts you need to pump the determinism by lowering the temperature.
@chrishayuk
@chrishayuk 5 ай бұрын
Only works if the data is in the training set, also doesn’t solve the traceability issue. Finally the models shouldn’t be making up answers for Q&A type questions this is where models will get better through routing questions to the correct expert with MoE
@path1024
@path1024 5 ай бұрын
@@chrishayuk Well, it just makes it stick to the highest confidence answer. You were saying it kept putting out a different answer. That's usually temperature and its effect on topP and topK. And the higher the temperature, the more it hallucinates. It sounds like you're just saying it should know when to lower the temperature on its own for the type of question.
why llama-3-8B is 8 billion parameters instead of 7?
25:40
Chris Hay
Рет қаралды 3 М.
WHY DOES SHE HAVE A REWARD? #youtubecreatorawards
00:41
Levsob
Рет қаралды 35 МЛН
1 класс vs 11 класс (неаккуратность)
01:00
БЕРТ
Рет қаралды 4,7 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 74 МЛН
What is RAG? (Retrieval Augmented Generation)
11:37
Don Woodlock
Рет қаралды 80 М.
5 New AI Tools You Should Try
9:18
Skill Leap AI
Рет қаралды 9 М.
Getting Started with ReAct AI agents work using langchain
43:33
Chris Hay
Рет қаралды 2,9 М.
Fine-Tune Llama3 using Synthetic Data
37:03
Chris Hay
Рет қаралды 1,5 М.
AI Critique with SELF-REFLECTION 🤯 (powered RAG)!!!
16:51
1littlecoder
Рет қаралды 9 М.
LangChain explained - The hottest new Python framework
3:03
AssemblyAI
Рет қаралды 173 М.
Vector Databases simply explained! (Embeddings & Indexes)
4:23
AssemblyAI
Рет қаралды 276 М.
Как я сделал домашний кинотеатр
0:41
RICARDO
Рет қаралды 1,5 МЛН
The power button can never be pressed!!
0:57
Maker Y
Рет қаралды 54 МЛН
Дени против умной колонки😁
0:40
Deni & Mani
Рет қаралды 9 МЛН