Replies: 2 comments
-
|
PicoClaw 没有使用专门的向量库/向量数据库。实际情况如下: 1. 依赖中的 SQLitego.mod 中确实引用了 SQLite 驱动:
但这主要用于其他功能,而非向量存储。 2. 记忆/会话存储实际实现
// JSONLStore implements Store using append-only JSONL files.
//
// Each session is stored as two files:
// {sanitized_key}.jsonl — one JSON-encoded message per line
// {sanitized_key}.meta.json — session metadata记忆功能使用 JSONL 文件(JSON Lines 格式)存储,不是 SQLite,更不是向量数据库。 3. 唯一的"相似性"搜索
// SearchCache provides lightweight caching for search results.
// It uses trigram-based similarity to match similar queries
type SearchCache struct {
entries map[string]*cacheEntry
...
}
type cacheEntry struct {
query string
trigrams []uint32 // 三元组哈希
results []SearchResult
}项目中唯一的相似性匹配是 trigram(三元组)+ Jaccard 相似度(简单文本指纹算法),用于搜索结果缓存去重。这不是向量嵌入/语义搜索。 4. 关于 "SQLite with vector embeddings" 的说法
warnings = append(warnings, "Memory backend config not migrated - PicoClaw uses SQLite with vector embeddings")这句话出现在迁移工具中,是从旧项目 OpenClaw 迁移到 PicoClaw 时的警告信息。它可能:
结论
如果未来需要向量功能,可能需要自行集成 SQLite 的 vector 扩展(如 sqlite-vec)或外部向量数据库。 |
Beta Was this translation helpful? Give feedback.
-
|
没有清晰规划和明确用途之前,不建议先引入向量库。ZeroClaw 已经证明过这一点: 先把记忆的实际用途和使用路径说清楚,再决定要不要做向量检索。 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
用的什么向量库?
Beta Was this translation helpful? Give feedback.
All reactions