Typed decision/classification service with an in-process gte-small ONNX embedding engine and lexical fallback, JS/Python SDKs, adapters, and the otsone model family. Apache-2.0 (sub-packages keep their MIT licenses). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
365 B
Python
15 lines
365 B
Python
"""Run with: python examples/quickstart.py"""
|
|
|
|
import json
|
|
from pathlib import Path
|
|
|
|
import laya_mlx as laya
|
|
|
|
root = Path(__file__).parent
|
|
agent = laya.load("aac6fef/laya-mlx")
|
|
result = agent.predict(
|
|
json.loads((root / "state.json").read_text()),
|
|
json.loads((root / "questions.json").read_text()),
|
|
)
|
|
print(json.dumps(result, indent=2, ensure_ascii=False))
|