Skip to main content

p_memory/
lib.rs

1//! Shared, offline storage and retrieval for memories, graphs and notes.
2//!
3//! SQLite is authoritative. Full-text indexes are replayable projections.
4//! Model requests and filesystem watching belong to callers.
5
6mod error;
7mod schema;
8mod storage;
9mod index;
10pub mod events;
11pub mod text;
12pub mod types;
13pub mod memory;
14pub mod graph;
15pub mod graph_search;
16pub mod notes;
17pub mod embeddings;
18pub mod search;
19pub mod preset;
20pub mod legacy;
21pub mod protocol;
22
23pub use error::{Error, Result};
24pub use events::LogEvent;
25pub use storage::KnowledgeBase;
26pub use types::*;
27pub use memory::{Memory, MemoryInput, MemoryState, DecayPolicy, FeedbackRequest};
28pub use graph::{Entity, EntityInput, Relation, RelationInput, Event, EventInput, GraphBatch};
29pub use notes::{Note, NoteFileInput, Chunk};
30pub use embeddings::{EmbeddingSpace, Embedder, EmbedderOptions, EmbedCallbackError, EmbedErrorKind, SyncReport};
31pub use search::{SearchRequest, SearchResult, SearchHit, ChunkRef, GraphPrune, ContextualHit, Reranker, RerankerOptions};
32pub use preset::{SearchPreset, PresetBudget, PresetRequest, PresetResult, GraphSection, NoteSection};
33