Skip to main content

zeph_memory/
lib.rs

1// SPDX-FileCopyrightText: 2026 Andrei G <bug-ops>
2// SPDX-License-Identifier: MIT OR Apache-2.0
3
4//! SQLite-backed conversation persistence with Qdrant vector search.
5
6pub mod document;
7pub mod embedding_registry;
8pub mod embedding_store;
9pub mod error;
10pub mod eviction;
11#[cfg(feature = "graph-memory")]
12pub mod graph;
13#[cfg(feature = "mock")]
14pub mod in_memory_store;
15pub mod qdrant_ops;
16pub mod response_cache;
17pub mod router;
18pub mod semantic;
19pub mod snapshot;
20pub mod sqlite;
21pub mod sqlite_vector_store;
22#[cfg(any(test, feature = "mock"))]
23pub mod testing;
24pub mod token_counter;
25pub mod types;
26pub mod vector_store;
27
28#[cfg(feature = "pdf")]
29pub use document::PdfLoader;
30pub use document::{
31    Chunk, Document, DocumentError, DocumentLoader, DocumentMetadata, IngestionPipeline,
32    SplitterConfig, TextLoader, TextSplitter,
33};
34pub use embedding_registry::{
35    EmbedFuture, Embeddable, EmbeddingRegistry, EmbeddingRegistryError, SyncStats,
36};
37pub use embedding_store::ensure_qdrant_collection;
38pub use error::MemoryError;
39pub use eviction::{EbbinghausPolicy, EvictionConfig, EvictionPolicy, start_eviction_loop};
40#[cfg(feature = "graph-memory")]
41pub use graph::{Community, Edge, Entity, EntityType, GraphFact, GraphStore};
42pub use qdrant_ops::QdrantOps;
43pub use response_cache::ResponseCache;
44pub use router::{HeuristicRouter, MemoryRoute, MemoryRouter};
45#[cfg(feature = "graph-memory")]
46pub use semantic::{ExtractionStats, GraphExtractionConfig, extract_and_store};
47pub use snapshot::{ImportStats, MemorySnapshot, export_snapshot, import_snapshot};
48pub use sqlite::corrections::UserCorrectionRow;
49pub use token_counter::TokenCounter;
50pub use tokio_util::sync::CancellationToken;
51pub use types::{ConversationId, MessageId};
52pub use vector_store::{
53    FieldCondition, FieldValue, ScoredVectorPoint, VectorFilter, VectorPoint, VectorStore,
54    VectorStoreError,
55};