|
Continuum C++ API
Unified runtime for token + tensor execution
|
#include <memory_graph.hpp>
Classes | |
| struct | RetrievalResult |
Public Member Functions | |
| MemoryGraphStore (std::size_t max_nodes=8192) | |
| std::uint64_t | add_node (MemoryNode node) |
| std::optional< MemoryNode > | get_node (std::uint64_t id) const |
| std::vector< RetrievalResult > | retrieve_similar (const std::vector< float > &query_embedding, std::size_t max_results=5, float min_similarity=0.7f, const std::string &cache_namespace={}) const |
| void | clear () |
| std::size_t | size () const |
| std::size_t | max_nodes () const |
| Capacity in nodes passed at construction. | |
| std::size_t | estimated_bytes () const |
| Approximate resident bytes: content, embeddings, ids, and per-node overhead. | |
Memory-graph recall tier: an append-only log of prompt / completion nodes retrieved by embedding similarity.
Eviction: first-in-first-out by insertion order. Recall is a scan, so a read does not refresh a node; when size() reaches max_nodes the oldest node is dropped before the new one is added.
|
explicit |
| std::uint64_t continuum::runtime::MemoryGraphStore::add_node | ( | MemoryNode | node | ) |
| void continuum::runtime::MemoryGraphStore::clear | ( | ) |
| std::size_t continuum::runtime::MemoryGraphStore::estimated_bytes | ( | ) | const |
Approximate resident bytes: content, embeddings, ids, and per-node overhead.
| std::optional< MemoryNode > continuum::runtime::MemoryGraphStore::get_node | ( | std::uint64_t | id | ) | const |
|
inline |
Capacity in nodes passed at construction.
| std::vector< RetrievalResult > continuum::runtime::MemoryGraphStore::retrieve_similar | ( | const std::vector< float > & | query_embedding, |
| std::size_t | max_results = 5, |
||
| float | min_similarity = 0.7f, |
||
| const std::string & | cache_namespace = {} |
||
| ) | const |
| std::size_t continuum::runtime::MemoryGraphStore::size | ( | ) | const |