返回首页

对比阅读

对比阅读:VikingDB Adds Keyword Retrieval, Closing a Vector Database Gap 与 VikingDB 同库支持关键词检索 — 向量库开始补齐精确查找短板

AEN
Volcano EngineVikingDBOpenViking·

VikingDB Adds Keyword Retrieval, Closing a Vector Database Gap

Volcano Engine’s VikingDB now supports keyword and vector retrieval within the same database, with keyword capabilities already used across dozens of online business scenarios. We believe that adding precise lookup to vector databases is becoming an essential requirement for enterprise knowledge bases to move into production.

What This Is

Vector retrieval finds content with similar meaning based on semantic similarity, making it well suited to natural-language queries. Keyword retrieval, by contrast, matches words exactly and is better suited to looking up error codes, product model numbers, identifiers and people’s names. The two are not substitutes: vector search is good at understanding differences in expression, while keyword search is more reliable when every character must be correct.

VikingDB processes documents and queries through the same tokenization pipeline, writes terms into an inverted index, and then calculates relevance using BM25, a ranking algorithm that measures term frequency and rarity. It also supports n-gram tokenization, searches for rare Chinese characters and pinyin, multi-field weighting, and forward and reverse filtering.

For example, when searching for “0xC000021A蓝屏,” pure vector retrieval may rank documents containing a different error code but discussing a similar topic ahead of the correct match. Keyword retrieval can instead prioritize documents that contain that exact error code.

Industry View

We notice that the commercial value of this capability lies not merely in adding another search button, but in allowing enterprises to incorporate business rules into the retrieval process. Titles, aliases and body text can be assigned different weights, while terms such as “used” or “refurbished” can be excluded before ranking, reducing the likelihood that an answer will be based on incorrect information.

Keyword retrieval also has limits. Tokenization rules may mishandle rare characters and classical Chinese, while polyphonic characters can produce multiple pinyin candidates. Field weights still depend on business teams configuring them, and incorrect settings can allow a frequently matched but unimportant field to outweigh the title. It is also worth noting that the available sources are primarily product practice articles, with few third-party benchmarks or independent validations across different business scales. Claims such as “trillion-scale vector capacity” and “millisecond-level response” also do not mean that every keyword query will consistently achieve the same performance on real-world data.

Impact on Regular People

For enterprise IT: Knowledge bases, customer service and internal search can retain both semantic retrieval and exact matching without first bearing the cost of replacing existing search systems. Before deployment, however, teams still need to test recall results using real error codes, model numbers and business blacklists.

For workplace productivity: AI search will be better at locating specific documents rather than merely offering references with similar topics. Users need to check the source and matched fields, and must not treat semantic similarity as factual agreement.

For the consumer market: Product searches will more easily pinpoint exact models and enforce filters such as “brand new” or “official” more effectively. At the same time, enterprises may package filtering and weighting rules as more precise recommendations, so consumers should remain attentive to ranking rules.

来源: juejin.cn
BZH
火山引擎VikingDBOpenViking·

VikingDB 同库支持关键词检索 — 向量库开始补齐精确查找短板

火山引擎 VikingDB 已在同一数据库中支持关键词与向量检索,关键词能力已用于数十种线上业务场景。我们判断,向量库补上精确查找能力,正在成为企业知识库进入生产环境的重要条件。

这是什么

向量检索按语义相似度寻找“意思相近”的内容,适合自然语言提问;关键词检索则按词语精确匹配,更适合查错误码、产品型号、编号和人名。两者并非替代关系:前者擅长理解表达差异,后者在字符必须准确时更可靠。

VikingDB 的做法是让文档和查询经过同一套分词处理,将词项写入倒排索引,再用 BM25(衡量词语命中频率与稀有度的排序算法)计算相关度。它还提供 ngram 切分、生僻字与拼音检索、多字段权重以及正反向过滤。

例如,查询“0xC000021A蓝屏”时,纯向量检索可能把字符不同但主题相近的错误码文档排在前面;关键词检索则能优先命中包含该错误码的文档。

行业怎么看

我们注意到,这类功能的商业价值不在于又多一个检索按钮,而在于让企业能够把业务规则纳入检索过程。标题、别名和正文可以设置不同权重,“二手”“翻新”等词可以在排序前直接排除,减少答案建立在错误资料上的概率。

但关键词检索也有边界:分词规则可能切错生僻字和古文,多音字会产生多个拼音候选;字段权重仍依赖业务人员设定,错误配置会让高频但不重要的字段压过标题。值得注意的是,来源主要是产品实践文章,缺少第三方基准和不同业务规模的独立验证。其“万亿级向量规模、毫秒级响应”等能力,也不等于所有关键词查询都能在真实数据中稳定达到同等效果。

对普通人的影响

对企业 IT:知识库、客服和内部搜索可以同时保留语义检索与精确匹配,不必先承担替换现有检索系统的成本。但上线前仍需用真实错误码、型号和业务黑名单测试召回结果。

对个人职场:AI 搜索将更擅长定位具体文档,而不是只给出主题相近的参考材料。使用者需要检查来源与匹配字段,尤其不能把相似语义当作事实一致。

对消费市场:商品搜索会更容易找准型号,也更能执行“全新”“官方”等筛选条件;同时,企业也可能把过滤权重包装成更精准的推荐结果,消费者仍需留意排序规则。

来源: juejin.cn