Skip to content

Epic 150: real AI semantic meaning via ONNX entity embeddings - #110

Merged
rsasaki0109 merged 1 commit into
mainfrom
agent/epic150-ai-semantic
Aug 7, 2026
Merged

Epic 150: real AI semantic meaning via ONNX entity embeddings#110
rsasaki0109 merged 1 commit into
mainfrom
agent/epic150-ai-semantic

Conversation

@rsasaki0109

Copy link
Copy Markdown
Owner

Summary

Connects real ONNX inference to spatial semantic entities, turning point-cloud features into searchable embeddings.

Deliverables

  • 150A spatialrust-semantic::OnnxEntityEmbedder (model feature): embeds entity feature vectors through an already-open ModelSession with explicit CopyPolicy, validating feature count, finiteness, output shape, and bytes. Never loads a model or picks a backend.
  • 150B Committed 134-byte ONNX double_dynamic.onnx fixture (Add: [1,3]→[1,3] doubling) driving a facade integration test through the real ONNX Runtime: feature → session → EmbeddingSemanticSearchIndex.
  • Facade semantic-model feature wiring; 9 semantic unit tests + 2 ONNX integration tests.

Contract

  • Copy permission and device placement stay explicit; the embedder performs no hidden transfer.
  • semantic default build and spatialrust-semantic default stay dependency-light; ONNX remains behind ai-onnxruntime.
  • The fixture encodes no learned weights — it proves wiring only.

Verification

  • cargo test -p spatialrust-semantic --features model — 9 tests
  • cargo test -p spatialrust --features "ai-onnxruntime semantic-model" --test onnx_semantic — 2 tests
  • clippy -D warnings clean; cargo fmt --all --check clean; workspace tests pass

Add OnnxEntityEmbedder to spatialrust-semantic behind a model feature: it
runs entity feature vectors through an already-open model session with
explicit copy policy and produces an Embedding for the semantic search
index. Wire the facade semantic-model feature and add an integration test
that drives a committed 134-byte ONNX Add fixture through the real ONNX
Runtime path (feature -> session -> embedding -> search).
@rsasaki0109
rsasaki0109 merged commit 96482b0 into main Aug 7, 2026
101 checks passed
@rsasaki0109
rsasaki0109 deleted the agent/epic150-ai-semantic branch August 7, 2026 11:00
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