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;
10#[cfg(feature = "mock")]
11pub mod in_memory_store;
12pub mod qdrant_ops;
13pub mod response_cache;
14pub mod semantic;
15pub mod snapshot;
16pub mod sqlite;
17pub mod sqlite_vector_store;
18#[cfg(any(test, feature = "mock"))]
19pub mod testing;
20pub mod token_counter;
21pub mod types;
22pub mod vector_store;
23
24#[cfg(feature = "pdf")]
25pub use document::PdfLoader;
26pub use document::{
27    Chunk, Document, DocumentError, DocumentLoader, DocumentMetadata, IngestionPipeline,
28    SplitterConfig, TextLoader, TextSplitter,
29};
30pub use embedding_registry::{
31    EmbedFuture, Embeddable, EmbeddingRegistry, EmbeddingRegistryError, SyncStats,
32};
33pub use embedding_store::ensure_qdrant_collection;
34pub use error::MemoryError;
35pub use qdrant_ops::QdrantOps;
36pub use response_cache::ResponseCache;
37pub use snapshot::{ImportStats, MemorySnapshot, export_snapshot, import_snapshot};
38pub use sqlite::corrections::UserCorrectionRow;
39pub use token_counter::TokenCounter;
40pub use types::{ConversationId, MessageId};
41pub use vector_store::{
42    FieldCondition, FieldValue, ScoredVectorPoint, VectorFilter, VectorPoint, VectorStore,
43    VectorStoreError,
44};