| Crates.io | vecs_file |
| lib.rs | vecs_file |
| version | 0.1.0 |
| created_at | 2024-03-14 07:00:04.887533+00 |
| updated_at | 2024-03-14 07:00:04.887533+00 |
| description | vecs file reader (fvecs, ivecs, bvecs) |
| homepage | |
| repository | https://github.com/fclaude/vecs_file |
| max_upload_size | |
| id | 1173076 |
| size | 11,380 |
Crate for reading the format used for DEEP1B.
Read a file with read_vecs_file. You can read i32, f32 and u8 vecs files.
vecs_file::read_vecs_file::<i32>(path_to_file);
read_vecs_file returns a Result that is either a structure called Vectors<T> of a VecsError. The Vectors<T> structure implements functions to access individual vectors.
The crate also provides utility functions to write a vecs file, and a reader/writer from a stream. This allows reading/writing by blocks if needed.