Skip to content

Table of Contents

Module inferedge_moss

Moss Semantic Search SDK

Powerful Python SDK for semantic search using state-of-the-art embedding models.

Example:

```python
from inferedge_moss import MossClient, DocumentInfo, AddDocumentsOptions

client = MossClient('your-project-id', 'your-project-key')

# Create documents
docs = [DocumentInfo(id="1", text="Example document")]

# Create index with documents
await client.create_index('my-index', docs, 'moss-minilm')

# Load an existing index from cloud storage
index_id = await client.load_index('my-knowledge-base')
results = await client.query(index_id, 'search query', alpha=0.5)
```

AddDocumentsOptions

DocumentInfo

GetDocumentsOptions

IndexInfo

IndexStatus

IndexStatusValues

ModelRef

QueryResultDocumentInfo

SearchResult

MossClient