Skip to content

Epic 150C: Python ONNX entity embedder - #111

Merged
rsasaki0109 merged 2 commits into
mainfrom
agent/epic150-python-embedder
Aug 7, 2026
Merged

Epic 150C: Python ONNX entity embedder#111
rsasaki0109 merged 2 commits into
mainfrom
agent/epic150-python-embedder

Conversation

@rsasaki0109

Copy link
Copy Markdown
Owner

Summary

Exposes the Epic 150 ONNX entity embedder in the Python extension.

Deliverables

  • OnnxEntityEmbedder pyclass: constructed with an existing OnnxRuntimeSession, input/output tensor names and shapes, and copy policy; embed() returns a NumPy embedding vector plus its dimension.
  • Gated by the onnxruntime wheel feature (which now also enables semantic-model); the double_dynamic.onnx-style test proves the real ONNX path doubles [1,2,3][2,4,6].
  • Typed .pyi stub and a wheel-gate pytest.

Verification

  • pytest -k onnx: 2 tests pass (session binding + embedder)
  • cargo build --manifest-path crates/spatialrust-py/Cargo.toml --features onnxruntime clean
  • clippy clean; cargo fmt --all --check clean; workspace tests pass

Expose OnnxEntityEmbedder in the Python extension: it embeds point-entity
feature vectors through an existing OnnxRuntimeSession and returns a NumPy
embedding plus its dimension, gated by the onnxruntime wheel feature. The
double_dynamic.onnx fixture proves the real ONNX path doubles [1,2,3] to
[2,4,6]. Add typed stub and wheel-gate test.
@rsasaki0109
rsasaki0109 merged commit 01f0760 into main Aug 7, 2026
105 checks passed
@rsasaki0109
rsasaki0109 deleted the agent/epic150-python-embedder branch August 7, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant