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>
20 lines
431 B
Python
20 lines
431 B
Python
import json
|
|
import sys
|
|
|
|
from .engine import run_local
|
|
|
|
|
|
def main() -> None:
|
|
raw = sys.stdin.read()
|
|
if not raw.strip():
|
|
print("Usage: echo '{...request...}' | python -m openjev_engine", file=sys.stderr)
|
|
sys.exit(2)
|
|
req = json.loads(raw)
|
|
out = run_local(req, req.get("model") or "system-one")
|
|
json.dump(out, sys.stdout, indent=2)
|
|
sys.stdout.write("\n")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|