Package com.tnsai.memory.advanced
package com.tnsai.memory.advanced
Advanced memory module: vector search, BM25 text search, Reciprocal Rank
Fusion hybrid retrieval, skill memory, importance scoring, staleness
detection, and session persistence.
-
ClassDescriptionBM25 (Okapi BM25) index for text-based memory retrieval.Raised when an embedding vector does not match the dimension of its target.Functional interface for computing text embeddings.Decorators for composing
EmbeddingFunctioninstances.Combines BM25 text search and vector semantic search via Reciprocal Rank Fusion.Computes importance scores for memory entries based on a weighted combination of recency, frequency, and relevance.Reciprocal Rank Fusion (RRF) for combining multiple ranked result lists.A memory entry paired with a retrieval score.RestoresTieredMemoryStorestate from a JSON session file.SerializesTieredMemoryStorestate to JSON for session persistence.A structured skill extracted from agent experience.File-based store for structured Markdown skill files.Detects contradictions between memory entries via Jaccard similarity on token sets.Storage backend forVectorMemoryStore.In-memory vector store for semantic search over memory entries.