地端 provider 接縫(實證成立):embeddings→Ollama、Vectorize→sqlite-vec——請出 config 可切換的 seam SDD #44

Open
opened 2026-07-12 16:17:09 +00:00 by Leo · 0 comments
Owner

[總管] 來源:arcrun-rag P1 地端 spike(Leo/arcrun-rag system-dev/docs/3-specs/rag-wave1/p1-spike-report.md G2/G3)。product-plan §3.2.1 預判的兩面牆,spike 實證確認:

  1. Workers AI embeddings 本機不可用(binding 標 remote,官方明言 local dev 也打真帳號計費)→ 地端 embeddings 只能 Ollama(bge-m3)接縫。
  2. Vectorize 無本機模擬;kbdb semantic 查詢已優雅降級回 keyword+capability_hint(好行為,保持)→ 地端語意搜尋需 sqlite-vec 接縫。

請求:兩者是同一個 seam(embed 產生+向量檢索),請 Arcrun 出 SDD——embed.ts 層 provider 可切換(config 選 workers-ai+vectorize / ollama+sqlite-vec),核心 API 不變(API-as-Wall 紅利,D6)。

定位:arcrun-rag 企業地端版(真空氣隔離客戶)的上游依賴;雲端版不受影響。P1 spike 已陽性(WASM 零件 miniflare 全通),此 seam 是地端版最後的大工程件。

[總管] 來源:arcrun-rag P1 地端 spike(`Leo/arcrun-rag` `system-dev/docs/3-specs/rag-wave1/p1-spike-report.md` G2/G3)。product-plan §3.2.1 預判的兩面牆,spike 實證確認: 1. **Workers AI embeddings 本機不可用**(binding 標 `remote`,官方明言 local dev 也打真帳號計費)→ 地端 embeddings 只能 Ollama(bge-m3)接縫。 2. **Vectorize 無本機模擬**;kbdb semantic 查詢已優雅降級回 keyword+`capability_hint`(好行為,保持)→ 地端語意搜尋需 sqlite-vec 接縫。 **請求**:兩者是同一個 seam(embed 產生+向量檢索),請 Arcrun 出 SDD——`embed.ts` 層 provider 可切換(config 選 workers-ai+vectorize / ollama+sqlite-vec),核心 API 不變(API-as-Wall 紅利,D6)。 **定位**:arcrun-rag 企業地端版(真空氣隔離客戶)的上游依賴;雲端版不受影響。P1 spike 已陽性(WASM 零件 miniflare 全通),此 seam 是地端版最後的大工程件。
Leo added the
s
backlog
label 2026-08-09 13:13:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Leo/Arcrun#44