Directories
¶
| Path | Synopsis |
|---|---|
|
Package bench is a retrieval benchmark harness: it ingests a dataset of memories and scores each question's gold retrieval (Recall@K, MRR) and latency.
|
Package bench is a retrieval benchmark harness: it ingests a dataset of memories and scores each question's gold retrieval (Recall@K, MRR) and latency. |
|
cmd
|
|
|
bench
command
|
|
|
gendocs
command
Command gendocs renders docs/reference/configuration.md from the source of truth: the env-tagged fields on config.Config, their doc comments, and the deprecatedVars table.
|
Command gendocs renders docs/reference/configuration.md from the source of truth: the env-tagged fields on config.Config, their doc comments, and the deprecatedVars table. |
|
memini
command
|
|
|
qa
command
Command qa measures end-to-end QA accuracy (LLM-judged) over a benchmark conversation corpus: ingest into memini (direct upserts or the production write path), answer each question with the shipped service.Answer, and grade against the reference with per-category judge rubrics.
|
Command qa measures end-to-end QA accuracy (LLM-judged) over a benchmark conversation corpus: ingest into memini (direct upserts or the production write path), answer each question with the shipped service.Answer, and grade against the reference with per-category judge rubrics. |
|
internal
|
|
|
api/mcp
Package mcp exposes memini over the Model Context Protocol.
|
Package mcp exposes memini over the Model Context Protocol. |
|
api/render
Package render holds the shared response-projection helpers for memini's API surfaces (REST and MCP): concise content rendering for progressive disclosure, compact display titles, and the content-identity hash clients use for injection dedupe.
|
Package render holds the shared response-projection helpers for memini's API surfaces (REST and MCP): concise content rendering for progressive disclosure, compact display titles, and the content-identity hash clients use for injection dedupe. |
|
api/rest
Package rest provides primitives to interact with the openapi HTTP API.
|
Package rest provides primitives to interact with the openapi HTTP API. |
|
api/ui
Package ui serves memini's embedded single-page admin UI (Preact + Vite).
|
Package ui serves memini's embedded single-page admin UI (Preact + Vite). |
|
apiauth
Package apiauth resolves the bearer-token principal for a request.
|
Package apiauth resolves the bearer-token principal for a request. |
|
chunk
Package chunk splits long memory content into overlapping segments for embedding, so a memory stays searchable past the single-vector budget.
|
Package chunk splits long memory content into overlapping segments for embedding, so a memory stays searchable past the single-vector budget. |
|
contradict
Package contradict classifies a pair of durable memory texts without an LLM: is the new write a restatement of the old fact (corroborate it), an update that contradicts it (the old fact is now stale), or a distinct claim (do nothing)? Embedding similarity cannot make this call — a value swap ("TTL is 10 minutes" → "TTL is 15 minutes") embeds in the same band as a restatement (measured in bench/dedup_test.go) — so this is a lexical differ in the tradition of de Marneffe et al.
|
Package contradict classifies a pair of durable memory texts without an LLM: is the new write a restatement of the old fact (corroborate it), an update that contradicts it (the old fact is now stale), or a distinct claim (do nothing)? Embedding similarity cannot make this call — a value swap ("TTL is 10 minutes" → "TTL is 15 minutes") embeds in the same band as a restatement (measured in bench/dedup_test.go) — so this is a lexical differ in the tradition of de Marneffe et al. |
|
embed
Package embed turns text into dense vectors via an external, OpenAI-compatible embeddings endpoint; memini never embeds locally.
|
Package embed turns text into dense vectors via an external, OpenAI-compatible embeddings endpoint; memini never embeds locally. |
|
extract
Package extract distils conversation prose into durable, classified facts without an LLM — a port of mempalace's heuristic extractor.
|
Package extract distils conversation prose into durable, classified facts without an LLM — a port of mempalace's heuristic extractor. |
|
httputil
Package httputil holds tiny HTTP helpers shared across the REST and /healthz handlers.
|
Package httputil holds tiny HTTP helpers shared across the REST and /healthz handlers. |
|
importer
Package importer bulk-loads memories exported from other memory systems (agentmemory, mem0, mnemory) or memini's own format.
|
Package importer bulk-loads memories exported from other memory systems (agentmemory, mem0, mnemory) or memini's own format. |
|
llm
Package llm holds the opt-in consolidation pipeline: on each write it decides whether a new memory is novel, a refinement, or a contradiction that supersedes an existing one.
|
Package llm holds the opt-in consolidation pipeline: on each write it decides whether a new memory is novel, a refinement, or a contradiction that supersedes an existing one. |
|
logging
Package logging builds the application's slog logger from config.
|
Package logging builds the application's slog logger from config. |
|
maintenance
Package maintenance keeps the store healthy: a background sweeper purges expired memories and bounds short-term capacity, and fsck additionally audits live memories for duplicate (poisoning) clusters.
|
Package maintenance keeps the store healthy: a background sweeper purges expired memories and bounds short-term capacity, and fsck additionally audits live memories for duplicate (poisoning) clusters. |
|
memory
Package memory defines memini's core domain types.
|
Package memory defines memini's core domain types. |
|
nsresolve
Package nsresolve is the transport-free namespace-resolution core behind the config-handshake redesign.
|
Package nsresolve is the transport-free namespace-resolution core behind the config-handshake redesign. |
|
redact
Package redact scrubs live credentials from text before it is persisted.
|
Package redact scrubs live credentials from text before it is persisted. |
|
rerank
Package rerank holds the optional read-side rerank stage of recall: after hybrid retrieval and composite ranking, a reranker reads the query and the candidates together — something embeddings can't — and reorders them by how well each answers the query.
|
Package rerank holds the optional read-side rerank stage of recall: after hybrid retrieval and composite ranking, a reranker reads the query and the candidates together — something embeddings can't — and reorders them by how well each answers the query. |
|
sanitize
Package sanitize provides write-path content hygiene for memini: stripping unambiguous corruption (always-on) and detecting "script-salad" garble (opt-in).
|
Package sanitize provides write-path content hygiene for memini: stripping unambiguous corruption (always-on) and detecting "script-salad" garble (opt-in). |
|
search
Package search fuses results from multiple retrieval strategies (vector, keyword) into a single ranking, via either Reciprocal Rank Fusion (Fuse) or convex-combination score fusion (FuseScores), then re-ranks the result.
|
Package search fuses results from multiple retrieval strategies (vector, keyword) into a single ranking, via either Reciprocal Rank Fusion (Fuse) or convex-combination score fusion (FuseScores), then re-ranks the result. |
|
server
Package server wires the HTTP surface: middleware, health probes, metrics, graceful shutdown, and a chi router that other packages mount routes onto.
|
Package server wires the HTTP surface: middleware, health probes, metrics, graceful shutdown, and a chi router that other packages mount routes onto. |
|
store
Package store defines the storage abstraction memini retrieves memories through.
|
Package store defines the storage abstraction memini retrieves memories through. |
|
version
Package version exposes build metadata, injected via -ldflags at build time.
|
Package version exposes build metadata, injected via -ldflags at build time. |
Click to show internal directories.
Click to hide internal directories.