Function fastembed::read_file_to_bytes
source ยท pub fn read_file_to_bytes(file: &PathBuf) -> Result<Vec<u8>>Expand description
Public function to read a file to bytes. To be used when loading local model files.
Could be used to read the onnx file from a local cache in order to constitute a UserDefinedEmbeddingModel.