Advanced Technologies: Beyond Prompting -- Retrieval Augmented Generation(RAG)

RAG: giving it additional knowledge beyond what it may have learned from data on the Internet or other open sources

Retrieval Augmented Generation (RAG) example

  • General Chatbot
  • Chatbot with RAG
    • Give the LLM additional information
  1. Given a question, search relevant documents for answer (Company documents, most relevant to this question)
  2. Incorporate retrieved text into an updated prompt (take the relevant text from documentation and put that into my prompt;)
    1. limitations to the prompt length or the input length for a large language model
    2. Pull out just the part of the document that's most relevant to the question
  3. Generate answer from the new prompt with additional context
    1. generate an answer to this, but we're going to augment how we generate text by retrieving the relevant context or the relevant information and augmenting the prompt with that additional text
    2. also add a link to the original source document that led to this answer being generated
    3. can go back and read the original source document and double-check the answer for themseleves

Example of RAG applications

  • Chat with PDF files
    • upload pdf and then ask questions
    • use RAG to generate answers for you
  • Answer questions based on a website's articles
  • New form of web search

Big Idea: LLM as a reasoning engine: which is to think of the LLM not as a knowledge store, but instead as a reasoning engine

  • LLMs have a lot of general knowledge, but they don't know everything
  • By providing relevant context in the prompt, we ask an LLM to read a piece of text, then process it to get an answer
  • We're using it as a reasoning engine to process information, rather than using it as a source of information
相关推荐
Georgeviewer2 小时前
商业落地评测|实体门店GEO优化性价比与服务体系深度复盘
大数据·人工智能
GuWenyue3 小时前
分不清AI Workflow与Agent?3个实战案例彻底讲透,做AI应用不再踩选型坑
人工智能
彩讯股份3006344 小时前
彩讯股份与心洲科技签署战略合作协议,共建企业级模型后训练能力
人工智能·科技
迅易科技4 小时前
从场景验证到Agent上线:迅易 × WorkBuddy如何帮助企业建设AI能力?
人工智能·ai·腾讯云
PNP Robotics4 小时前
多伦多大学机器人峰会|物理AI与具身智能落地新趋势
人工智能·深度学习·机器学习·机器人
GIR1234 小时前
官方出品 | 多通道土壤呼吸测量系统市场现状与十五五规划深度报告:行业分析+趋势预测全收录
大数据·人工智能·机器学习
绿算技术4 小时前
绿算技术亮相第十八届HPC AI中国年会,擘画AI基础设施全栈协同新图景
人工智能
Litluecat4 小时前
2026年7月22日科技热点新闻
人工智能·科技·新闻·每日·速览
To_OC5 小时前
别再傻傻分不清:Workflow 和 Agent 到底不是一回事
人工智能·agent·workflow
触底反弹5 小时前
🔥 2026 大模型选择指南:别再只看 Benchmark 了,这些维度才是关键!
人工智能·面试