← Back to Leaderboard
Spathwaycom

pathwaycom/serviette

Self-hosted RAG with a separate indexer that keeps document answers current

Engineering Health (Methodology)
A+ · 88/100
Maintenance Activity
● Updated 23d ago
Latest Release
v0.1.8
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance31/35
Fork Adoption17/25
Release Cadence20/20
License Clarity20/20
Self-HostedLocal AICLIAPI
Total Stars
★ 58,644
24h Growth
+0
7d Growth
+11
Forks
1,536

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

pathwaycom/serviette Star History (2023-07-19 - 2026-12-03) ALL-TIME STAR HISTORY (2023-07 – 2026-12) +58.6k in 1233d · avg +48/day 61.9k 31k 0 2023-07-19: ★ 12023-10-07: ★ 2742023-12-23: ★ 1,3682024-03-09: ★ 1,7902024-05-25: ★ 2,6402024-08-10: ★ 3,1332024-10-26: ★ 3,9812025-01-11: ★ 9,7792025-03-29: ★ 19,9682025-06-14: ★ 22,8682025-08-30: ★ 28,2592025-11-15: ★ 43,2632026-01-31: ★ 52,4072026-04-18: ★ 57,3792026-07-04: ★ 57,7382026-09-19: ★ 58,4012026-12-03: ★ 58,644 ★ 58.6k 2023-07 2025-03 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Serviette is a Python application with separate write and read processes. The indexer uses Pathway to watch configured sources, then reuses Pathway's LLM xpack parsers, splitters and embedders to turn file changes into vector-store upserts and deletes. The stateless server embeds queries and reads from that store without calling the indexer. The documented collection schema is the integration contract, so another application can consume the same collection.

A server can keep answering from the last synced state while the indexer is down, and the indexer can continue writing if serving is interrupted. Indexer persistence supports resuming without re-embedding. With a shared external store, Pathway workers and query replicas can scale separately, though both still depend on database capacity. Embedded DuckDB gives up that deployment flexibility for a single local file and a single writer.

Key Capabilities & Differentiators

One YAML config can combine local files, Google Drive, S3/MinIO, SharePoint and PyFilesystem sources such as SFTP or WebDAV. The eight vector stores are DuckDB, pgvector, Qdrant, Milvus, ChromaDB, Weaviate, Pinecone and MongoDB Atlas Vector Search. Embeddings can use OpenAI, LiteLLM, SentenceTransformers, Gemini or Bedrock. Text, PDF and Office formats have built-in parsing; optional Docling adds layout and table extraction, PaddleOCR handles scanned images, and audio and video processing require the relevant OpenAI or TwelveLabs credentials.

The server exposes cited chat and POST /api/v1/retrieve. Retrieval starts with vector similarity; optional stages add BM25 rank fusion, cross-encoder or LLM reranking, MMR, query decomposition and adaptive context expansion. On the 824-question FRAMES evaluation, gold-article recall was 0.50 versus 0.21 for the reproduced BM25 baseline. The reported adaptive setup raised context-only answer accuracy from 41.3% to 52.8%; that result is specific to the benchmark setup, not a forecast for an internal corpus.

Trade-offs & Limitations

Compared with assembling a LangChain or LlamaIndex stack, Serviette packages ingestion, update propagation, cited chat and REST serving behind YAML rather than giving developers code-level control over each stage. DuckDB is the low-setup choice for a local trial; separate hosts or independently scaled replicas favor a shared external store. Cross-encoder reranking adds local inference, while LLM reranking, decomposition and adaptive retries can add model calls. An external answer model receives retrieved passages; an external embedder receives document text as well.

For capacity planning, the nominal 50 GB Qdrant run measured 6.0 hours of indexing, 14.65 GiB peak PSS and 84.45 GiB in Qdrant. That was a single published run for that size using plain text and local embeddings, not a sizing guarantee for PDFs or scans. The watcher retains per-file metadata, so file count matters alongside extracted text volume. Test freshness and query latency during bulk indexing against the chosen store instead of assuming separate processes eliminate contention.

Hardware & Deployment Guide

Use CPython 3.10 or newer and pip 23.1 or newer. Install with pip install serviette and set PATHWAY_LICENSE_KEY before running the CLI. serviette demo --embedder openai also needs OPENAI_API_KEY and opens the bundled-corpus chat at http://localhost:8989. For your own sources, generate YAML with serviette wizard, then use serviette up --config config.yaml to supervise the indexer and server together.

For distributed self-hosting, run serviette indexer and serviette server separately against a shared external store. An optional serviette frontend hosts chat on another host and proxies API requests server-side. DuckDB and local embeddings avoid a database service and an embedding API; omit the answer model to return quoted passages, but the Pathway key still applies. Release v0.1.8 marks the change from the llm-app template repository to the Serviette server; the previous templates remain in Pathway's examples/llm-app.

Index updates: Pathway propagates file additions, edits and deletions as vector-store upserts and deletes.
Storage: Eight backends range from embedded DuckDB to pgvector, Qdrant and MongoDB Atlas Vector Search; the collection schema is documented.
Serving: The stateless server hosts cited chat at / and a versioned REST API under /api/v1, including POST /api/v1/retrieve.
Parsing: Built-in PDF and Office parsing can be extended with serviette[docling] for layout-aware extraction or serviette[ocr] for scanned images.
Retrieval: Configurable options include BM25/vector rank fusion, reranking, MMR, query decomposition and adaptive context expansion.
Indexing baseline: The nominal 50 GB plain-text Qdrant run took 6.0 hours, peaked at 14.65 GiB PSS and used 84.45 GiB in Qdrant.
Best For

Teams that need cited Q&A and a retrieval API over frequently changing documents without building their own incremental indexing pipeline.

Skip If

Your deployment cannot accept Pathway's license-key requirement, or you need code-level control over the orchestration rather than configuration of a packaged pipeline.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedLocal AICLIAPI
pip install serviette
export PATHWAY_LICENSE_KEY=...        # free: https://pathway.com/framework/get-license
export OPENAI_API_KEY=sk-...
serviette demo --embedder openai      # → chat at http://localhost:8989

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
serviette ★58.6k+11PythonMITSelf-hosted RAG with a separate indexer that keeps document answers current
ragflow95.1k+297GoApache-2.0Go-based RAG platform for parsing complex documents and grounding answers in sou
private-gpt57.7k+14PythonApache-2.0Self-hosted API for cited document RAG and tool use on local models
WeKnora38.8k+387Go—Self-hosted RAG, agents, and a Wiki on shared document knowledge bases

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/pathwaycom/serviette.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

pathwaycom/serviette Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about serviette

How do I integrate Serviette with an existing vector store or application?

The indexer and server share the vector store, not a service-to-service API. Point both at the intended collection and use the same embedding model for indexing and queries. Other applications can read the documented schema or call POST /api/v1/retrieve if they only need ranked passages.

Do I need a GPU, and what should I size first?

No GPU requirement is established for the basic DuckDB and local-embedding setup, and there is no universal VRAM figure. Size the indexer around the embedding model, worker count, file count and parser mix; size serving separately around query concurrency and optional reranking. The Qdrant benchmark reports proportional set size (PSS), not GPU memory.

Can I self-host Serviette commercially under the MIT license?

Serviette's MIT license permits commercial use, subject to its notice requirements when distributing copies. Pathway is a separate runtime dependency and requires a free key in PATHWAY_LICENSE_KEY; review its terms for your deployment rather than assuming the MIT license covers the full stack. External services have their own terms and data-handling implications.

When should I choose Serviette over building with LangChain or LlamaIndex?

Choose Serviette if you want one YAML configuration for continuous ingestion, incremental deletions, cited chat and a retrieval API. A custom LangChain or LlamaIndex pipeline is a better fit when you need code-level control over ingestion, retrieval and serving and are prepared to own how those pieces stay in sync.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining pathwaycom/serviette? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature pathwaycom/serviette on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare