sessions

command
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Memory across sessions

Run these commands from the Recall repository against a running Polign server. The example uses constant three-dimensional vectors for exact memory operations, so no embedding service is needed. Use your application's embedder for semantic search. Choose a new collection or subject when you want a fresh demonstration.

# Session 1: remember vim, then correct the preference to neovim.
go run ./examples/sessions -server http://localhost:8080 -action seed

# Session 2: a new process reads the same durable history.
go run ./examples/sessions -server http://localhost:8080 -action inspect

# Append a blanket retraction, then inspect from another process.
go run ./examples/sessions -server http://localhost:8080 -action forget
go run ./examples/sessions -server http://localhost:8080 -action inspect

On a fresh collection, the first two commands show current neovim and vim at the first event. After forgetting, current beliefs are empty, the historical answer remains vim, and the log still contains both assertions and a retraction. inspect constructs a client without an embedder.

Set POLIGN_API_KEY for an authenticated server. A namespaced key selects its namespace through the server's normal authentication; the adapter preserves that credential on every request. -collection and -subject select the data.

For a server restart demonstration, run Polign with durable storage, for example go run ./cmd/server -store fs:/tmp/recall-server from the polign_db repository. After seed, stop and restart that server using the same store, then run inspect. Cold persistence and restart require Polign v0.6.4 or later; v0.6.3 predates that support. This example uses the new Client API from this source checkout, pending its feature release.

Documentation

Overview

sessions demonstrates exact memory across separate client processes. Its constant fixture vector needs no model; use a real embedder for semantic recall.

Jump to

Keyboard shortcuts

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