Skip to content

notes: 跨会话检索 4 类方案卡 - #141

Open
joyehuang wants to merge 1 commit into
mainfrom
0926-session-search-approaches
Open

notes: 跨会话检索 4 类方案卡#141
joyehuang wants to merge 1 commit into
mainfrom
0926-session-search-approaches

Conversation

@joyehuang

@joyehuang joyehuang commented Sep 1, 2026

Copy link
Copy Markdown
Owner

grep 脚本/sessiongrep/向量/mem0 四类对比 / recall 问题不是语义搜索问题(及后来的修正)/ CLI+扩展双层选择。

止步 PR 不合并。bun run check 0 errors。


Summary by cubic

Adds a research note on cross-session retrieval approaches and fixes a TypeScript cast in SiteStats.astro.

The note compares 4 solution categories (grep scripts, SQLite+FTS5, vector search, built-in memory layers) and records the conclusion that most cross-session queries are recall problems, not semantic search problems. The chosen architecture is SQLite+FTS5 with a custom pi adapter, delivered as a CLI plus extension dual-layer.

Bug Fixes

  • Casts the Neon query result type in SiteStats.astro so branches cut from main pass checks.

Written for commit 5411562. Summary will update on new commits.

Review in cubic

includes SiteStats.astro neon type fix (same as #118) for clean check on
branches cut from main
@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
blog Ready Ready Preview Sep 1, 2026 6:32pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/content/notes/0926-session-search-approaches.md">

<violation number="1" location="src/content/notes/0926-session-search-approaches.md:4">
P3: This is the only note without an English mirror (xxx.en.md). Every other note in the collection ships one, feeding the notesEn collection and /en/notes routes, so this research note will be invisible to English readers. Add a paired .en.md translation for consistency with the rest of the collection.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

---
title: 跨会话检索的 4 类方案:recall 问题不是语义搜索问题
description: 自建 session search 前的完整方案调研——grep 脚本 / SQLite+FTS5 索引 / 向量语义检索 / 内置记忆层四类的代表项目、优劣与取舍;核心判断:「大多数查询不是语义搜索问题,是 recall 问题」;以及 CLI + 扩展双层的最终选择理由。
date: 2026-09-02

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: This is the only note without an English mirror (xxx.en.md). Every other note in the collection ships one, feeding the notesEn collection and /en/notes routes, so this research note will be invisible to English readers. Add a paired .en.md translation for consistency with the rest of the collection.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/content/notes/0926-session-search-approaches.md, line 4:

<comment>This is the only note without an English mirror (xxx.en.md). Every other note in the collection ships one, feeding the notesEn collection and /en/notes routes, so this research note will be invisible to English readers. Add a paired .en.md translation for consistency with the rest of the collection.</comment>

<file context>
@@ -0,0 +1,66 @@
+---
+title: 跨会话检索的 4 类方案:recall 问题不是语义搜索问题
+description: 自建 session search 前的完整方案调研——grep 脚本 / SQLite+FTS5 索引 / 向量语义检索 / 内置记忆层四类的代表项目、优劣与取舍;核心判断:「大多数查询不是语义搜索问题,是 recall 问题」;以及 CLI + 扩展双层的最终选择理由。
+date: 2026-09-02
+updatedDate: 2026-09-02
+tags:
</file context>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant