Skip to main content

Crate memd

Crate memd 

Source

Re-exports§

pub use chunking::chunk_text;
pub use chunking::Chunk;
pub use chunking::ChunkingConfig;
pub use compaction::AuditResult;
pub use compaction::CompactionConfig;
pub use compaction::CompactionManager;
pub use compaction::CompactionMetrics;
pub use compaction::CompactionThresholds;
pub use compaction::Throttle;
pub use compaction::ThrottleConfig;
pub use compaction::TombstoneAudit;
pub use config::load_config;
pub use config::Config;
pub use config::ServerConfig;
pub use embeddings::CandleEmbedder;
pub use embeddings::Embedder;
pub use embeddings::EmbeddingConfig;
pub use embeddings::EmbeddingResult;
pub use embeddings::MockEmbedder;
pub use error::MemdError;
pub use error::Result;
pub use experience::export_bundle as export_experience_bundle;
pub use experience::get as get_experience;
pub use experience::import_bundle as import_experience_bundle;
pub use experience::record as record_experience;
pub use experience::record_check;
pub use experience::resolve_case as resolve_experience_case;
pub use experience::retrieve_lessons;
pub use experience::validate_check_target;
pub use experience::ApplicableLesson;
pub use experience::CaseFile;
pub use experience::CheckReceipt;
pub use experience::CheckTarget;
pub use experience::ConditionalLesson;
pub use experience::ExperienceBundleV1;
pub use experience::ExperienceCase;
pub use experience::ExperienceContext;
pub use experience::ExperienceEvent;
pub use experience::ExperienceResolutionState;
pub use experience::ImportReport;
pub use experience::LessonApplicability;
pub use experience::LessonQuery;
pub use experience::LessonRecall;
pub use experience::LessonVisibility;
pub use experience::RecallAbstention;
pub use experience::RecordEvent;
pub use experience::SourceFingerprint;
pub use experience::SourceFingerprintCoverage;
pub use index::HnswConfig;
pub use index::HnswIndex;
pub use index::SearchResult;
pub use logging::init_logging;
pub use metrics::IndexStats;
pub use metrics::LatencyStats;
pub use metrics::MetricsCollector;
pub use metrics::MetricsSnapshot;
pub use metrics::QueryMetrics;
pub use metrics::Timer;
pub use metrics::TokenUsageStats;
pub use metrics::ToolTokenAggregate;
pub use metrics::ToolTokenUsage;
pub use ops::configure_operation_routing;
pub use retrieval::ChunkWithMeta;
pub use retrieval::CrossEncoderReranker;
pub use retrieval::FeatureReranker;
pub use retrieval::FusedResult;
pub use retrieval::FusionCandidate;
pub use retrieval::FusionSource;
pub use retrieval::RankedResult;
pub use retrieval::RerankerConfig;
pub use retrieval::RerankerContext;
pub use retrieval::RerankerEngine;
pub use retrieval::RerankerMode;
pub use retrieval::RrfConfig;
pub use retrieval::RrfFusion;
pub use store::MemoryStore;
pub use store::PersistentStore;
pub use store::PersistentStoreConfig;
pub use store::Store;
pub use store::StoreStats;
pub use store::TenantManager;
pub use structural::detect_language;
pub use structural::parse_file;
pub use structural::ExtractedSymbol;
pub use structural::LanguageSupport;
pub use structural::ParseResult;
pub use structural::QueryIntent;
pub use structural::QueryRouter;
pub use structural::RouteResult;
pub use structural::StructuralStore;
pub use structural::SupportedLanguage;
pub use structural::SymbolExtractor;
pub use structural::SymbolIndexer;
pub use structural::SymbolKind;
pub use structural::SymbolRecord;
pub use task_memory::build_project_brief_digest_artifact;
pub use task_memory::build_project_brief_view;
pub use task_memory::build_task_projections;
pub use task_memory::build_task_resume_digest_artifact;
pub use task_memory::build_task_resume_view;
pub use task_memory::derive_artifact_promotion_state;
pub use task_memory::derive_artifact_trust_tier;
pub use task_memory::derive_chunk_promotion_state;
pub use task_memory::derive_chunk_trust_tier;
pub use task_memory::infer_decision_items;
pub use task_memory::infer_evidence_items;
pub use task_memory::infer_failure_items;
pub use task_memory::infer_highlight_items;
pub use task_memory::ArtifactKind;
pub use task_memory::ContributorRef;
pub use task_memory::DatasetRef;
pub use task_memory::DecisionViewItem;
pub use task_memory::EntityRef;
pub use task_memory::EvidenceViewItem;
pub use task_memory::ExecutionContext;
pub use task_memory::FailureViewItem;
pub use task_memory::HighlightViewItem;
pub use task_memory::ProjectBriefView;
pub use task_memory::ProjectionKind;
pub use task_memory::RunDigestItem;
pub use task_memory::TaskArtifact;
pub use task_memory::TaskArtifactWriteResult;
pub use task_memory::TaskProjection;
pub use task_memory::TaskProvenance;
pub use task_memory::TaskRecord;
pub use task_memory::TaskResumeView;
pub use task_memory::TaskSearchFilters;
pub use task_memory::TrustTier;
pub use task_memory::DIGEST_ROLE_DECISION_LIBRARY;
pub use task_memory::DIGEST_ROLE_EVIDENCE_LIBRARY;
pub use task_memory::DIGEST_ROLE_FAILURE_LIBRARY;
pub use task_memory::DIGEST_ROLE_HIGHLIGHT_LIBRARY;
pub use task_memory::DIGEST_ROLE_PROJECT_BRIEF;
pub use task_memory::DIGEST_ROLE_TASK_RESUME;
pub use text::CodeTokenizer;
pub use text::ProcessedSentence;
pub use text::Sentence;
pub use text::SentenceSplitter;
pub use text::TextProcessor;
pub use tiered::AccessEvent;
pub use tiered::AccessTracker;
pub use tiered::AccessTrackerConfig;
pub use tiered::CacheEntry;
pub use tiered::CacheHit;
pub use tiered::CacheStats;
pub use tiered::CachedResult;
pub use tiered::HotTier;
pub use tiered::HotTierConfig;
pub use tiered::HotTierStats;
pub use tiered::PromotionScore;
pub use tiered::SemanticCache;
pub use tiered::SemanticCacheConfig;
pub use types::ChunkId;
pub use types::ChunkStatus;
pub use types::ChunkType;
pub use types::MemoryChunk;
pub use types::ProjectId;
pub use types::PromotionState;
pub use types::Source;
pub use types::TenantId;

Modules§

auto_priority
Heuristic priority stamping for memd add (Phase 1).
chunking
Document chunking for long-form text
cli
CLI mode for direct operation invocation
compaction
Compaction module for memd
config
Configuration module for memd
consolidate
LLM-backed memory consolidation (Phase 2).
dedup
Track D conflict-aware ingestion helpers.
embeddings
Embeddings module for vector generation
error
Error types for memd
experience
Typed, causal experience records stored in canonical task artifacts.
hit_stats
Retrieval exposure counting.
index
Index module for vector and lexical search.
logging
Structured logging setup for memd
maintenance
Manual retention and compaction maintenance for memory.dream.
markdown_export
Track G — pure markdown projection.
mcp
Local operation handlers and compatibility internals.
metrics
Metrics collection and reporting
omf
OMF 1.0 (Open Memory Format) — JSON interchange types and top-level validator.
ops
Protocol-neutral operation handlers.
post_write_hooks
Post-write hooks fired by operation handlers after store writes succeed.
retrieval
Retrieval pipeline: fusion, reranking, and context packing
store
Storage module for memd
structural
Structural indexing module for AST-based code analysis.
task_memory
Scientific/task-oriented memory schema and retrieval projections.
text
Text processing module for code-aware tokenization and sentence splitting.
tiered
Tiered storage for hot tier and caching
types
Core domain types for memd
write_admission
Write-admission guardrails for public memory writes.
write_service
Protocol-neutral preparation for every non-artifact memory write.