usearch_bytes_view_t bytes_view(std::string_view text) noexcept; The path extension picks the layout: a .safegraphs path is one monolith, and a .safegraphs.json path is a manifest cataloging many.
usearch_bytes_view_t const path = us::bytes_view("index.safegraphs");
us::status_t const saved = index.on(executor).save(path);
auto [loaded, loaded_status] = us::dense_index_t::load_ram({.path = path});
auto [gpu, gpu_status] = us::executor_t::for_vram({.vram = {.devices = devices, .devices_count = 1}});
auto [placed, placed_status] = us::dense_index_t::load_vram({.path = path, .vram = {.devices = devices, .devices_count = 1}}, gpu);
auto [viewed, viewed_status] = us::dense_index_t::view_ram({.path = path}); // read-only, served from the mapping
auto [metadata, metadata_status] = us::dense_index_t::metadata_read({.path = path}); // geometry without loading a shardCheckpoints are residency-portable: one file materializes into RAM, uploads to a device, or opens in place on disk, decided by the constructor that reads it.
The metadata carries only the four fields a checkpoint froze, so values_per_key and the placement stay yours to set in the load arguments. view_ram answers status_code_t::unsupported_k until RAM shards can serve a mapping in place.
A stopped save leaves leftovers every reader rejects, which are yours to remove.
In-memory buffers hold single monoliths only, through save_buffer, load_ram_buffer or load_vram_buffer, and metadata_read_buffer.
auto [arena, arena_status] = us::arena_t::make({.executor = executor.handle()});
auto [monolith, status] = index.on(executor).save_buffer(arena);
auto [restored, restored_status] = us::dense_index_t::load_ram_buffer({.buffer = monolith});