usemoss /moss

The retrieval layer for production AI systems. Lightning-fast (<10ms) search without vector databases. Built for browser, edge, on-device, and cloud.

★ 1,014⑂ 112👁 1⑃ 468● 119▤ 40
PythonBSD-2-ClauseCreated 2025-10-04moss.dev
下载:Moss iOS SDK v0.17.0Moss-0.17.0 ↓0.17.02026-11-23
-1
日增长
1,014
stars
112
forks
1
watchers
468
prs
119
issues
40
releases

README

Website · Docs · Discord · Blog



---

Moss is a sub-10 ms semantic search runtime built for Conversational AI agents. Hybrid retrieval (semantic + Keyword Search), built-in embeddings, metadata filtering, and a WebAssembly build that runs in the browser - all from a single SDK that embeds in your application.

No network hop on the hot path. No clusters to tune. Point the SDK at Moss Cloud, load your index, and query it in under 10 ms. Python, TypeScript, Elixir, and C.

!Moss Python walkthrough

 Quickstart

Before you start: sign up at moss.dev for project_id and project_key - free tier available.

The snippets below need Python 3.10+ or Node.js 20+.

 Python

bash
pip install moss


python
from moss import MossClient, QueryOptions

client = MossClient("your_project_id", "your_project_key")

 Create an index and add documents
await client.create_index("support-docs", [
    {"id": "1", "text": "Refunds are processed within 3-5 business days."},
    {"id": "2", "text": "You can track your order on the dashboard."},
    {"id": "3", "text": "We offer 24/7 live chat support."},
])

 Load and query — results in  {
  console.log([${doc.score.toFixed(3)}] ${doc.text}); // Returned in ${results.timeTakenInMs}ms
});


 Why Moss?

Most retrieval stacks call out to a remote vector database. The round trip alone runs 200–500 ms - enough to break a real-time conversation.

Moss runs search and embedding inside your process. There's no network hop on the hot path, so query latency lands in the single digits - fast enough that retrieval disappears from the latency budget. If you're building a voice bot, a copilot, or any agent that talks to humans, that's the difference between a tool that feels alive and one that feels laggy.

 Benchmarks

End-to-end query latency (embedding + search) on 100,000 documents, 750 measured queries, top_k=5. Tested with Macbook pro (M4 Pro, 24GB).

| System | P50 | P95 | P99 | Mean |
|--------|-----|-----|-----|------|
| Moss | 3.1 ms | 4.3 ms | 5.4 ms | 3.3 ms |
| Pinecone | 432.6 ms | 732.1 ms | 934.2 ms | 485.8 ms |
| Qdrant | 597.6 ms | 682.0 ms | 771.4 ms | 596.5 ms |
| ChromaDB | 351.8 ms | 423.5 ms | 538.5 ms | 358.0 ms |

Moss includes embedding in the measurement — competitors use an external embedding service (modal). Pinecone and Qdrant use cloud search.

 Reproduce these benchmarks →

Moss isn't a database! It's a search runtime. You don't manage clusters, tune HNSW parameters, or worry about sharding. You index documents, load them into the runtime, and query. That's it.

 Features

- Sub-10 ms semantic search - single-digit-ms p99 in our benchmarks
- Hybrid search - semantic + keyword in a single query
- Built-in embedding models - no OpenAI key required (or bring your own)
- Metadata filtering - $eq, $and, $in, $near operators
- Runs in the browser too - separate WebAssembly SDK (@moss-dev/moss-web) for client-side semantic search with no server
- Database connectors - ingest directly from SQLite, MongoDB, MySQL, 

Top issues

Latest release

Moss iOS SDK v0.17.0 v0.17.0 2026-11-23
Moss iOS SDK v0.17.0.

 SwiftPM consumption

swift
.package(url: "https://github.com/usemoss/moss", from: "0.17.0"),


 Package.swift binary target

swift
.binaryTarget(
    name: "MossC",
    url: "https://github.com/usemoss/moss/releases/download/v0.17.0/Moss.xcframework.zip",
    checksum: "b9718f1b5bb6ad36125747c7a44ed04fc78af5fc2533500ab6296bf371cf1ef1"
)


SHA-256: b9718f1b5bb6ad36125747c7a44ed04fc78af5fc2533500ab6296bf371cf1ef1

 What's in the zip

- Moss.xcframework with the iOS device (arm64) and simulator (arm64) slices
- LICENSE.txt - the license of the xcframework
- LICENSE-THIRD-P

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON