RAG enables LLMs to access new information without retraining
Image: Unsplash, CC BY-SA 4.0, via Wikimedia Commons
RAG enables LLMs to access new information without retraining
Retrieval-augmented generation (RAG) allows large language models (LLMs) to retrieve and incorporate new information from external sources, enhancing their ability to provide up-to-date responses. This technique supplements the LLM's pre-existing training data with domain-specific and/or updated information, enabling them to access internal company data or authoritative sources for generating responses.
Example
A chatbot using RAG can access and provide the latest financial reports from a company's database, even if it wasn't trained on that specific data.
Remember this
RAG's ability to access new information without retraining is crucial for maintaining the relevance and accuracy of LLM-generated content in rapidly changing domains.
Text adapted from Wikipedia, licensed under CC BY-SA 4.0.
1536-dim OpenAI text-embedding-3-large is used for: semantic search and RAG
Used for semantic search, RAG, and enhancing language models' understanding
soft targets carry more information than hard labels: they encode class similarities
Why do some learning methods need to explore more than others?
Prompt engineering
The GenAI model learns tasks from examples in the prompt
Knowledge distillation
Knowledge distillation transfers knowledge from a large model to a smaller one without loss of validity
Large language model
LLMs can generate, summarize, translate, and analyze text in many contexts
data augmentation does for generalization: artificially expands training set
How can you teach a computer to see better?
Swipe through 100 ML concepts daily
Open Pocket Polymath