RAG Pipeline avatar

RAG Pipeline

Pricing

from $5.00 / 1,000 results

Go to Apify Store
RAG Pipeline

RAG Pipeline

One-click RAG pipeline: chunks text, generates embeddings, and stores vectors in Pinecone or Qdrant. Provide your content and API keys -- the orchestrator handles the rest.

Pricing

from $5.00 / 1,000 results

Rating

0.0

(0)

Developer

mick_

mick_

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

2

Monthly active users

3 days ago

Last modified

Share

Unified RAG Pipeline

One-click RAG pipeline: chunk text, generate embeddings, and store vectors — all in a single actor.

Merges 4 separate actors (rag-content-chunker, rag-embedding-generator, rag-vector-store-writer, rag-pipeline) into one unified pipeline. No sub-actor calls — everything runs in-process for maximum reliability and simplicity.

Features

  • 3 chunking strategies: recursive (paragraph→sentence→word), markdown (header-aware), sentence (boundary-only)
  • Token-aware splitting: Uses tiktoken with cl100k_base encoding (same as text-embedding-3-small/large)
  • 2 embedding providers: OpenAI (text-embedding-3-small, text-embedding-3-large, ada-002) and Cohere (v3 models)
  • 2 vector DB providers: Pinecone and Qdrant Cloud (auto-creates collections)
  • Exponential backoff retry: All API calls retry on rate limits and server errors
  • SSRF protection: Hardcoded API endpoints, validated Qdrant URLs, blocked private IPs
  • File URL support: Fetch .txt, .md, .html, and .pdf files over HTTPS
  • Dataset chaining: Read from any Apify crawler/crawler dataset
  • Pay-per-event pricing: $5.00 per 1,000 chunks processed end-to-end

Input

FieldTypeDefaultRequired
textstringNo*
source_dataset_idstringNo*
file_urlstringNo*
file_urlsstring[]No*
chunking_strategyenumrecursiveNo
chunk_sizeint512No
chunk_overlapint64No
embedding_api_keystringYes
embedding_providerenumopenaiNo
embedding_modelstringtext-embedding-3-smallNo
embedding_batch_sizeint128No
vector_db_api_keystringYes
vector_db_providerenumpineconeNo
index_namestringYes
qdrant_urlstringIf Qdrant
pinecone_namespacestring""No
qdrant_distance_metricenumCosineNo

*One content source required: text, file_url, file_urls, or source_dataset_id.

Pricing

This actor uses pay-per-event (PPE) pricing.

$5.00 per 1,000 chunks processed end-to-end. This single fee replaces the previous 3 separate charges (chunker + embedder + writer) and the orchestrator fee. You only pay for chunks actually produced.

  • Actor Start: $0.00005 per run (charged once per run)
  • Platform usage (proxy/compute): billed to your account

How It Works

Input text → [Chunker] → chunks → [Embedder] → vectors → [Vector DB Writer] → Pinecone/Qdrant
All in-process, single actor run