RAII wrapper for xvecHnswFlatIndexTag.
More...
#include <xvec_hnsw_flat_index.hpp>
RAII wrapper for xvecHnswFlatIndexTag.
Manages the lifetime of an HNSW-Flat index: loaded via a named factory and destroyed in the destructor. Move-only (not copyable).
- Note
- Destroy this wrapper before its execution context. Index device memory remains allocated until context destruction; see Index resource lifetime.
Definition at line 57 of file xvec_hnsw_flat_index.hpp.
◆ ~HnswFlatIndex()
| virtual xvec::HnswFlatIndex::~HnswFlatIndex |
( |
| ) |
|
|
virtual |
◆ HnswFlatIndex() [1/2]
◆ HnswFlatIndex() [2/2]
◆ fromDescriptor()
Load an HNSW-Flat index from a FAISS-free descriptor (and upload it to device).
- Parameters
-
| context | Execution context handle (not owned). |
| descriptor | Fully-populated index descriptor (borrowed for the call). |
- Exceptions
-
- See also
- xvecHnswFlatDescriptor
◆ fromFaissFile()
| static HnswFlatIndex xvec::HnswFlatIndex::fromFaissFile |
( |
xvecExecutionContextTag * |
context, |
|
|
const std::string & |
path |
|
) |
| |
|
static |
Load an HNSW-Flat index from a Faiss file (and upload it to device).
- Parameters
-
| context | Execution context handle (not owned). |
| path | Path to the Faiss index file (.faiss). |
- Exceptions
-
◆ handle()
| xvecHnswFlatIndexTag* xvec::HnswFlatIndex::handle |
( |
| ) |
const |
|
noexcept |
Get the underlying C API handle.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: