RAG Vectorize AI Search

Build retrieval augmented generation on Cloudflare with AI Search, Vectorize, Workers AI embeddings, chunking, metadata filters, citations, ingestion pipelines, reranking, and grounded answer generation. Use when implementing RAG, semantic search, or document QA.

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add zllovesuki/cloudflare-agent-skills --skill rag-vectorize-ai-search
Manual install
git clone --depth 1 https://github.com/zllovesuki/cloudflare-agent-skills.git /tmp/cloudflare-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/cloudflare-agent-skills/skills/rag-vectorize-ai-search ~/.claude/skills/rag-vectorize-ai-search

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# RAG, Vectorize, and AI Search

Use this skill for retrieval augmented generation, semantic search, and document Q&A.

## Choose AI Search vs Vectorize

- Use **AI Search** when you want managed ingestion, retrieval, hybrid search/reranking features, and simpler RAG setup.
- Use **Vectorize** when you need direct control over embedding generation, chunking, metadata, index operations, and query flow.
- Store source documents and metadata outside the index. Retrieval indexes are derived data.

## RAG pipeline

```text
Upload document
  -> R2 stores original bytes
  -> D1 stores document metadata and ingestion status
  -> Queue/Workflow parses and chunks
  -> Workers AI embeds chunks
  -> Vectorize or AI Search indexes chunks with metadata
  -> Query embeds/retrieves top chunks
  -> LLM answers only from retrieved context
  -> Response includes citations/source IDs
```

## Chunking rules

- Chunk by semantic boundaries when possible: headings, paragraphs, sections.
- Include overlap for long passages.
- Store `documentId`, `chunkId`, `tenantId`, `sourceUrl`, `title`, and offsets/section metadata.
- Keep chunks short enough to fit prompt budgets after retrieving multiple results.
- Re-embed when chunking, model, or source text changes.

## Vectorize index sketch
Read the full skill on GitHub

Details

Skill name
rag-vectorize-ai-search
Path
skills/rag-vectorize-ai-search/SKILL.md
Repo updated
28 April 2026

FAQ

What does the RAG Vectorize AI Search skill do?

Build retrieval augmented generation on Cloudflare with AI Search, Vectorize, Workers AI embeddings, chunking, metadata filters, citations, ingestion pipelines, reranking, and grounded answer generation. Use when implementing RAG, semantic search, or document QA.

How do I install the RAG Vectorize AI Search skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add zllovesuki/cloudflare-agent-skills --skill rag-vectorize-ai-search. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is RAG Vectorize AI Search popular?

It lives in zllovesuki/cloudflare-agent-skills, which has 9 GitHub stars and 0 forks.

Related skills

Agents

9

zllovesuki/cloudflare-agent-skills

Build Cloudflare Agents SDK applications for autonomous multi-step tool use, AIChatAgent chat agents, Durable Object-backed state, tools, scheduling, callable methods, WebSockets, SQL state, and constrained agent behavior. Use when RAG or Workflows are not enough.

AI, LLMs & Agents

Cloudflare Architecture

9

zllovesuki/cloudflare-agent-skills

Choose Cloudflare Developer Platform primitives and architecture shapes before writing code. Use for Cloudflare Workers, Durable Objects, D1, R2, Queues, Workflows, Containers, Realtime, Workers AI, Vectorize, AI Search, Agents, cost, limits, and migration decisions.

Software Development

Containers

9

zllovesuki/cloudflare-agent-skills

Decide when to use Cloudflare Containers instead of Workers and design container-backed workloads, native binaries, long-running processes, image processing, larger runtime shapes, and Worker frontends. Use as an escape hatch when Workers constraints do not fit.

DevOps & Cloud

Storage Selection

9

zllovesuki/cloudflare-agent-skills

Choose the right Cloudflare storage primitive: D1, R2, KV, Durable Object storage, Hyperdrive, Vectorize, AI Search, cache, or external databases. Use before modeling data, writing migrations, or deciding consistency/cost trade-offs.

AI, LLMs & Agents

Patterns

9

zllovesuki/cloudflare-agent-skills

Apply Cloudflare reference architecture patterns for CRUD SaaS, collaboration, async exports, AI assistants, RAG, media, webhook ingestion, and migration. Use to turn requirements into an implementation pattern and primitive map.

AI, LLMs & Agents

Table Design Advisor

9

shisuidata/ss-data-skills

Use when designing or reviewing a data warehouse table schema. Advises on warehouse layer, table grain, fact or dimension modeling, fields, primary key, partitioning, update strategy, lifecycle, naming, downstream usage, and data quality checks. 中文触发词:表设计、数仓建模、表结构审查、表粒度、分区设计。

AI, LLMs & Agents

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.