Working examples for Moss — the real-time search runtime for AI agents.
Each sample is kept thin on purpose. Copy what you need straight into your own project, swap in your data, and go. Python, TypeScript, Next.js, Pipecat voice agents, and Docker are all covered.
Questions? Join our Discord.
├── examples/ # Standalone SDK samples (copy-paste friendly)
│ ├── python/ # Python SDK samples
│ ├── javascript/ # TypeScript/Node SDK samples
│ └── cookbook/ # Integrations (LangChain, DSPy, …)
│ ├── langchain/
│ └── dspy/
│
├── apps/ # Full runnable apps and integrations
│ ├── next-js/ # Next.js semantic search UI
│ ├── pipecat-moss/ # Pipecat voice agent
│ ├── livekit-moss-vercel/ # LiveKit voice agent on Vercel
│ └── docker/ # Dockerized Python + JS example (ECS/K8s pattern)
│
└── packages/
└── vitepress-plugin-moss/ # VitePress search plugin
- Sign up at moss.dev and create an index from the dashboard.
- Open View secrets and save the values to your
.env:
MOSS_PROJECT_ID=your_project_id
MOSS_PROJECT_KEY=your_project_keyFor full setup details and pricing, see the docs.
Install deps: pip install -r examples/python/requirements.txt, then run any script with python path/to/sample.py.
comprehensive_sample.py— end-to-end flow: index creation, document operations, semantic searchload_and_query_sample.py— ingest domain knowledge, then querycustom_embedding_sample.py— create an index with custom OpenAI embeddings and run queriesmetadata_filtering.py— query a loaded index with metadata filters ($eq,$and,$in,$near) — requiresinferedge-moss>=1.0.0b17
Install deps: npm install inside examples/javascript/, then run with npm run start.
comprehensive_sample.ts— full workflow in TypeScript, ready for Nodeload_and_query_sample.ts— index FAQs and issue targeted queriescustom_embedding_sample.ts— provision an index, push OpenAI embeddings, query
A web-based semantic search interface using Next.js 15 and Server Actions. Shows how to call Moss securely from the server while serving a responsive UI.
cd apps/next-js && npm install && npm run devOpen http://localhost:3000. See the apps/next-js/ directory for details.
A voice bot that plugs Moss retrieval into Pipecat's real-time pipeline — sub-10ms semantic search for a customer support agent.
apps/pipecat-moss/pipecat-quickstart/— ingest FAQs withcreate-index.py, wire into Pipecat, deploy to Pipecat Cloud
A LiveKit-powered voice agent with Moss retrieval, deployable to Vercel.
apps/livekit-moss-vercel/— agent and React frontend
Containerized Python and JS examples showing how to run Moss inside Docker — the same pattern used on AWS ECS, Kubernetes, and similar runtimes.
cd apps/docker && cp .env.example .env && docker compose up --buildSee apps/docker/ for details.
- Documentation — API reference, guides, architecture
- Website — product overview and pricing
- Launch YC post
If you spot gaps or want another language example, open an issue or PR. We track feedback closely.
See our Contributing Guide for details.

