向量数据库是什么?

向量数据库是专门存储、索引与检索高维向量的数据库系统,核心能力是把非结构化数据映射成数值向量后,用近似最近邻算法在亿级规模中快速找到语义最相近的记录。它解决的是关系数据库无法高效处理语义相似性查询的问题,也解决了大规模向量检索在延迟与成本上的工程约束。

向量数据库是专门存储、索引与检索高维向量的数据库系统,核心能力是把非结构化数据映射成数值向量后,用近似最近邻算法在亿级规模中快速找到语义最相近的记录。它解决的是关系数据库无法高效处理语义相似性查询的问题,也解决了大规模向量检索在延迟与成本上的工程约束。

当用户问的是「意思相近」而不是「字面相同」时,就需要向量数据库来做检索。

向量嵌入:把文本、图像或音频通过嵌入模型映射成固定维度的稠密向量。

近似最近邻索引:采用分层聚类或图索引等结构,把暴力比对的复杂度从线性降到对数级。

元数据过滤:检索时可叠加结构化条件,把向量相似度与业务规则组合使用。

集合操作:支持按条件筛选、范围查询与多向量集合间的联合检索。工程上向量数据库的真实门槛在写入与更新:原始数据变动频繁时,增量索引的维护成本可能超过检索本身,因此多数系统同时保留原始副本并异步重建索引。实践中的另一个常见模式是分片与副本:向量数据通常按规模分片以支撑水平扩展,同时保留多副本以保证高可用与就近读取。

向量数据库把语义检索从研究原型变成了可承载生产流量的基础设施,支撑了检索增强生成等应用模式,也让语义相似度这一原本难以量化的关系具备了工程可用的索引与查询能力。

翻译

A vector database is a storage engine built around high-dimensional vectors, combining a specialised index with approximate nearest-neighbour search so that semantically similar records can be retrieved from collections of billions of dimensions. The gap it closes is that relational engines answer exact-match and range questions efficiently, but semantic similarity is not an exact operation.

When the user means something rather than typing the exact words, vector search is what actually finds the right passage.

Vector embedding: text, images or audio are projected through an embedding model into fixed-length dense vectors.

Approximate nearest-neighbour indexing: hierarchical clustering or graph-based structures reduce search from linear brute force to roughly logarithmic cost.

Metadata filtering: structured predicates are combined with similarity scores so retrieval respects business rules rather than pure vector distance.

Collection operations: filtered scans, range predicates and multi-collection joins are supported alongside vector queries.The practical hurdle in production is writes and updates: when source data changes frequently, maintaining the incremental index can cost more than retrieval itself, so most systems keep a copy of the original records and rebuild the index asynchronously.A common production pattern is sharding with replication: vector data is usually partitioned to scale horizontally while multiple replicas preserve availability and enable geographically nearby reads.

The result is that semantic retrieval became ordinary infrastructure rather than a research prototype, which is what made retrieval-augmented generation practical at production scale.

💬 评论
🔗 本文链接

以专业为基,引领科技向善向新

Rooted in professionalism, we lead technology toward social good and innovation.

数智化转型网 · 了解更多产业资讯与选型数据 →

📰 你可能也喜欢

人工智能1000问——数智化转型网www.szhzxw.cn 行业百科

提示词工程是什么?

提示词工程是通过设计与优化输入文本的表述方式,获得更稳定准确模型输出的实践方法,核心能力是把模糊的需求转成结构清晰、约束明确、可被模型稳定响应的指令。它解决的是…
📅 11-16 · 👁 2026年11月16日
人工智能1000问——数智化转型网www.szhzxw.cn 行业百科

AI PC是什么?

AI PC 是内置 NPU 等专用 AI 加速硬件、可在本地高效运行端侧大模型与生成式 AI 应用的下一代个人计算机,核心是本地推理优先、端云协同,能力包括多厂…
📅 11-16 · 👁 2026年11月16日
人工智能1000问——数智化转型网www.szhzxw.cn 行业百科

自监督学习是什么?

自监督学习是从数据本身构造监督信号、无需人工标注即可训练模型的学习范式,核心是让输入的一部分成为预测目标,能力包括掩码重建、对比学习与自蒸馏式训练。它解决的是人…
📅 11-16 · 👁 2026年11月16日
人工智能1000问——数智化转型网www.szhzxw.cn 行业百科

LLM网关是什么?

LLM 网关是位于应用与模型之间统一管控模型调用的中间层,核心能力是把多家模型、多套接口、多级配额收敛到单一入口,并提供路由、限流、缓存、审计与成本归集。它解决…
📅 11-16 · 👁 2026年11月16日
人工智能1000问——数智化转型网www.szhzxw.cn 行业百科

人形机器人是什么?

人形机器人是外形与人类相似、具备双足行走、双臂操作与多模态感知能力的智能机器人,核心是在为人类设计的环境中以人的形态直接作业,能力包括双足运动控制、灵巧手操作、…
📅 11-16 · 👁 2026年11月16日
数字化转型1000问——数智化转型网www.szhzxw.cn 行业百科

数据流通是什么?

数据流通是把数据要素在组织内外进行合规、有序流转并产生实际使用价值的机制,核心是让数据在可控前提下被使用而非被囤积,能力包括数据资产登记、授权使用管理与收益分配…
📅 11-16 · 👁 2026年11月16日