This skill scaffolds a production-ready RAG pipeline without LangChain, enabling fast document ingestion, semantic search, and streaming API endpoints.
npx playbooks add skill mrowaisabdullah/ai-humanoid-robotics --skill rag-pipeline-builder
Quickly scaffold and implement production-ready RAG systems with a pure, lightweight stack (No LangChain):
Use this skill when:
Uses a custom RecursiveTextSplitter implementation that mimics LangChain's logic but without the dependency bloat.
Strategy:
\n\n), then lines (\n), then sentences (. ) to respect document structure.tiktoken for accurate sizing compatible with OpenAI models.Implementation Template:
# See scripts/chunking_example.py for complete implementation
class IntelligentChunker:
"""
Markdown-aware chunking that preserves structure (LangChain-free)
"""
def __init__(self, chunk_size=1000, overlap=200):
# ... (uses standalone RecursiveTextSplitter)
Direct usage of AsyncOpenAI client for maximum control and performance.
from openai import AsyncOpenAI
class EmbeddingGenerator:
def __init__(self, api_key: str):
self.client = AsyncOpenAI(api_key=api_key)
async def embed_batch(self, texts: list[str]) -> list[list[float]]:
# Direct API call with batching logic
response = await self.client.embeddings.create(
model="text-embedding-3-small",
input=batch,
)
return [item.embedding for item in response.data]
Direct integration with qdrant-client for vector operations.
from qdrant_client import QdrantClient
class QdrantManager:
def upsert_documents(self, documents: list[dict]):
# Batch upsert logic
self.client.upsert(
collection_name=self.collection_name,
points=points,
)
Native FastAPI streaming response handling.
from fastapi.responses import StreamingResponse
@app.post("/api/v1/chat")
async def chat_endpoint(request: ChatRequest):
# ... retrieval logic ...
return StreamingResponse(generate(), media_type="text/plain")
pip install -r templates/requirements.txt
(Note: langchain is NOT required)
# Ingest markdown files using the pure-python ingestor
python scripts/ingest_documents.py docs/ --openai-key $OPENAI_API_KEY
uvicorn templates.fastapi-endpoint-template:app --reload
Removing LangChain provides:
When this skill is invoked, provide:
With this skill: ~45 minutes to generate a highly optimized, custom RAG pipeline without framework lock-in.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.