Build your first CocoIndex pipeline from a local folder into a vector DB
Когда использовать: You've read the CocoIndex homepage and want Claude to scaffold a working flow instead of copy-pasting tutorials.
Предварительные требования
- Skill cloned to ~/.claude/skills/cocoindex-claude — git clone https://github.com/cocoindex-io/cocoindex-claude ~/.claude/skills/cocoindex-claude
- cocoindex Python package installed — pip install cocoindex
Поток
-
Describe the pipelineUse the cocoindex skill — scaffold a flow that watches ./docs, chunks markdown, embeds with OpenAI, writes to Qdrant.✓ Скопировано→ Claude generates a flow.py with @cocoindex.flow_def and the right source/transform/export calls
-
Run and verifyNow show me the exact CLI commands to build, run, and incrementally update this flow.✓ Скопировано→ cocoindex setup / update / eval commands in the correct order
Итог: A working flow.py plus the commands to run it — no more guessing at the CocoIndex decorator surface.
Подводные камни
- Claude invents APIs that don't exist in CocoIndex — Explicitly prompt 'use only APIs documented in the cocoindex skill' — hallucination drops when the skill is in scope