embedding-pipeline-builder

Builds document embedding pipelines with chunking, vector indexing, and semantic retrieval.

2|Updated Jun 5, 2026
One-click install
npx skills add https://github.com/sathishssj3/NexVR-Engine --skill embedding-pipeline-builder-sathishssj3
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: embedding-pipeline-builder
Source: https://github.com/sathishssj3/NexVR-Engine/tree/main/.agents/skills/embedding-pipeline-builder
Command: npx skills add https://github.com/sathishssj3/NexVR-Engine --skill embedding-pipeline-builder-sathishssj3

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, p-limit, pdf-parse, mammoth, jsdom, @mozilla/readability.

What problem does it solve? Converting raw documents into searchable vector embeddings requires coordinating loaders, preprocessors, chunkers, embedders, and vector stores, which is error-prone when built from scratch. ## Core Features & Use Cases - Multi-Source Document Loading: Ingest TXT, Markdown, PDF, DOCX, JSON files, directories, and web pages via Readability-based extraction. - Smart Text Chunking: Split documents with recursive separator-based chunking or semantic chunking that groups sentences by embedding similarity. - Batch Embedding & Indexing: Generate embeddings with the OpenAI API using batched, concurrency-limited requests and store them in a vector database for semantic search. - Use Case: Ingest a folder of product documentation and a docs website, then query the resulting index with natural language questions like "How do I configure authentication?" to power a RAG knowledge base. ## Quick Start Ask the AI to build an embedding pipeline that ingests the ./documents directory, chunks the text with 1000-character chunks and 200-character overlap, generates OpenAI embeddings, and indexes them for semantic search.

Frequently Asked Questions about embedding-pipeline-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a document embedding pipeline for RAG?▼

Build a RAG embedding pipeline by loading documents, preprocessing the text, splitting it into chunks with overlap, generating embeddings with a model like text-embedding-3-small, and upserting the vectors into a vector store. The pipeline then supports semantic queries against the indexed chunks.

What chunk size should I use for text embeddings?▼

Use chunk sizes between 500 and 1500 characters to balance context against noise, with 10-20% overlap to prevent context loss at boundaries. Recursive chunking with paragraph, sentence, and word separators preserves natural text structure.

What is the difference between recursive and semantic chunking?▼

Recursive chunking splits text using a hierarchy of separators like paragraphs and sentences until chunks fit the target size. Semantic chunking embeds each sentence and groups consecutive sentences by cosine similarity, producing topically coherent chunks at higher compute cost.

Can I load PDF and DOCX files into an embedding pipeline?▼

Yes, the document loader extracts text from PDF files using pdf-parse and from DOCX files using mammoth, alongside plain text, Markdown, and JSON. Web pages are loaded through Readability to strip boilerplate before extraction.

How do I avoid OpenAI embedding API rate limits?▼

Batch embedding requests with up to 100 chunks per API call and limit concurrency with p-limit, for example to 5 parallel batches. This reduces total API calls while keeping throughput within rate limit boundaries.

Why does semantic search return irrelevant chunks?▼

Irrelevant results usually come from chunks that are too large, missing overlap, or poorly preprocessed text. Tune chunk size, add metadata filtering, and consider hybrid search combining vector similarity with keyword matching to improve retrieval accuracy.