Data engineering specialist for AI workloads: RAG ingestion pipelines, document chunking, PII detection, data quality scoring, and Azure Data Factory orchestration.
Ships in frootai-deploy-infra-skills. Installing the plugin adds it to Claude Code.
Data engineering specialist for AI workloads. Designs RAG ingestion pipelines, document chunking strategies, ETL/ELT patterns, PII detection with Presidio, data quality scoring, and Azure Data Factory orchestration.
| Mistake | Why Wrong | Correct Approach |
|---|---|---|
| Chunks documents by fixed character count | Splits mid-sentence, loses context, breaks tables | Semantic chunking: split by heading/paragraph, preserve tables, overlap 128 tokens |
| Sends entire document as single chunk | Exceeds context window, diluted relevance, poor retrieval | Chunk to 512-1024 tokens with overlap, embed each chunk separately |
| Ignores PII in RAG documents | PII leaks into search results and LLM responses | Presidio scan before indexing, redact or pseudonymize sensitive entities |
| Full re-index on every change | Expensive, slow, unnecessary for small updates | Incremental indexing with change tracking (Cosmos change feed, blob metadata) |
| No data quality checks | Bad data → bad embeddings → bad search results | Quality gates: completeness > 90%, encoding valid, no empty chunks |
| Stores raw and processed data together | Can't reproduce pipeline, no lineage | Data Lake zones: raw → cleaned → enriched → indexed |
from azure.ai.documentintelligence import DocumentIntelligenceClient
from azure.identity import DefaultAzureCredential
# Step 1: Extract text from documents
doc_client = DocumentIntelligenceClient(endpoint, DefaultAzureCredential())
async def ingest_document(blob_url: str, tenant_id: str) -> list[dict]:
# Extract with Document Intelligence
poller = await doc_client.begin_analyze_document(
"prebuilt-layout", AnalyzeDocumentRequest(url_source=blob_url))
result = await poller.result()
# Step 2: Chunk with overlap
chunks = semantic_chunk(
text=result.content,
max_tokens=512,
overlap_tokens=128,
preserve_tables=True,
preserve_headings=True
)
# Step 3: PII scan and redact
from presidio_analyzer import AnalyzerEngine
from presidio_anonymizer import AnonymizerEngine
analyzer = AnalyzerEngine()
anonymizer = AnonymizerEngine()
clean_chunks = []
for chunk in chunks:
pii_results = analyzer.analyze(text=chunk.text, language="en",
entities=["PHONE_NUMBER", "EMAIL_ADDRESS", "PERSON", "CREDIT_CARD"])
if pii_results:
chunk.text = anonymizer.anonymize(text=chunk.text, analyzer_results=pii_results).text
clean_chunks.append(chunk)
# Step 4: Generate embeddings (batched)
embeddings = await batch_embed(
texts=[c.text for c in clean_chunks],
batch_size=16 # Max 16 per API call
)
# Step 5: Index to AI Search
documents = [{
"id": f"{blob_url}-{i}",
"content": chunk.text,
"contentVector": embedding,
"source": blob_url,
"tenant_id": tenant_id,
"chunk_index": i
} for i, (chunk, embedding) in enumerate(zip(clean_chunks, embeddings))]
await search_client.upload_documents(documents)
return documents
def semantic_chunk(text: str, max_tokens: int = 512, overlap_tokens: int = 128,
preserve_tables: bool = True, preserve_headings: bool = True) -> list[Chunk]:
"""Split text into semantic chunks respecting document structure."""
import tiktoken
enc = tiktoken.encoding_for_model("gpt-4o")
# Split by structural elements first
sections = split_by_headings(text) if preserve_headings else [text]
chunks = []
for section in sections:
tokens = enc.encode(section)
if len(tokens) <= max_tokens:
chunks.append(Chunk(text=section, tokens=len(tokens)))
else:
# Split large sections by paragraph with overlap
paragraphs = section.split("\n\n")
current = []
current_len = 0
for para in paragraphs:
para_tokens = len(enc.encode(para))
if current_len + para_tokens > max_tokens and current:
chunk_text = "\n\n".join(current)
chunks.append(Chunk(text=chunk_text, tokens=current_len))
# Keep last paragraph as overlap
overlap = current[-1] if len(enc.encode(current[-1])) <= overlap_tokens else ""
current = [overlap] if overlap else []
current_len = len(enc.encode(overlap)) if overlap else 0
current.append(para)
current_len += para_tokens
if current:
chunks.append(Chunk(text="\n\n".join(current), tokens=current_len))
return chunks
def validate_chunks(chunks: list[Chunk]) -> QualityReport:
"""Validate chunk quality before indexing."""
issues = []
for i, chunk in enumerate(chunks):
if len(chunk.text.strip()) < 50:
issues.append(f"Chunk {i}: too short ({len(chunk.text)} chars)")
if chunk.tokens > 1024:
issues.append(f"Chunk {i}: exceeds max tokens ({chunk.tokens})")
if not chunk.text.strip():
issues.append(f"Chunk {i}: empty content")
if detect_encoding_issues(chunk.text):
issues.append(f"Chunk {i}: encoding error detected")
return QualityReport(
total=len(chunks),
passed=len(chunks) - len(issues),
pass_rate=(len(chunks) - len(issues)) / len(chunks),
issues=issues,
gate_passed=len(issues) / len(chunks) < 0.1 # < 10% failure rate
)
| Scenario | Use This Agent | Don't Use |
|---|---|---|
| RAG document ingestion pipeline | ✅ | |
| Chunking strategy design | ✅ | |
| PII detection and redaction | ✅ | |
| Search index configuration | ❌ Use fai-azure-ai-search-expert | |
| LLM prompt engineering | ❌ Use fai-prompt-engineer |
| Play | How This Agent Helps |
|---|---|
| 01 — Enterprise RAG | Full ingestion pipeline, chunking, embeddings |
| 06 — Document Intelligence | Document parsing, table extraction, OCR |
| 13 — Fine-Tuning Workflow | Training data preparation, JSONL generation |
What the agent file sets; muted values are Claude Code's defaults
7-day visitors to each agent page
Other plugins' agents for the same job
@agent-frootai-deploy-infra-skills:FAI Data Engineerfrom frootai-deploy-infra-skills
npx claudepluginhub frootai/frootai --plugin frootai-deploy-infra-skills327 agents in this plugin
AGENTSAGENTS.md — FrootAI Standalone Agents (Auto-Generated Catalog)> **GENERATED FILE — DO NOT EDIT BY HAND.** Re-run `node scripts/generate-agents-md.js` to refresh.FAI A2A ExpertAgent-to-Agent (A2A) protocol specialist — Google's agent interop standard, AgentCard discovery, task lifecycle, streaming artifacts, push notifications, and multi-agent communication patterns.FAI Accessibility ExpertAccessibility specialist — WCAG 2.2 AA/AAA compliance, ARIA 1.2 patterns, screen reader optimization, keyboard navigation, focus management, and inclusive design for AI chatbots and dashboards.FAI ADR WriterADR writer — documents architecture decisions with MADR 3.0 template, context, alternatives, trade-off matrices, consequences, and WAF pillar impact analysis.FAI Agentic RetrieverAgentic retrieval specialist — autonomous source selection, iterative refinement with relevance scoring, multi-hop reasoning, query decomposition, and grounded answer synthesis with inline citations.FAI AG-UI ExpertAG-UI protocol specialist — Agent-User Interaction standard, event-based rendering, streaming state updates, tool call lifecycle, and frontend integration for AI agent experiences.