Repository navigation
Conversation
Add embedTextViaRust and RustHashingEmbedder (local_hashing_rust) selected by createEmbedderFromEnv when BER_RUST_CORE=1 and ber-core is on PATH. Neural embedder fallbacks use the same default hashing backend. CI rust job builds release ber-core and runs rust-embeddings tests. Co-authored-by: Shaharyar Ahmad <shehrii9@users.noreply.github.com>
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
Completes roadmap item #3 — wire
ber-coreembeddings end-to-end for L3 experience similarity.embedTextViaRust()— callsber-core embedwhenBER_RUST_CORE=1RustHashingEmbedder(local_hashing_rust) — used bycreateEmbedderFromEnv()when the binary is onPATH; falls back to TypeScriptHashingEmbedderon failureber-core, runstests/rust-embeddings.test.tswithBER_RUST_CORE=1Vectors match TypeScript
embedText()bit-for-bit (verified in tests whenber-coreis available).Usage
Testing
npm test(56 tests)BER_RUST_CORE=1 PATH=target/release:$PATH npm test -- tests/rust-embeddings.test.ts