Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
CandleEmbed
CandleEmbed is a Rust library for creating embeddings using BERT-based models. It provides a convenient way to load pre-trained models, embed single or multiple texts, and customize the embedding process. It's basically the same code as the candle example for embeddings, but with a nice wrapper. This exists because I wanted to play with Candle, and fastembed.rs doesn't support custom models.fs
Features
-
Enums for most popular embedding models OR specify custom models from HF
-
Support for CUDA devices (requires feature flag)
-
Can load and unload as required for better memory management
Installation
Add the following to your Cargo.toml file:
[]
= "0.1.0"
If you want to use CUDA devices, enable the cuda feature flag:
[]
= { = "0.1.0", = ["cuda"] }
Or you can just clone the repo. It's literally just a single file.
Usage
use ;
Feature Flags
cuda: Enables CUDA support for using GPU devices.
default: No additional features are enabled by default.
License
This project is licensed under the MIT License. Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or find any bugs.