從本機資料夾建構第一條 CocoIndex 管道並寫入向量資料庫
何時使用: 你已閱讀過 CocoIndex 首頁,希望讓 Claude 建立可運作的流程骨架,而非複製貼上教學範例。
步驟
-
描述管道需求Use the cocoindex skill — scaffold a flow that watches ./docs, chunks markdown, embeds with OpenAI, writes to Qdrant.✓ 已複製→ Claude 產生包含 @cocoindex.flow_def 及正確來源/轉換/匯出呼叫的 flow.py
-
執行並驗證Now show me the exact CLI commands to build, run, and incrementally update this flow.✓ 已複製→ 以正確順序列出 cocoindex setup / update / eval 指令
結果: 一個可運作的 flow.py 及執行所需的指令——不再需要猜測 CocoIndex 的裝飾器介面。
注意事項
- Claude 虛構了 CocoIndex 中不存在的 API — 明確提示「只使用 cocoindex skill 文件中記載的 API」——技能在範圍內時,幻覺現象會大幅降低
搭配使用: filesystem