VikingDB supports BM25 keyword retrieval alongside vector search
A report describes VikingDB supporting BM25-based keyword retrieval alongside vector retrieval in the same database. It covers analyzers for tokenization, normalization, rare characters and pinyin, multi-field weighting, positive and negative filters, and result highlighting. The report also demonstrates configuration through the UpsertData and SearchByKeywords APIs with five Windows blue-screen documents, showing how keyword matching can distinguish error codes that semantic similarity may rank differently.
Combining semantic and exact lexical matching in one database can help applications handle queries involving names, model numbers, and identifiers that differ by only one character. The report presents this as a way to support both broad semantic discovery and precise matching without maintaining separate retrieval systems.
引言
用户搜索内容时,既可能用自然语言描述问题,也可能直接输入关键词。向量检索按语义相似度匹配文本,即使用词不同,也能找到意思相近的内容。
但有些查询需要区分具体的名称、型号或编号。这类词语即使只差一个字符,也可能指向不同的对象,相关文档讨论的主题却很接近。语义相似并不等于关键词匹配。
Windows 蓝屏错误手册就是一个例子。下面五篇文档都在讲蓝屏,具体的错误码、故障原因和处理步骤却不一样。
#VikingDB#ByteDance#Volcano Engine#OpenViking#Doubao Embedding Vision