Revert "WIP(kbdb): 語意搜尋零命中的排查——⚠️ 被總管中途叫停,未完成驗證"
This reverts commit af3edff856.
This commit is contained in:
@@ -1860,7 +1860,7 @@ export async function buildDiagnostics(env: Bindings, tenant: string): Promise<D
|
||||
| { success?: boolean; enabled?: boolean; pending?: number; embedded?: number }
|
||||
| null;
|
||||
const selftestBody = (await selftestRes.json().catch(() => null)) as
|
||||
| { success?: boolean; enabled?: boolean; tested?: boolean; passed?: boolean | null; filter_blind?: boolean | null; note?: string }
|
||||
| { success?: boolean; enabled?: boolean; tested?: boolean; passed?: boolean | null; note?: string }
|
||||
| null;
|
||||
embedding = {
|
||||
checked: true,
|
||||
@@ -1871,13 +1871,6 @@ export async function buildDiagnostics(env: Bindings, tenant: string): Promise<D
|
||||
ran: selftestBody?.tested ?? false,
|
||||
// 三態:true=能搜到自己 / false=搜不到自己(index 收錄有缺)/ null=還沒東西可測或模組未開
|
||||
found_itself: selftestBody?.tested ? (selftestBody?.passed ?? null) : null,
|
||||
// 🔴 2026-08-11(Arcrun#85 D70):found_itself:false 有**兩種處方相反**的成因,
|
||||
// 光看布林分不出來,而 leo21c 就是照著錯的處方(只 reindex)永遠修不好。
|
||||
// true =不帶條件搜得到、一帶歸屬條件就搜不到 ⇒ Vectorize metadata 過濾是死的
|
||||
// (該 index 上沒建 metadata index)⇒ **先建 index 再 reindex**
|
||||
// false=怎麼查都搜不到 ⇒ 向量不在現役 index ⇒ reindex 才對
|
||||
// 讓機器能直接分支,不必去解析 note 的文字。
|
||||
filter_blind: selftestBody?.tested ? (selftestBody?.filter_blind ?? null) : null,
|
||||
note: selftestBody?.note ?? '',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user