| Crates.io | candle-semantic-router |
| lib.rs | candle-semantic-router |
| version | 0.4.0 |
| created_at | 2025-08-22 02:10:48.870581+00 |
| updated_at | 2025-08-22 02:10:48.870581+00 |
| description | Go bindings for Candle BERT semantic similarity model for LLM routing |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1805801 |
| size | 208,412 |
This directory contains Go bindings and tests for the candle_semantic_router native library.
cargo (Rust's build tool)Before running the Go tests, you must build the native library using Rust:
cd candle-binding
cargo build --release
This will produce the library file (e.g., libcandle_semantic_router.dylib on macOS) in candle-binding/target/release/.
After building the native library, run the Go tests:
cd candle-binding
# If needed, set the library path (macOS):
export DYLD_LIBRARY_PATH=$(pwd)/target/release:$DYLD_LIBRARY_PATH
go test -v
-v flag enables verbose output.go test -v -run TestName
Replace TestName with the name of the test function.library 'candle_semantic_router' not found, make sure you have built the native library and that the library file exists in target/release/.DYLD_LIBRARY_PATH (macOS) or LD_LIBRARY_PATH (Linux) includes the path to the built library.