Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

mossmoss 文档

Agent Skill

moss 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

28,488

周安装

1,187

GitHub Stars

1

下载量

9,496
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:moss(moss 文档)
来源仓库:https://github.com/coderomaster/moss
安装命令:
openclaw skills install moss
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install moss

简介

moss 提供 Moss 语义搜索的文档与功能参考。

  • 帮助用户了解 API、SDK 及集成方式,便于二次开发。
  • 适用于 OpenClaw 中对接语义检索服务的场景。
  • 建议核对版本说明,确保与当前环境兼容。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • moss 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
moss-docs
description
Documentation and capabilities reference for Moss semantic search.
metadata
author
usemoss
version
1.0
docs-url
https://docs.moss.dev
mintlify-proj
moss
primary-credential
MOSS_PROJECT_KEY
required-env
description
Project identifier from the Moss Portal
description
Project access key from the Moss Portal (treat as a secret)

Moss Agent Skills

Capabilities

Moss is the real-time semantic search runtime for conversational AI. It delivers sub-10ms lookups and instant index updates that run in the browser, on-device, or in the cloud - wherever your agent lives. Agents can create indexes, embed documents, perform semantic/hybrid searches, and manage document lifecycles without managing infrastructure. The platform handles embedding generation, index persistence, and optional cloud sync - allowing agents to focus on retrieval logic rather than infrastructure.

Skills

Index Management

  • Create Index: Build a new semantic index with documents and embedding model selection
  • Load Index: Load an existing index from persistent storage for querying
  • Get Index: Retrieve metadata about a specific index (document count, model, etc.)
  • List Indexes: Enumerate all indexes under a project
  • Delete Index: Remove an index and all associated data

Document Operations

  • Add Documents: Insert or upsert documents into an existing index with optional metadata
  • Get Documents: Retrieve stored documents by ID or fetch all documents
  • Delete Documents: Remove specific documents from an index by their IDs

Search & Retrieval

  • Semantic Search: Query using natural language with vector similarity matching
  • Keyword Search: Use BM25-based keyword matching for exact term lookups
  • Hybrid Search: Blend semantic and keyword search with configurable alpha weighting (Python SDK)
  • Metadata Filtering: Constrain results by document metadata (category, language, tags)
  • Top-K Results: Return configurable number of best-matching documents with scores

Embedding Models

  • moss-minilm: Fast, lightweight model optimized for edge/offline use (default)
  • moss-mediumlm: Higher accuracy model with reasonable performance for precision-critical use cases

SDK Methods

JavaScriptPythonDescription
createIndex()create_index()Create index with documents
loadIndex()load_index()Load index from storage
getIndex()get_index()Get index metadata
listIndexes()list_indexes()List all indexes
deleteIndex()delete_index()Delete an index
addDocs()add_docs()Add/upsert documents
getDocs()get_docs()Retrieve documents
deleteDocs()delete_docs()Remove documents
query()query()Semantic / hybrid search

API Actions

All REST API operations go through POST /v1/manage (base URL: https://service.usemoss.dev/v1) with an action field:

ActionPurposeExtra required fields
initUploadGet a presigned URL to upload index dataindexName, modelId, docCount, dimension
startBuildTrigger an index build after uploading datajobId
getJobStatusCheck the status of an async build jobjobId
getIndexFetch metadata for a single indexindexName
listIndexesEnumerate every index under the project
deleteIndexRemove an index record and assetsindexName
getIndexUrlGet download URLs for a built indexindexName
addDocsUpsert documents into an existing indexindexName, docs
deleteDocsRemove documents by IDindexName, docIds
getDocsRetrieve stored documents (without embeddings)indexName

Workflows

Basic Semantic Search Workflow

  1. Initialize MossClient with project credentials
  2. Call createIndex() with documents and model options ({ modelId: 'moss-minilm' } in JS; "moss-minilm" string in Python)
  3. Call loadIndex() to prepare index for queries
  4. Call query() with search text and topK (JS) or QueryOptions(top_k=...) (Python)
  5. Process returned documents with scores

Hybrid Search Workflow (Python)

Hybrid blending via alpha is available in the Python SDK via QueryOptions:

  1. Create and load index as above
  2. Call query() with a QueryOptions object specifying alpha
  3. alpha=1.0 = pure semantic, alpha=0.0 = pure keyword, alpha=0.6 = 60/40 blend
  4. Default is semantic-heavy for conversational use cases

Document Update Workflow

  1. Initialize client and ensure index exists
  2. Call addDocs() with new documents (upserts by default — existing IDs are updated)
  3. Call deleteDocs() to remove outdated documents by ID

Voice Agent Context Injection Workflow

This is an opt-in integration pattern for voice agent pipelines — it is not automatic behavior of this skill.

  1. Initialize MossClient and load index at agent startup
  2. In your application code, call query() on each user message to retrieve relevant context
  3. Inject search results into the LLM context before generating a response
  4. Respond with knowledge-grounded answer (no tool-calling latency)

Offline-First Search Workflow

  1. Create index with documents using local embedding model
  2. Load index from local storage
  3. Query runs entirely on-device with sub-10ms latency
  4. Optionally sync to cloud for backup and sharing

Integration

Voice Agent Frameworks

  • LiveKit: Context injection into voice agent pipeline with inferedge-moss SDK
  • Pipecat: Pipeline processor via pipecat-moss package that auto-injects retrieval results

Context

Authentication

SDK requires project credentials:

  • MOSS_PROJECT_ID: Project identifier from Moss Portal
  • MOSS_PROJECT_KEY: Project access key from Moss Portal
export MOSS_PROJECT_ID=your_project_id
export MOSS_PROJECT_KEY=your_project_key

REST API requires the following on every request:

  • x-project-key header: project access key
  • x-service-version: v1 header: API version
  • projectId field in the JSON body
curl -X POST "https://service.usemoss.dev/v1/manage" \
  -H "Content-Type: application/json" \
  -H "x-service-version: v1" \
  -H "x-project-key: moss_access_key_xxxxx" \
  -d '{"action": "listIndexes", "projectId": "project_123"}'

Package Installation

LanguagePackageInstall Command
JavaScript/TypeScript@inferedge/mossnpm install @inferedge/moss
Pythoninferedge-mosspip install inferedge-moss
Pipecat Integrationpipecat-mosspip install pipecat-moss

Document Schema

interface DocumentInfo {
  id: string;        // Required: unique identifier
  text: string;      // Required: content to embed and search
  metadata?: object; // Optional: key-value pairs for filtering
}

Query Parameters

ParameterSDKTypeDefaultDescription
indexNameJS + PythonstringTarget index name (required)
queryJS + PythonstringNatural language search text (required)
topKJSnumber5Max results to return
top_kPythonint5Max results to return
alphaPython onlyfloat~0.8Hybrid weighting: 0.0=keyword, 1.0=semantic
filtersJS + PythonobjectMetadata constraints

Model Selection

ModelUse CaseTradeoff
moss-minilmEdge, offline, browser, speed-firstFast, lightweight
moss-mediumlmPrecision-critical, higher accuracySlightly slower

Performance Expectations

  • Sub-10ms local queries (hardware-dependent)
  • Instant index updates without reindexing entire corpus
  • Sync is optional; compute stays on-device
  • No infrastructure to manage

Chunking Best Practices

  • Aim for ~200–500 tokens per chunk
  • Overlap 10–20% to preserve context
  • Normalize whitespace and strip boilerplate

Common Errors

ErrorCauseFix
UnauthorizedMissing credentialsSet MOSS_PROJECT_ID and MOSS_PROJECT_KEY
Index not foundQuery before createCall createIndex() first
Index not loadedQuery before loadCall loadIndex() before query()
Missing embeddings runtimeInvalid modelUse moss-minilm or moss-mediumlm

Async Pattern

All SDK methods are async — always use await:

// JavaScript
import { MossClient, DocumentInfo } from '@inferedge/moss'
const client = new MossClient(process.env.MOSS_PROJECT_ID!, process.env.MOSS_PROJECT_KEY!)
await client.createIndex('faqs', docs, { modelId: 'moss-minilm' })
await client.loadIndex('faqs')
const results = await client.query('faqs', 'search text', { topK: 5 })
# Python
import os
from inferedge_moss import MossClient, QueryOptions
client = MossClient(os.getenv('MOSS_PROJECT_ID'), os.getenv('MOSS_PROJECT_KEY'))
await client.create_index('faqs', docs, 'moss-minilm')
await client.load_index('faqs')
results = await client.query('faqs', 'search text', QueryOptions(top_k=5, alpha=0.6))

For additional documentation and navigation, see: https://docs.moss.dev/llms.txt

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

86.21%
按下载量换算8,187

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills