What is a vector database, and why AI apps need one
Search by meaning, not keywords: how vector retrieval works and its role in RAG.
Text becomes coordinates
An embedding model turns text into vectors where similar meaning = nearby coordinates. A vector DB stores them and finds nearest neighbors fast — so "refund policy" retrieves "how to return an item" with zero keyword overlap.
Where it sits in RAG
The standard pipeline: chunk docs → embed and store → embed the question → retrieve top chunks → hand them to the LLM. Platforms like Dify package the whole chain; NotebookLM hides it entirely.
中文
向量数据库是什么?AI 应用为什么离不开它
"按意思找而不是按关键词找":向量检索原理与它在 RAG 里的角色。
把文字变成坐标
嵌入模型把每段文字变成一串数字(向量),"意思相近"就是"坐标相近"。向量数据库专门存这些坐标并快速找最近邻——于是"退款政策"能搜出"如何申请退货",尽管一个关键词都不重合。
在 RAG 里的位置
知识库问答的标准链路:文档切块 → 生成向量入库 → 用户提问也转向量 → 找回最相关的块 → 连同问题交给大模型作答。Dify 这类平台已把整条链路封装好,个人用 NotebookLM 则完全无感。