# Website & Sitemap to Incremental RAG Chunks & Parquet

**Use case:** 

Crawl web pages or XML sitemaps into clean Markdown, semantic token-bounded RAG chunks, HTML tables, and Zstd Apache Parquet with SHA-256 Change Data Capture (CDC) so you only re-embed new or updated pages.

## Input

```json
{
  "sourceMode": "webUrls",
  "urls": [
    "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
    "https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"
  ],
  "rawRecords": [
    {
      "product_id": "SKU-1001",
      "name": "Snowflake Enterprise Connector Pro",
      "category": "Data Engineering",
      "price_usd": 249,
      "in_stock": true,
      "contact_email": "sales@dataflow-example.io",
      "specs": {
        "latency_ms": 42,
        "compression": "zstd",
        "tier": "gold"
      },
      "tags": [
        "snowflake",
        "parquet",
        "cdc"
      ],
      "updated_at": "2026-11-13T10:00:00Z"
    },
    {
      "product_id": "SKU-1002",
      "name": "Databricks Delta Live Streamer",
      "category": "Lakehouse",
      "price_usd": 189.5,
      "in_stock": true,
      "contact_email": "support@lakehouse-example.dev",
      "specs": {
        "latency_ms": 19,
        "compression": "snappy",
        "tier": "silver"
      },
      "tags": [
        "databricks",
        "dlt",
        "pyspark"
      ],
      "updated_at": "2026-11-13T11:30:00Z"
    },
    {
      "product_id": "SKU-1003",
      "name": "DuckDB Embedded Analytics Engine",
      "category": "Analytics",
      "price_usd": 99,
      "in_stock": false,
      "contact_email": "analytics@duck-example.org",
      "specs": {
        "latency_ms": 8,
        "compression": "zstd",
        "tier": "gold"
      },
      "tags": [
        "duckdb",
        "pyarrow",
        "olap"
      ],
      "updated_at": "2026-11-13T12:15:00Z"
    }
  ],
  "maxItems": 10000,
  "tableName": "web_rag_knowledge_base",
  "primaryKey": [
    "canonical_url"
  ],
  "cdcMode": "scd2_history",
  "detectDeletes": false,
  "emitUnchangedToDataset": true,
  "enableNearDedup": true,
  "nearDedupThreshold": 0.92,
  "stateStoreName": "lakehouse-cdc-state",
  "parquetCompression": "zstd",
  "piiPolicy": "mask_sha256",
  "requiredColumns": [],
  "failOnBreakingDrift": false,
  "nullSpikeThresholdPct": 35,
  "enableRagChunking": true,
  "ragChunkSizeTokens": 256,
  "targetDatabase": "LAKEHOUSE_PROD",
  "targetSchema": "SILVER_CDC"
}
```

## Output

```json
{
  "_key": {
    "label": "Primary Key",
    "format": "text"
  },
  "_cdc_op": {
    "label": "CDC Operation",
    "format": "text"
  },
  "_version_num": {
    "label": "Version",
    "format": "number"
  },
  "_changed_columns": {
    "label": "Changed Columns",
    "format": "array"
  },
  "_quality_score": {
    "label": "Quality %",
    "format": "number"
  },
  "_valid_from": {
    "label": "Valid From (UTC)",
    "format": "date"
  },
  "_is_current": {
    "label": "Is Current",
    "format": "boolean"
  },
  "_record_hash": {
    "label": "SHA-256 Hash",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The LakehouseFlow: Dataset to Medallion Parquet, CDC & dbt Engine Actor is ready to run with the inputs already set for "Website & Sitemap to Incremental RAG Chunks & Parquet". [Sign up or log in](https://console.apify.com/create-task-from-example/oslpu8REYMFCkoIPH) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Website & Sitemap to Incremental RAG Chunks & Parquet" task

The LakehouseFlow: Dataset to Medallion Parquet, CDC & dbt Engine Actor will start running based on the input automatically. You can also change all the input fields, like source ingestion mode, target web urls or sitemap urls, and more, to match your specific use case.

### 3. Receive the "Website & Sitemap to Incremental RAG Chunks & Parquet" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as primary key, CDC Operation, version, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Website & Sitemap to Incremental RAG Chunks & Parquet" task via API](https://apify.com/driftking-byte/apify-lakehouse-cdc-engine.md).

## About this Actor

This example demonstrates how to use [LakehouseFlow: Dataset to Medallion Parquet, CDC & dbt Engine](https://apify.com/driftking-byte/apify-lakehouse-cdc-engine.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/driftking-byte/apify-lakehouse-cdc-engine.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/driftking-byte/apify-lakehouse-cdc-engine.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
