Auto-sync: 2026-04-16 17:30
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
---
|
||||
title: "语义搜索"
|
||||
type: concept
|
||||
tags: [vector-search, memory, ai-tools]
|
||||
date: 2026-04-16
|
||||
---
|
||||
|
||||
## Definition
|
||||
通过向量表示(Embedding)理解查询和文档的语义含义,而非字面关键词匹配,实现"按意思查找"而非"按字找词"。
|
||||
|
||||
## Example
|
||||
查询"what caching solution did we pick?" 能找到讨论 Redis/Memcached 决策的记忆,即使记忆文件中从未出现 "caching" 一词。
|
||||
|
||||
## vs 关键词搜索
|
||||
| 维度 | 关键词搜索 | 语义搜索 |
|
||||
|------|-----------|----------|
|
||||
| 原理 | 倒排索引 BM25 | 向量相似度 |
|
||||
| 匹配 | 精确词项 | 语义最近邻 |
|
||||
| 同义词 | 漏检 | 命中 |
|
||||
| 泛化 | 差 | 强 |
|
||||
|
||||
## Connections
|
||||
- [[memsearch]]:语义搜索实现工具
|
||||
- [[混合搜索]]:语义搜索与关键词搜索的融合
|
||||
- [[QMD]]:BM25 关键词搜索工具(与语义搜索互补)
|
||||
Reference in New Issue
Block a user