Cloudflare Worldedge community field guide

回顧版月刊 / 2025-03

Vectorize:Retrieval 從 evaluation set 開始

Embeddings、metadata、chunking、filters 與 ranking 必須以真實問題量測。

期號
15 / 32
首次發布
來源查核
檔案誠信

月份代表課程編排位置;本文首次發布於 2026-08-10,不冒充歷史發布紀錄或過往活動。

01 / DECISION

何時值得加入這個 primitive

當 semantic similarity 比 exact lookup 更有價值,且你能定義好結果時使用 Vectorize。

02 / ARCHITECTURE

建立最小且站得住腳的路徑

選定一個 embedding model 與 dimension、建立 stable document IDs、版本化 chunks 與 metadata,再於 generation 前評估 top-k retrieval。

  1. 01先命名 contract

    當 semantic similarity 比 exact lookup 更有價值,且你能定義好結果時使用 Vectorize。

  2. 02只加入一個 primitive

    選定一個 embedding model 與 dimension、建立 stable document IDs、版本化 chunks 與 metadata,再於 generation 前評估 top-k retrieval。

  3. 03保留 failure evidence

    維護帶 expected documents 的 labeled queries、量測 recall 與 irrelevant hits,並測試 deletion 與 tenant filters。

03 / REPRODUCE

有證據,再有信心

維護帶 expected documents 的 labeled queries、量測 recall 與 irrelevant hits,並測試 deletion 與 tenant filters。

npx wrangler vectorize list

04 / BOUNDARY

Production boundary

Vector database 不保證 factual answer;stale index、weak chunks 與缺少 access filter 可能造成自信失敗或資料暴露。

05 / FIRST-PARTY SOURCES

讓第一方來源保持權威

產品行為、限制、價格與供應狀態會改變;採取行動前請重新核對這些來源。

01 / SOURCECloudflare Vectorizehttps://developers.cloudflare.com/vectorize/