InferEdge MOSS SDK
raw JSON → 1.0.0b19 verified Tue Apr 28 auth: no python
Python SDK for semantic search with on-device AI capabilities. Version 1.0.0b19, pre-release with frequent updates.
pip install inferedge-moss==1.0.0b19 Common errors
error ImportError: cannot import name 'MOSSClient' from 'moss' ↓
cause The import path changed from 'moss' to 'inferedge_moss'.
fix
Use 'from inferedge_moss import MOSSClient'.
error TypeError: Client.__init__() got an unexpected keyword argument 'api_key' ↓
cause API key parameter was renamed to 'api_key' from 'key' in v1.0.0b18.
fix
Pass the API key as 'api_key' when initializing MOSSClient.
Warnings
breaking The module name changed from 'moss' to 'inferedge_moss' in v1.0.0b17. Old imports will break. ↓
fix Update import statements: from inferedge_moss import MOSSClient
gotcha The SDK requires Python >=3.10. Running on older versions will fail with syntax errors. ↓
fix Upgrade Python to 3.10 or later.
deprecated The 'search_sync' method is deprecated in favor of 'search'. Using it may cause warnings. ↓
fix Replace search_sync with search.
Imports
- MOSSClient wrong
from moss import MOSSClientcorrectfrom inferedge_moss import MOSSClient
Quickstart
from inferedge_moss import MOSSClient
client = MOSSClient(api_key='your-api-key')
result = client.search('quantum computing', top_k=3)
print(result)