Dataset to Vector DB - Pinecone, Qdrant & pgvector RAG avatar

Dataset to Vector DB - Pinecone, Qdrant & pgvector RAG

Pricing

from $0.30 / 1,000 chunk embedded and upserteds

Go to Apify Store
Dataset to Vector DB - Pinecone, Qdrant & pgvector RAG

Dataset to Vector DB - Pinecone, Qdrant & pgvector RAG

Load Apify datasets, JSON, CSV or Markdown into your own Pinecone, Qdrant or Postgres pgvector (Supabase, Neon). Chunking, metadata, idempotent IDs, delta sync. Free local embeddings or your OpenAI key. Pay per chunk.

Pricing

from $0.30 / 1,000 chunk embedded and upserteds

Rating

0.0

(0)

Developer

Cemal Atakli

Cemal Atakli

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Categories

Features

Limited permissions

Share

Dataset to Vector DB: load Apify data into Pinecone, Qdrant and pgvector for RAG

Dataset to Vector DB turns crawled pages and scraped records into embeddings inside your own vector database. Point it at an Apify dataset (for example from Website Content Crawler or Website to Markdown), a JSON, CSV or Markdown file, or pasted JSON. The Actor then:

  1. chunks the text (Markdown-aware: headings, paragraphs, sentences, with overlap)
  2. embeds each chunk, free with a built-in local model or with your own OpenAI-compatible key
  3. upserts the chunks into Pinecone, Qdrant or Postgres pgvector (Supabase, Neon, RDS, self-hosted) with the metadata you choose
  4. syncs: deterministic IDs and content hashes, so a re-run only embeds new or changed chunks. It removes orphaned chunks and can delete pages that disappeared from the source.

You do not write glue code, run a LangChain script or keep a server running. It also works as a webhook step after every crawl.

Who it is for

  • RAG / chatbot builders: crawl docs or a help centre, then keep the vector index fresh on a schedule.
  • AI agencies: one reusable pipeline per client: crawler → this Actor → the client's Pinecone, Qdrant or Supabase.
  • Data teams: embed product catalogues, reviews, tickets or job posts for semantic search and deduplication.
  • Anyone testing embeddings: use the dry-run target None to get chunks and vectors back as a dataset (JSON/CSV) without any database.

Features

SourcesApify datasets (resource picker, works with {{resource.defaultDatasetId}} in integrations), JSON / JSON Lines / CSV / TSV URLs, raw Markdown/text URLs, pasted JSON
TargetsQdrant (Cloud or self-hosted), Pinecone (serverless, namespaces), Postgres + pgvector (Supabase, Neon, RDS, Cloud SQL...), or None (dry run to the dataset)
EmbeddingsLocal, no API key: bge-small-en-v1.5 (preloaded), bge-base-en-v1.5, all-MiniLM-L6-v2, multilingual paraphrase-multilingual-MiniLM-L12-v2, snowflake-arctic-embed-s, nomic-embed-text-v1.5. API: any OpenAI-compatible /embeddings endpoint (OpenAI, Mistral, Together, LiteLLM, Ollama...) with optional dimensions
ChunkingSize and overlap in characters, Markdown-aware (code fences kept intact, heading path stored per chunk), minimum chunk length
MetadataPick fields with dot paths and rename them (metadata.title:title). The chunk text is stored as text, plus doc_id, chunk_index, chunk_count, headings, content_hash, source_tag
Syncdelta (default) skips unchanged chunks for free. Orphan chunks are deleted when a page gets shorter. With a source tag, documents missing from the source can be deleted
Auto-createQdrant collection (cosine), Pinecone serverless index, or Postgres table with an HNSW cosine index, sized to the model's dimension. A dimension mismatch is detected before any write
SafetyCredentials are secret (encrypted) inputs. The Actor only reads the dataset you pick (Apify limited permissions). It stops at your max cost per run, and an affordability check happens before embedding

Quick start (1 click)

The prefilled input embeds the Crawlee README with the local model and target None. You get about 16 chunk rows with vectors in the dataset, and no database is needed. Then switch the target to your database:

{
"datasetIds": ["<your Website Content Crawler dataset ID>"],
"textFields": ["markdown", "text"],
"metadataFields": ["url", "metadata.title:title", "metadata.languageCode:language"],
"chunkSize": 1000,
"chunkOverlap": 150,
"embeddingProvider": "local",
"localModel": "BAAI/bge-small-en-v1.5",
"target": "qdrant",
"qdrantUrl": "https://YOUR-CLUSTER.cloud.qdrant.io:6333",
"qdrantApiKey": "********",
"collection": "docs",
"mode": "delta",
"sourceTag": "docs-site",
"deleteMissingDocuments": true
}

Pinecone: set target: "pinecone", pineconeApiKey, collection (index name) and optionally pineconeNamespace. A missing index is created as serverless (default aws / us-east-1). Supabase / Postgres: set target: "pgvector", postgresUrl (postgresql://user:pass@host:5432/postgres?sslmode=require; the pooler string works) and collection (table name, optionally schema.table).

Automate after every crawl

In your crawler task, go to Integrations → Connect Actor, choose this Actor and set "datasetIds": ["{{resource.defaultDatasetId}}"]. With mode: "delta" and a sourceTag, each scheduled crawl only pays for chunks that actually changed.

Output

Database targets: one row per document, plus a run summary in the key-value store (OUTPUT):

{"docId": "https://docs.example.com/install", "title": "Install", "status": "upserted", "chunks": 6, "upserted": 2, "skippedUnchanged": 4, "deletedOrphans": 1, "error": null, "source": "dataset:abc123"}
{"ok": true, "target": "qdrant", "collection": "docs", "model": "BAAI/bge-small-en-v1.5", "dimension": 384, "documents": 240, "chunks": 1310, "upserted": 96, "skippedUnchanged": 1214, "deletedOrphanChunks": 3, "deletedMissingDocVectors": 12, "chargedChunks": 96, "stoppedAtMaxCharge": false}

Dry run (target: "none"): one row per chunk:

{"id": "a585ecb02426232d7909d1a0-3", "docId": "https://raw.githubusercontent.com/apify/crawlee/master/README.md", "chunkIndex": 3, "chunkCount": 16, "text": "## Installation ...", "headings": ["Crawlee", "Installation"], "metadata": {"url": "...", "title": "..."}, "contentHash": "…", "model": "BAAI/bge-small-en-v1.5", "dimension": 384, "vector": [-0.0493, -0.0132, ...]}

What is stored in your database

TargetLayout
QdrantPoint ID = UUIDv5 of the chunk ID, cosine vector, payload = your metadata + text, doc_id, chunk_id, chunk_index, chunk_count, headings, content_hash, source_tag (keyword indexes on doc_id, source_tag)
PineconeID = [sourceTag#]<doc-hash>-<n>, metadata as above (nested values JSON-encoded, text trimmed to stay under 40 KB)
pgvectorTable id text pk, doc_id, chunk_index, chunk_count, content, metadata jsonb, content_hash, source_tag, embedding vector(d), updated_at + HNSW vector_cosine_ops index

Query with the same embedding model you indexed with. For example, in pgvector: SELECT content, metadata FROM docs ORDER BY embedding <=> $1 LIMIT 5.

Pricing

Pay per event: $0.30 per 1,000 chunks written (chunk-upserted). Local embedding compute is included, so you need no OpenAI bill. You are not charged for:

  • unchanged chunks skipped by delta mode
  • deletions
  • empty or duplicate rows
  • errors

If you use your own OpenAI-compatible key, the provider bills you for embedding tokens directly (text-embedding-3-small is about $0.02 per 1M tokens, roughly $0.005 per 1,000 chunks).

ActorPriceNotes
This Actor$0.0003 / chunk, unchanged chunks freePinecone + Qdrant + pgvector, local embeddings or your key, delta sync
apify/pinecone-integrationfreePinecone only, needs an OpenAI key
apify/qdrant-integrationfreeQdrant only, needs an OpenAI key
oldjard/dataset-to-pinecone-qdrant$0.00025 / recordPinecone and Qdrant

(Store data, October 2026.)

Use with AI agents (Apify MCP)

Add the Actor to Claude, ChatGPT, Cursor or any MCP client through the Apify MCP server. An agent can pass a dataset ID or JSON documents and get them indexed in the user's vector store in one call, for example: "Index the dataset from my last docs crawl into my Qdrant collection 'support', only changed pages."

FAQ

Do I need an OpenAI key? No. The default local model runs inside the Actor. Use an API model if you already query with OpenAI embeddings, or if you need higher quality on long or multilingual text.

Which local model should I pick? For English, use bge-small-en-v1.5 (fast, 384 dims). For other languages, use paraphrase-multilingual-MiniLM-L12-v2. Use the same model at query time (fastembed, sentence-transformers or Hugging Face).

Is re-running safe? Yes. IDs are deterministic (document ID + chunk number), so a re-run updates vectors in place instead of creating duplicates. In delta mode, unchanged chunks are not re-embedded and not charged.

What happens if I change the model or the chunk size? Content hashes include the model, text and metadata, so changed chunks are rewritten. A different dimension needs a new collection, index or table (the Actor stops with a clear message before writing).

Are my credentials safe? API keys and the connection string are secret inputs: they are encrypted, hidden in the UI and logs, and only sent to the host you enter.

Can it read datasets from other runs? Yes. Pick them in the dataset field or pass {{resource.defaultDatasetId}}. The Actor gets read access only to the datasets you select.

How fast is it? Local embedding is CPU-bound. At the default 2 GB memory, expect a few hundred chunks per minute. More memory gives more CPU and a proportionally faster run. API embeddings are faster.

Related: Dataset Filter & Transform (clean or dedupe before indexing), Bulk AI Dataset Enricher (add AI summaries or tags first).