ingest

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package ingest implements dual-stream memory ingestion. Based on MAGMA (arxiv:2601.03236) and GAM (arxiv:2604.12285).

Yaad is a memory layer — it does NOT call LLM APIs directly. Yaad stores, retrieves, and organizes memories.

Fast path (sync): non-blocking — store node + temporal edge, return immediately. Slow path (async): background goroutine — heuristic causal inference, entity linking.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DualStream

type DualStream struct {
	// contains filtered or unexported fields
}

DualStream manages fast + slow path ingestion.

func New

func New(eng *engine.Engine) *DualStream

New creates a DualStream ingestion manager.

func (*DualStream) Remember

func (ds *DualStream) Remember(ctx context.Context, in engine.RememberInput) (*storage.Node, error)

Remember is the fast path: stores node + temporal edge synchronously, then enqueues slow-path work (heuristic causal inference) asynchronously.

func (*DualStream) Stop

func (ds *DualStream) Stop()

Stop gracefully shuts down the slow-path worker.

type SlowPathJob

type SlowPathJob struct {
	NodeID  string
	Content string
	Project string
	Eng     *engine.Engine
	Graph   graph.Graph
}

SlowPathJob is a unit of work for the slow path.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL