Skip to content

konjoai/kohaku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ¦€ Kōhaku

Language ML License Status

🧠 Episodic memory engine for LLMs β€” persistent, associative, and beyond context windows.


πŸ‚ Meaning

Kōhaku (η₯珀) β€” amber, preserved in time.

Like insects trapped in amber, memories are captured, compressed, and preserved β€” not lost to context limits.


πŸš€ What it is

Kōhaku is a neural episodic memory system:

  • Stores experiences as HDC hypervectors
  • Retrieves via associative similarity
  • Works as a drop-in memory layer for any LLM

Not:

  • ❌ RAG
  • ❌ vector database

But:

βœ… learned memory with recall


❗ The problem

LLMs forget.

  • Context windows are finite
  • RAG loses nuance
  • Summaries lose detail

There is no true memory system.


🧠 What you learn

  • Hyperdimensional computing (HDC)
  • Associative memory / Hopfield networks
  • Memory-augmented architectures
  • Episodic vs semantic memory

βš™οΈ Architecture

  • πŸ¦€ Rust core β€” high-performance HDC engine
  • 🐍 Python API β€” LLM integration

πŸš€ Quick Start

pip install kohaku
from kohaku import Memory

mem = Memory()
mem.store("User prefers Italian wine")
mem.query("What does the user like?")

🎯 Vision

Give models memory β€” not just context.

About

πŸ¦€ Kohaku β€” Neural episodic memory engine 🧠 using HDC hypervectors. Stores long-term context πŸ“š and retrieves via associative recall πŸ”—β€”a persistent memory layer beyond RAG for LLMs ✨

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors