← Back to Leaderboard
Musemoss

usemoss/moss

Embedded hybrid retrieval that removes the query network hop for real-time RAG

Engineering Health (Methodology)
A+ · 91/100
Maintenance Activity
● Updated 2d ago
Latest Release
v0.17.0
Commercial License Check
BSD-2-Clause · Commercial Friendly

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

Maintenance35/35
Fork Adoption16/25
Release Cadence20/20
License Clarity20/20
CLIAPI
Total Stars
★ 1,186
24h Growth
+1
7d Growth
+176
Forks
116

GitHub Star History

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

usemoss/moss Star History (2025-10-10 - 2026-12-04) ALL-TIME STAR HISTORY (2025-10 – 2026-12) +1.2k in 420d · avg +3/day 1.3k 626 0 2025-10-10: ★ 12025-11-08: ★ 132025-12-06: ★ 162026-01-03: ★ 182026-01-31: ★ 192026-02-28: ★ 202026-03-28: ★ 2402026-04-25: ★ 3042026-05-23: ★ 3522026-06-20: ★ 4072026-07-18: ★ 4602026-08-15: ★ 6322026-09-12: ★ 6532026-10-10: ★ 7782026-11-05: ★ 7932026-12-04: ★ 1,186 ★ 1.2k 2025-10 2026-05 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Moss separates index management from query execution. Moss Cloud handles ingestion, document embedding, storage, and distribution. It packages documents and vectors into a single index artifact. An application initializes the SDK with a project ID and key, downloads the index over HTTPS, and keeps it in memory. Once the index is loaded, query embedding and retrieval run inside the application process. Document changes pass through Moss Cloud rather than a local database write path.

The primary integration surface is the SDK API: the Python quickstart uses create_index, load_index, and query, with camelCase equivalents for Node.js. The browser package, @moss-dev/moss-web, runs the query path in WebAssembly. SDK source and samples for JavaScript, Python, and Elixir sit under sdks/; database ingestion connectors sit under packages/moss-data-connector/. The root package is moss-samples-root and lists VitePress; that manifest does not describe the embedded engine's dependencies.

Key Capabilities & Differentiators

A single query can combine semantic and keyword retrieval, return a configurable top-k, and filter metadata with operators such as $eq, $and, $in, and $near. Built-in embeddings remove the need for an OpenAI key on that path, while Python and TypeScript examples show how to supply custom embeddings. moss-cli covers terminal-based index management and querying, and the integration examples range from LangChain retrieval to Pipecat and LiveKit voice pipelines.

The benchmark measures query embedding plus search on 100,000 documents, with 750 measured queries and top_k=5, on a MacBook Pro with an M4 Pro and 24 GB of memory. Moss measured 3.1 ms p50, 4.3 ms p95, and 5.4 ms p99. Those numbers characterize the loaded query path on that setup. They do not size startup or index refresh, establish browser or mobile latency, or quantify retrieval quality at larger corpus sizes.

Trade-offs & Limitations

Moving search into the process trades a network round trip for index transfer and resident memory wherever queries run. That is a strong fit for latency-sensitive workloads when the relevant index fits comfortably on each host or device. For fleets with many replicas or changing indexes, measure download bandwidth, aggregate memory, and how quickly updates become visible. For browser delivery, distribute only documents and vectors the client is allowed to receive; query filters do not make a downloaded index confidential.

The benchmark is useful as a comparison of deployment patterns, not as a controlled ranking of search engines: Pinecone, Qdrant, and ChromaDB use an external embedding service in the comparison, and Pinecone and Qdrant also use cloud search. If your priorities are centralized capacity, independently managed data, or a fully self-hosted ingestion and distribution path, evaluate those requirements directly. The repository is BSD-2-Clause, but that does not by itself establish Moss Cloud terms or a supported self-hosted control plane.

Hardware & Deployment Guide

For a backend, install moss on Python 3.10+ or @moss-js/moss on Node.js 20+, provision a Moss Cloud project, then create or load an index before serving queries. The sample repository's root Node constraint is narrower than the SDK quickstart baseline: ^20.19.0 || >=22.12.0. WebAssembly removes the need for a query server, not the need to obtain the index. The apps/pipecat-moss/ollama-local example uses Docker Compose for local LLM inference and retrieval; it does not supply a self-hosted replacement for Moss Cloud.

The iOS v0.17.0 release distributes Moss.xcframework.zip as a SwiftPM binary target. Android SDK v0.33.0 ships an arm64-v8a AAR with minSdk 24 and adds ClientOptions.keepModels, disabled by default. C SDK v0.33.0 ships precompiled binaries and adds client constructors that accept options. Before rollout, measure first-load time, memory per application instance, and update-to-visible latency on the actual target devices.

Execution: An HTTPS-delivered index holds documents and vectors; the embedded runtime performs query embedding and search in memory after loading.
Retrieval: Semantic and keyword matching in one query, built-in or custom embeddings, and metadata filters including $eq, $and, $in, and $near.
Latency evidence: 3.1 ms p50, 4.3 ms p95, and 5.4 ms p99 on an M4 Pro with 100,000 documents, 750 measured queries, and top_k=5.
Runtime targets: Python and Node.js server SDKs, @moss-dev/moss-web for browser WASM, and release artifacts for iOS, Android, and C.
Data onboarding: Connectors for SQLite, MongoDB, MySQL, and Supabase, plus moss-cli for index management and queries.
Voice integration: Pipecat and LiveKit sample apps; the airline PNR example demonstrates swapping per-record indexes mid-call.
Best For

Voice agents, interactive copilots, and client-side search where the active index fits in memory and Moss Cloud ingestion and distribution are acceptable.

Skip If

The full ingestion and distribution pipeline must be self-hosted or air-gapped, clients cannot be trusted with the index contents, or copying indexes to each query instance exceeds your resource budget.

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

Quick Start & Installation

CLIAPI
pip install moss

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
moss ★1.2k+176PythonBSD-2-ClauseEmbedded hybrid retrieval that removes the query network hop for real-time RAG
PageIndex40.9k+92PythonMITTree-indexed RAG for evidence retrieval from long PDFs without a vector database
crawl4ai88.5k+408PythonApache-2.0Async browser crawler that turns web pages into Markdown and JSON for RAG
zvec16.3k+29C++Apache-2.0In-process C++ vector database for local hybrid retrieval

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/usemoss/moss.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.

usemoss/moss Star History on RepoForAI

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

Frequently Asked Questions about moss

How do I keep retrieval off the network path in a voice agent?

Create or update the index through Moss Cloud, then have the application load it before accepting traffic. The embedded runtime holds the index in memory and performs query embedding and search locally. Monitor initial load and update propagation separately from query latency; they are not part of the warm query path.

Do I need a GPU, and how much memory should I budget?

The documented quickstart does not list a GPU or CUDA prerequisite, and there is no published minimum RAM or VRAM figure in the supplied evidence. Measure peak resident memory during index load and steady-state operation with your index, embedding model, process count, and query concurrency. Test browser and mobile targets on representative devices rather than sizing them from the M4 Pro benchmark.

Does the BSD license let us use Moss commercially and self-host the entire stack?

BSD-2-Clause generally permits commercial use of code covered by that license, subject to its notice and disclaimer conditions. It does not establish rights or service terms for Moss Cloud, model artifacts, or every precompiled SDK. The documented workflow uses a cloud project ID and key; a self-hostable cloud control plane is not established. Verify artifact terms, data residency, and ingestion requirements before committing.

How should we benchmark Moss against a vector database?

Replay the same corpus and query set against Moss and candidates such as Qdrant or ChromaDB. Keep retrieval quality comparable and report both like-for-like search latency and full query latency, with embedding and network placement made explicit. Include cold loads, update visibility, and process memory; the published comparison uses external embeddings for the alternatives and cloud search for Pinecone and Qdrant.

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 usemoss/moss? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature usemoss/moss 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