Powered by OpenAIRE graph
Found an issue? Give us feedback
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/ ZENODOarrow_drop_down
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Preprint . 2026
License: CC BY NC ND
Data sources: ZENODO
ZENODO
Preprint . 2026
License: CC BY NC ND
Data sources: Datacite
ZENODO
Preprint . 2026
License: CC BY NC ND
Data sources: Datacite
versions View all 2 versions
addClaim

YantrikDB: A Cognitive Memory Engine for Persistent AI Systems

Authors: Sarkar, Pranab;

YantrikDB: A Cognitive Memory Engine for Persistent AI Systems

Abstract

Current AI systems suffer from a fundamental limitation: they lack persistent, structured memory that mirrors human cognitive processes. Vector databases provide similarity search but discard temporal context, emotional weight, and relational structure. This paper presents YantrikDB, an embedded cognitive memory engine that unifies five index types---vector (HNSW), knowledge graph, temporal, decay heap, and key-value---within a single embedded database. YantrikDB introduces three novel contributions: (1) a multi-signal retrieval scoring function with relevance-gated importance amplification that prevents high-importance memories from dominating low-relevance queries; (2) a contradiction-aware memory lifecycle with CRDT-based replication, where conflicts are first-class data structures triaged by severity; and (3) a proactive cognition loop that autonomously detects patterns, surfaces decaying memories, and generates behavioral triggers without external prompting. I evaluate YantrikDB on a synthetic benchmark of 40 golden queries across 12 retrieval categories, demonstrating that multi-signal scoring with graph expansion outperforms pure vector similarity baselines. The engine is implemented in 16,000 lines of Rust with Python bindings and operates as an embedded library requiring no external services. YantrikDB is designed for AI companions, autonomous agents, and any system that must remember, learn, and act on accumulated experience.

Keywords

memory consolidation, knowledge graph, cognitive memory, CRDT replication, proactive cognition, YantrikDB, vector database

  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
0
Average
Average
Average