So far the most completed and clear LLM RAG go-through video ever existed on KZbin.
@MatBat__8 ай бұрын
100%
@ReflectionOcean9 ай бұрын
00:00:49 Fix the model by creating a data pipeline to add context into the prompt. 00:01:33 Understand the paradigms of retrieval augmentation and fine-tuning for language models. 00:02:00 Learn about building a QA system using data ingestion and querying components. 00:02:07 Explore lower-level components to understand data ingestion and querying processes. 00:03:01 Address challenges with naive rag applications, such as poor response quality. 00:04:02 Improve retrieval performance by optimizing data storage and pipeline. 00:04:14 Enhance the embedding representation for better performance. 00:04:45 Implement advanced retrieval methods like reranking and recursive retrieval. 00:05:18 Incorporate metadata filtering to add structured context to text chunks. 00:06:27 Experiment with small to big retrieval for more precise retrieval results. 00:07:14 Consider embedding references to parent chunks for improved retrieval. 00:09:31 Explore the use of agents for reasoning and more advanced analysis. 00:12:12 Fine-tune the rag system to optimize specific components for better performance. 00:17:01 Generate a synthetic query dataset from raw text chunks using LLMS to fine-tune and embed a model. 00:17:12 Fine-tune the base model itself or fine-tune an adapter on top of the model to improve performance. 00:17:16 Consider fine-tuning an adapter on top of the model as it has advantages such as not requiring the base model's weights to fine-tune and avoiding the need to reindex the entire document corpus when fine-tuning the query. 00:18:00 Explore the idea of generating a synthetic dataset using a bigger model like GBD4 and distilling it into a weaker LM like 3.5 Turbo to enhance train of thought, response quality, and structured outputs.
@kashishmukheja702411 ай бұрын
🎯 Key Takeaways for quick navigation: 01:44 🧩 *The current RAG stack for building a QA system consists of two main components: data ingestion and data querying (retrieval and synthesis).* 03:08 🚧 *Challenges with naive RAG include issues with response quality, bad retrieval, low precision, hallucination, fluff in return responses, low recall, and outdated information.* 04:31 🔄 *Strategies to improve RAG performance involve optimizing various aspects, including data, retrieval algorithm, and synthesis. Techniques include storing additional information, optimizing data pipeline, adjusting chunk sizes, and optimizing embedding representation.* 06:50 📊 *Evaluation of RAG systems involves assessing both retrieval and synthesis. Retrieval evaluation includes ensuring returned content is relevant to the query, while synthesis evaluation examines the quality of the final response.* 08:30 🛠️ *To optimize RAG systems, start with "table stakes" techniques like tuning chunk sizes, better pruning, adjusting chunk sizes, and using metadata filters integrated with vector databases.* 12:29 🧐 *Advanced retrieval methods, such as small to big retrieval and embedding a reference to the parent trunk, can enhance precision by retrieving more granular information.* 14:42 🧠 *Exploring more advanced concepts, like multi-document agents, allows for reasoning beyond synthesis, enabling the modeling of documents as sets of tools for tasks such as summarization and QA.* 16:23 🎯 *Fine-tuning in RAG systems is crucial to optimize specific components, such as embeddings, for better performance. It involves generating synthetic query datasets and fine-tuning on either the base model or an adapter on top of the model.* 18:15 📚 *Documentation on production RAG and fine-tuning, including distilling knowledge from larger models to weaker ones, is available for further exploration.* Made with HARPA AI
@2200venkat7 ай бұрын
So far this is the best presentation on RAG I have ever come across in last couple of months.
@postnetworkacademyАй бұрын
This is a great overview of the transformative impact of Large Language Models and the exciting developments around Retrieval Augmented Generation (RAG). Jerry Liu's talk seems like a must-watch for anyone interested in building and optimizing LLM-powered applications on private data. It's inspiring to see experts like Jerry, with his impressive background in AI research and engineering, sharing insights on how to tackle the challenges of productionizing RAG systems. Looking forward to exploring more at the AI Engineer World's Fair 2024!
@streetchronicles5693 Жыл бұрын
Thank you not just for putting this together, but by making sense of it all! In 18min!? Amazing!
@MatBat__8 ай бұрын
Thank you very much for this. In this age of LLms it is getting more and more important to be able to mesure theyr accuracy and efficacy. I've been working with problems like this since the beggining of 2024 and it's been such an interesting topic to learn about. Cheers and thx for the upload
@Bball1129 Жыл бұрын
Your distilled video has almost no knowledge loss over hours of coursework. Great work !
@minwang218211 ай бұрын
Very deep talking! Really appreciate and learned a lot
@gopikrishna8063 Жыл бұрын
i thoroughly enjoyed your presentation. jerry Liu-Thanks for the Deep methods to be applied to traditional RAG.-
@UncleDao Жыл бұрын
I was thoroughly impressed by the depth of your insights and the clarity of your delivery. The ability of Jerry Liu to distill complex concepts into understandable terms was remarkable, and I particularly enjoyed how you illustrated the practical applications of RAG in various fields. Would it be possible for you to share the slides from the Jerry Liu's presentation?
@CsabaTothMr Жыл бұрын
There wasn't anything filler. Down to the point from beginning to the end. He gave a similar talk at Silicon Valley DevFest AI Edition, I was impressed.
@carlomartinotti36494 ай бұрын
This is exactly what i needed, when I needed it. Big props!
@justy133710 ай бұрын
I love Jerry's approach to identifying intuition and solution
@Ke_Mis8 ай бұрын
Really nice presentation skills, Jerry!
@believeM6683 ай бұрын
Amazing video. Helped a lot !
@jasonzhang65349 ай бұрын
short and sweet presentation. Very clear
@bhaskartripathi7 ай бұрын
Very nice presentation and very practical tips for enterprise RAGs
@Breaking_Bold9 ай бұрын
Excellent presentation on RAG
@RealUniquee9 ай бұрын
Thanks for Your hard-work. Really learned a lot
@anne-marieroy88127 ай бұрын
Thank you for this excellent presentation, very much appreciated
@laup43212 ай бұрын
12:56 interesting expanding on smaller chunks
@SeanTechStories6 ай бұрын
This is an awesome video 🎉
@hiiamlawliet480 Жыл бұрын
Can anyone share this presentation link mentioned in 5:35 ?
was someone able to open that colab link that was mentioned in one of the slide, if yes, could you share the link. please
@huonglarne8 ай бұрын
wow thanks for the presentation
@420_gunna Жыл бұрын
Awesome rundown!
@antoniopassarelli Жыл бұрын
The V stands for cmd/ctrl V
@shivamverma-wm3vv Жыл бұрын
I am using the ''Gpt2" model , its response is correct but the response time is about 10 seconds on the local pc and 35 seconds on the EC 2 server, can you tell how to reduce response time, you can share server configuration or any good model of GPT 2 or smaller than this
@Kevin.Kawchak8 ай бұрын
Thank you
@holonaut10 ай бұрын
I use the hyper-naive approach: Provide the LLM with all the knowledge keys in my MySQL DB and let it tell me which ones are most likely to be helpful for answering the current prompt. Then just load the entries based on the keys the LLM told me and inject them into the second propmpt, which the LLM is then supposed to answer. (Yes, Vector search would be way more fitting for this, but I'm a peasant and don't even have the slightest clue of how to to implement it)
@AmeeliaK2 ай бұрын
It's five lines of codes in the llama index docs. Works well out of the box for simple data.
@kishanprajapati61707 ай бұрын
Can I get the presentation ?
@amethyst1044 Жыл бұрын
can I have these slides somewhere ? Compact infor, thank you !
@RyanStuart8511 ай бұрын
RAG is an interesting idea. If the predictions are right and these models are only going to get better, wouldn’t it make sense to give them direct access to the embedding DB and let the model decide how best to handle retrieval rather than having the humans do it?
@Pmahya7 ай бұрын
No, but that’s the whole point of human feedback and RFHL. It would be great to give LLM all access to DB but then their coherent biases would eventually lead to overfitting.
@mso28025 ай бұрын
what music is that by the way?
@tecnopadre Жыл бұрын
Great one!
@swetharangaraj452111 ай бұрын
what is the process if i what to query chat from cloud mangoDB using llm and RAG
@fintech1378 Жыл бұрын
impressed
@robinmountford5322 Жыл бұрын
I still haven't managed to find an argument for RAG over LORA. RAG's biggest achilles heel is cortext size. It almost seems to me to be a band aid, especially when at least a year from now context size may not even be an issue. We can spend months perfecting our RAG pipeline and end up throwing it all away a month later due to it being redundant.
@namankapasi6463 Жыл бұрын
Pretty sure rag avoids hallucination much better than Lora does, fine tuning is good for changing the language style but doesn’t necessarily work the best when your looking for specific info from the way I understand it, also rag allows you to plug in diff data without having to go back and re fine tune ur model with every update
@robinmountford5322 Жыл бұрын
@@namankapasi6463 I have noticed with LORA you don't get back the specifics of the trained data, but rather an interpreted version of it (which in my experiments has been jaw-dropping). If RAG functions more like a search engine then I can see how these could both be useful. So my guess, after reading your reply, is LORA would be suited to emulating specific writing styles and RAG would be good for technical data retrieval or for extracting paragraphs from text with references? Makes sense then, since you would probably only need to train in a specific writing style once. Even so, when context size increases dramatically will we still use RAG and not just add the content into the main prompt as is? Or does the vector process make the entire process more efficient, regardless?
@namankapasi6463 Жыл бұрын
I mean you can think of rag as restricting your output to the data that ur giving it, user makes a request to the model, model looks at vector database and responds from the database first, not saying I’m an expert but im 99% sure. Also in regards to efficiency, higher context windows are expensive and are repetitive so I’d avoid them, even tho open ai caching is p good this not the case for a lot of open source models
@robinmountford5322 Жыл бұрын
@@namankapasi6463 Ok great. Thanks for shedding some extra light here.
@marcvayn Жыл бұрын
You need to do both for optimal performance. Everything you put in RAG should be data that may need to change in real time - ex: price lists, spec sheets, latest instructions manuals, product updates etc…. Most everything else you can fine tune - however if you plan on running sizable projects your fine tuning could take weeks. Or even days. Now if you have to constantly adjust your fine tuning this is not very practical. Therefore you may wish to move part of your data into RAG. Additionally you need to play with Chunks in order to better organize your training data. Of course much depends on your project
@aaronlang9533 Жыл бұрын
this is pretty deep
@dantesbytes2 ай бұрын
More like this
@alitomix6 ай бұрын
All the documentation became obsolete in a couple of months, since I can't find useful examples with the current stuff I'm moving to langchain
@foju936511 ай бұрын
All these videos today start with a cyberpunk theme music
@AmeeliaK2 ай бұрын
When somebody who looks like 19 says that Information Retrieval is already one or two decades old, I feel so old 😂 Come on, Lucene is already more than 20 years old 😅
@TheKnowledgeAlchemist Жыл бұрын
I just want an LLM to read my google docs and let me ask questions about stuff, then use it to write and add into my drive
@deeghalbhaumik3779 Жыл бұрын
Seems straightforward to be. Just encode your docs into vector embeddings. And then search whatever you need and you can use the information to write stuff by creating appropriate prompt templates depending on what you want it to write. Search using any LLM. You can use openai or the ones on hugging face
@TheKnowledgeAlchemist Жыл бұрын
@@deeghalbhaumik3779 found lm studio and embedding models. This is working now
@fanebone87323 ай бұрын
Google’s NotebookLM does this exactly
@foju936510 ай бұрын
I wish they didn't use the term QA for question answering and used "Q&A" instead. leads to a lot of confusion with those of us developing production grade systems that require quality assurance :)
@bababear17458 ай бұрын
Are ypu working on an AI based Quality assurance / Quality Audit system? Would love to connect and work together
@mosesdaudu11 ай бұрын
Nice intro music 😂
@sanjaybhatikar6 ай бұрын
Are the comments AI-generated? They seem like variants of the same glowing, effusive prompt.
@AtomicPixels11 ай бұрын
Why does every tech bro speak as if every comment is cooler when in the tone of a question.
@sanjaybhatikar6 ай бұрын
Llama Index has poor documentation despite claims to the contrary and causes dependency conflicts off the bat.
@jerseyboy669 ай бұрын
Feel like MSFT copilot is the RAG killer…
@paraga123456789 Жыл бұрын
kehna kya chahte ho
@ankitait2 Жыл бұрын
AI basically consumes data like your body consumes a large cube of paneer, breaking it into smaller pieces and digesting it using stomach juices to know it is paneer. AI paneer ko paneer hi bole, aloo na bole iske liye nuske bata rahe hai bhai I think.
@user-he8qc4mr4i8 ай бұрын
Million Things to do = initiative time before going to prod :-/
@vishnurajbhar0076 ай бұрын
Don't wear a hat next time, you didn't come to fashion show. These are serious world changing talks. I didn't get anything because of the hat 🙄
@2AoDqqLTU5v5 ай бұрын
You have a very low IQ if a hat can throw you out this much