研究與情報

PublicClaude 子代理

Pinecone RAG

多數 RAG 展示看起來沒問題,直到模型開始憑訓練記憶回答,而不是從你的文件裡找答案。這個基礎範例讓回答回歸誠實。

sonnet3 天PineconeOpenAILangChainPython
ClaudeClaude
ROI for
README.md

為什麼選擇此子代理

多數 RAG 展示看起來沒問題,直到模型開始憑訓練記憶回答,而不是從你的文件裡找答案。這個基礎範例讓回答回歸誠實。

文件經切片後嵌入 Pinecone 的 namespace;每個問題擷取最接近的切片,模型只根據這些內容作答。每個回答都標註引用的切片來源,若找不到相關內容,會直接說明,而非憑空捏造。這是一個乾淨的起點,你可以自行擴充。

運作方式

    • Read

      Used at step 01 to kick off the pipeline.

    • Write

      Used at step 01 to kick off the pipeline.

    • WebFetch

      Used at step 01 to kick off the pipeline.

    • WebSearch

      Used at step 01 to kick off the pipeline.

輸出範例

json
// Sample output
// (generated when the pipeline finishes)

Answer questions from Pinecone-retrieved chunks only, citing the chunk IDs used and refusing when context is missing.

Unlock the rest

The full agent definition, install snippet, and starter task are gated for community members.

Members get the full `.md` agent file, the npm / pnpm install one-liners, a starter prompt that we've tuned against real runs, and the open-source repo when this automation ships there. One email, magic link, done.