pathwaycom/pathway
Python pipelines on a Rust dataflow engine for streaming ETL and live RAG
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Pathway exposes a Python table API over a Rust engine built on Differential Dataflow. Connectors populate tables, schemas describe inputs, and operators such as filter and reduce define the computation. Attach a sink and start execution with pw.run(). The runtime applies changes incrementally, so the same transformation code can run against batch inputs, stream replays, and live feeds.
Maturin is the Python build backend, and Cargo.toml defines pathway_engine as a Rust library and cdylib. Runtime dependencies include NumPy, pandas, PyArrow, and aiohttp. Built-in operators put dataflow execution in Rust; custom Python functions and connectors provide extension points, but their cost should be profiled separately. The engine supports multithreaded, multiprocess, and distributed execution, with distributed Kubernetes deployment covered by the Enterprise offering.
Key Capabilities & Differentiators
The framework handles stateful joins, windowing, and sorting in addition to stateless transformations. Late and out-of-order records can revise computed results, and persistence saves computation state for restart. Input coverage includes Kafka, PostgreSQL, Google Drive, and SharePoint; Airbyte extends the supported source catalog, and custom Python connectors cover gaps.
The LLM extension adds service wrappers and utilities for live RAG. Examples include private RAG with Ollama and Mistral AI, adaptive RAG, and multimodal RAG with GPT-4o; LangChain and LlamaIndex integrations are also available. The Chroma sink maps table changes to collection records, including deletions. An explicit primary_key becomes the record ID; otherwise the sink uses Pathway’s internal row ID. Choose the key deliberately when downstream consumers depend on stable document identity.
Trade-offs & Limitations
Compared with using Flink or Spark for processing and a separate service for index maintenance, Pathway lets a Python team define both pieces in one pipeline. That is useful when retrieval freshness depends on timely updates and deletions. It also puts ingestion, stateful processing, and model calls in the same application's operational scope. Benchmark representative key distributions, late arrivals, and Python UDFs; an incremental Rust engine does not eliminate the RAM cost of retained state or the latency of model calls.
The free edition provides at-least-once consistency; exactly-once is an Enterprise feature. Test crash and replay behavior at the actual source and sink boundaries, and design idempotent consumers where duplicates matter. Licensing also warrants a release-specific check: the Rust crate declares BUSL-1.1, while the Python manifest uses an Other/Proprietary License classifier. Review LICENSE.txt and the applicable edition terms rather than assuming a permissive open-source license.
Hardware & Deployment Guide
Install pathway on Python 3.10+ on Linux or macOS, then run python main.py with a script that calls pw.run(). Set threads with pathway spawn --threads 3 python main.py, or package the app on pathwaycom/pathway; pin the tested package and image for production. The monitoring dashboard exposes connector message counts, latency, and logs. Kubernetes is a container deployment option; Enterprise covers distributed Kubernetes deployment with external persistence. Model execution can be local, as in the Ollama example, or use an external service, as in the GPT-4o example.
Connector changes are operationally significant: v0.31.0 added SQLite output with an append-only change stream or a maintained snapshot; v0.31.1 added Elasticsearch input via polling and overlap reconciliation rather than native CDC; v0.32.1 added Chroma synchronization. The supplied Cargo manifest declares 0.33.1, distinct from the latest listed release, v0.32.1. Validate connector behavior on the artifact you ship rather than assuming the source snapshot and published package match.
pw.io.chroma.write synchronizes inserts, updates, and deletes to Chroma.pathway spawn --threads 3 python main.py.Python teams that want batch tests and live jobs to share transformation logic, particularly when document changes need to reach a retrieval index without scheduled full rebuilds.
You only need a periodic static index, already have a well-operated streaming and indexing stack, or require exactly-once semantics without adopting Enterprise.
Quick Start & Installation
pip install -U pathway
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| pathway ★ | 61.9k | +10 | Python | — | Python pipelines on a Rust dataflow engine for streaming ETL and live RAG |
| auto-ontology | 19.1k | +3.7k | Python | Apache-2.0 | An ontology framework that grounds agent-generated SQL in reviewed business defi |
| llama_index | 53.1k | +104 | Python | MIT | A modular Python SDK for document ingestion, indexing, and RAG |
| langextract | 39.5k | +85 | Python | Apache-2.0 | Python SDK for extracting structured data with traceable source spans |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/pathwaycom/pathway.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about pathway
How do I integrate an existing source and test the pipeline before switching to live data?
pw.run(). Use the same transformation logic for batch tests and live processing, then verify the live connector’s update and replay behavior separately. If a source lacks a built-in connector, use the Python connector extension point.Does Pathway require a GPU, and how should I size a worker?
Can we self-host Pathway for commercial use?
Cargo.toml declares BUSL-1.1 for the Rust crate, while pyproject.toml classifies the Python package under Other/Proprietary License. Review LICENSE.txt and applicable edition terms for production use, redistribution, or a hosted offering. An available Docker image is not a blanket commercial-use grant.When should we choose Pathway over Flink or Spark plus a separate retrieval stack?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy