Skip to main content

writerslogic_warm/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;
10#[cfg(not(target_arch = "wasm32"))]
11pub(crate) mod atom_memory;
12#[cfg(not(target_arch = "wasm32"))]
13pub(crate) mod audit;
14#[cfg(not(target_arch = "wasm32"))]
15pub mod cognition;
16#[cfg(not(target_arch = "wasm32"))]
17pub(crate) mod composite_memory;
18pub(crate) mod config;
19#[cfg(not(target_arch = "wasm32"))]
20pub(crate) mod decompose;
21#[cfg(not(target_arch = "wasm32"))]
22pub(crate) mod diffusion;
23pub mod documents;
24pub(crate) mod durable_file;
25#[cfg(feature = "local-embed")]
26pub mod embed;
27pub mod encoding;
28#[cfg(feature = "experimental")]
29pub mod experimental;
30pub(crate) mod schema;
31#[cfg(feature = "experimental")]
32pub use experimental::{
33    algebraic_codebook, block_codes, bloom_memory, bundle_subset, connection_graph,
34    counting_bloom_memory, operand_retriever, phase_graph,
35};
36#[cfg(not(target_arch = "wasm32"))]
37pub mod engine;
38pub mod entangled;
39pub(crate) mod error;
40#[cfg(not(target_arch = "wasm32"))]
41pub mod format;
42#[cfg(not(target_arch = "wasm32"))]
43pub(crate) mod graph;
44pub mod hardware;
45pub(crate) mod hash;
46pub mod hopfield;
47pub(crate) mod idf;
48#[cfg(not(target_arch = "wasm32"))]
49pub(crate) mod index;
50#[cfg(not(target_arch = "wasm32"))]
51pub(crate) mod indexed_memory;
52pub mod intersection;
53#[cfg(not(target_arch = "wasm32"))]
54pub(crate) mod ivf;
55#[cfg(feature = "security")]
56pub mod mask;
57#[cfg(not(target_arch = "wasm32"))]
58pub mod memory_api;
59#[cfg(feature = "local-models")]
60pub mod models;
61#[cfg(not(target_arch = "wasm32"))]
62pub(crate) mod nsg;
63pub mod phase_hvec;
64pub mod phase_resonator;
65pub(crate) mod posting;
66#[cfg(feature = "private-search")]
67pub mod private_query;
68#[cfg(feature = "provenance")]
69pub mod provenance;
70#[cfg(not(target_arch = "wasm32"))]
71pub mod qgraph;
72pub mod query_limits;
73#[cfg(not(target_arch = "wasm32"))]
74pub(crate) mod role;
75#[cfg(not(target_arch = "wasm32"))]
76pub(crate) mod rules;
77#[cfg(not(target_arch = "wasm32"))]
78pub(crate) mod security;
79#[cfg(not(target_arch = "wasm32"))]
80pub use index::sparse_impact;
81#[cfg(feature = "security")]
82pub use security::scrub_stack;
83pub(crate) mod os_memory;
84#[cfg(target_arch = "x86_64")]
85pub(crate) mod simd_math;
86pub mod sparse;
87#[cfg(not(target_arch = "wasm32"))]
88pub(crate) mod storage;
89#[cfg(not(target_arch = "wasm32"))]
90pub(crate) mod store_lock;
91pub(crate) mod sync;
92pub(crate) mod text;
93pub(crate) mod tombstone;
94#[cfg(not(target_arch = "wasm32"))]
95pub(crate) mod triple_store;
96pub(crate) mod types;
97
98pub use config::WarmConfig;
99pub use config::WarmConfig as HmsConfig;
100#[cfg(not(target_arch = "wasm32"))]
101pub use engine::WarmCore;
102#[cfg(not(target_arch = "wasm32"))]
103pub use engine::WarmCore as HmsCore;
104pub use phase_hvec::PhaseHVec;
105pub use phase_resonator::{
106    phase_resonator_factorize, FactorResult, PhaseResonator, ResonatorConfig,
107};
108pub use schema::EmbeddingSpace;
109pub(crate) const MAX_RAW_FRAME_SIZE: usize = 50 * 1024 * 1024;