🔍 Not looking for Rust?
- Python 🐍: BM42 with FastEmbed
- JavaScript 🌐: BM42-js
📥 Installation
Run the following command in your project directory:
Or add the following line to your Cargo.toml:
[]
= "0"
📖 Usage
Generating Sparse Embeddings
use ;
// With default InitOptions
let bm42 = BM42try_new.unwrap;
// With custom BM42Options
let bm42_options = BM42Options ;
let texts = vec!;
// Generate embeddings for indexing
let doc_embeddings = bm42.embed.unwrap;
// Generate embeddings for querying
let query_embeddings = bm42.query_embed.unwrap;
📄 LICENSE
Apache 2.0 © 2024