# Repository Briefing: usemoss/moss
> Source: https://repoforai.com/repo/usemoss/moss (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/usemoss/moss
- **Official Docs / Website**: https://moss.dev
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: BSD-2-Clause
- **Engineering Health**: A+ (91/100 · Maintenance 35/35 · Adoption 16/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.17.0 (2026-11-23) — https://github.com/usemoss/moss/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: CLI, API
- **Momentum**: 1,186 ★ total (+1 24h / +176 7d) · 116 forks
- **Topics**: `ai-agents`, `ai-infra`, `hybrid-search`, `rag`, `real-time`, `retrieval`, `semantic-search`, `voice-ai`
- **When to Use**: 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.

## Overview
```text
### 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.
```

## Key Capabilities
```text
- 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.
```

## Quick Start / Clone
```bash
pip install moss
```
