ONNX search provider - #39
Draft
ollieatkinson wants to merge 12 commits into
Draft
Conversation
ollieatkinson
force-pushed
the
oliver--onnx-search-spike
branch
2 times, most recently
from
May 27, 2026 08:55
2ab9062 to
0f363bf
Compare
ollieatkinson
force-pushed
the
oliver--onnx-search-spike
branch
from
May 27, 2026 11:52
e7e2481 to
6ec4cd3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Finishes the ONNX search spike into a narrow shippable shape for Linux/Android follow-up, with Windows left as the next runtime path.
CLexiconONNXRuntime, a small C shim that dynamically loads ONNX Runtime for Linux/Android/Windows builds.Validation
Latest local validation after merging current
trunk:swift build --product lexicon -Xswiftc -warnings-as-errorsswift build --product lexicon --traits MLXSearch -Xswiftc -warnings-as-errorsswift build --product lexicon --traits ONNXSearch -Xswiftc -warnings-as-errorsswift build --product lexicon --traits MLXSearch,ONNXSearch -Xswiftc -warnings-as-errorsswift test -Xswiftc -warnings-as-errorsEarlier spike validation also covered artifact setup:
swift package --disable-sandbox --allow-writing-to-package-directory setup-onnx-search-artifacts -- --preset all-MiniLM-L6-v2swift package --disable-sandbox --allow-writing-to-package-directory setup-onnx-search-artifacts -- --skip-model --runtime linux-x64swift package --disable-sandbox --allow-writing-to-package-directory setup-onnx-search-artifacts -- --skip-model --runtime androidswift package --disable-sandbox --allow-writing-to-package-directory setup-onnx-search-artifacts -- --preset bge-small-en-v1.5swift package --disable-sandbox --allow-writing-to-package-directory setup-onnx-search-artifacts -- --preset gte-smallswift package --disable-sandbox --allow-writing-to-package-directory setup-onnx-search-artifacts -- --preset e5-small-v2Cross-build attempts for Linux and Android reached the Lexicon ONNX/C shim sources, then stopped because the installed Swift SDKs were 6.3.1 while the host compiler was 6.3.2. The docs call out that the Swift SDK must match the host compiler version.