Skip to main content

holographic_memory/core/
mod.rs

1// Copyright 2024-2026 WritersLogic Contributors
2// SPDX-License-Identifier: Apache-2.0
3
4#[cfg(not(target_arch = "wasm32"))]
5pub mod admin;
6#[cfg(not(target_arch = "wasm32"))]
7pub(crate) mod admission;
8#[cfg(not(target_arch = "wasm32"))]
9pub mod agency;
10pub(crate) mod durable_file;
11pub(crate) mod schema;
12// Experimental VSA research modules. Reachable only from the `src/bin/*`
13// experiment harnesses (or fully orphaned) and not used by `HmsCore`. Gated
14// behind the `experimental` feature so they are not part of the crate's
15// published public API. See CONTRIBUTING for the codebook-first roadmap.
16#[cfg(feature = "experimental")]
17pub mod algebra;
18#[cfg(feature = "experimental")]
19pub mod algebraic_codebook;
20#[cfg(not(target_arch = "wasm32"))]
21pub(crate) mod atom_memory;
22#[cfg(not(target_arch = "wasm32"))]
23pub(crate) mod audit;
24#[cfg(feature = "experimental")]
25pub mod block_codes;
26#[cfg(feature = "experimental")]
27pub mod bloom_memory;
28#[cfg(feature = "experimental")]
29pub mod bundle_subset;
30#[cfg(feature = "experimental")]
31pub mod cls_memory;
32#[cfg(not(target_arch = "wasm32"))]
33pub mod cognition;
34#[cfg(feature = "experimental")]
35pub mod compose;
36#[cfg(feature = "experimental")]
37pub mod counting_bloom_memory;
38// Living connection-graph: plastic, event-sourced holographic relation store.
39// Experimental and opt-in; does not touch the sparse-binary core.
40#[cfg(not(target_arch = "wasm32"))]
41pub(crate) mod composite_memory;
42pub(crate) mod config;
43#[cfg(feature = "experimental")]
44pub mod connection_graph;
45#[cfg(not(target_arch = "wasm32"))]
46pub(crate) mod decompose;
47// Phasor relational memory: rotation-typed relations over a quantized-phase
48// histogram field -- relation algebra + retrieval the sparse core cannot do.
49#[cfg(not(target_arch = "wasm32"))]
50pub(crate) mod diffusion;
51pub mod documents;
52#[cfg(feature = "local-embed")]
53pub mod embed;
54pub mod encoding;
55#[cfg(not(target_arch = "wasm32"))]
56pub mod engine;
57pub mod entangled;
58pub(crate) mod error;
59#[cfg(not(target_arch = "wasm32"))]
60pub mod format;
61#[cfg(not(target_arch = "wasm32"))]
62pub(crate) mod graph;
63pub mod hardware;
64pub mod hopfield;
65pub(crate) mod idf;
66#[cfg(not(target_arch = "wasm32"))]
67pub(crate) mod index;
68#[cfg(not(target_arch = "wasm32"))]
69pub(crate) mod indexed_memory;
70pub mod intersection;
71#[cfg(not(target_arch = "wasm32"))]
72pub(crate) mod ivf;
73#[cfg(feature = "security")]
74pub mod mask;
75#[cfg(not(target_arch = "wasm32"))]
76pub mod memory_api;
77#[cfg(feature = "local-models")]
78pub mod models;
79#[cfg(not(target_arch = "wasm32"))]
80pub(crate) mod nsg;
81#[cfg(feature = "experimental")]
82pub mod operand_retriever;
83#[cfg(feature = "experimental")]
84pub mod phase_graph;
85pub mod phase_hvec;
86pub mod phase_resonator;
87pub(crate) mod posting;
88#[cfg(feature = "private-search")]
89pub mod private_query;
90#[cfg(feature = "provenance")]
91pub mod provenance;
92#[cfg(not(target_arch = "wasm32"))]
93pub mod qgraph;
94#[cfg(not(target_arch = "wasm32"))]
95pub(crate) mod role;
96#[cfg(not(target_arch = "wasm32"))]
97pub(crate) mod rules;
98#[cfg(not(target_arch = "wasm32"))]
99pub(crate) mod security;
100#[cfg(feature = "security")]
101pub use security::scrub_stack;
102pub(crate) mod os_memory;
103#[cfg(target_arch = "x86_64")]
104pub(crate) mod simd_math;
105pub mod sparse;
106#[cfg(feature = "experimental")]
107pub mod sparse_autoencoder;
108#[cfg(not(target_arch = "wasm32"))]
109pub(crate) mod storage;
110#[cfg(not(target_arch = "wasm32"))]
111pub(crate) mod store_lock;
112#[cfg(feature = "experimental")]
113pub mod ternary;
114pub(crate) mod text;
115pub(crate) mod tombstone;
116#[cfg(not(target_arch = "wasm32"))]
117pub(crate) mod triple_store;
118pub(crate) mod types;
119
120pub use config::HmsConfig;
121#[cfg(not(target_arch = "wasm32"))]
122pub use engine::HmsCore;
123pub use phase_hvec::PhaseHVec;
124pub use phase_resonator::{
125    phase_resonator_factorize, FactorResult, PhaseResonator, ResonatorConfig,
126};
127pub use schema::EmbeddingSpace;