Skip to content

Amadeus 0.18 Alpha memory integration - #321

Merged
Lucas1479 merged 28 commits into
mainfrom
codex/eidema-release-integration
Nov 28, 2026
Merged

Lucas1479 merged 28 commits into
mainfrom
codex/eidema-release-integration

Conversation

@Lucas1479

@Lucas1479 Lucas1479 commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Overview

Amadeus 0.18 Alpha adds persistent memory to the desktop. You can save and manage notes, ask the character to recall material across sessions, and opt in to forming memories from new conversations. Amadeus owns session identity, permissions, and delivery. Eidema is pinned as a separately installable Python SDK for storage, search, and evidence tracking. Eidema 0.2.0 Alpha 3 SDK

Try it in the desktop

  1. Install this PR branch in an isolated profile and open Settings → General → Memory. The installed SDK should read Eidema 0.2.0a3. Optional local Jina ONNX Q4 weights enable multilingual semantic search alongside SQLite FTS5. Installation and model setup
  2. Enable Let the character look up memories and restart the backend. In chat, open Memory and save a short synthetic note. In a new session, ask about it or use Search saved memories from the composer. Correct or forget the note and check how the next recall changes.
  3. To try background formation, configure a DeepSeek API key in Models, enable Automatically build memories from new chats, and restart the backend. Use a fresh synthetic conversation. In Memory → Review suggestions, inspect the supporting quotes and save or dismiss a suggestion. You can turn formation off and keep using the saved notes.
Setting What it enables
Let the character look up memories The character can look up saved notes and eligible conversation evidence. The note manager is available with this switch off.
Automatically build memories from new chats The Host indexes eligible new messages and can produce memory suggestions in a separate background request. Older, unenrolled conversations require a separate import.

Both switches start off, take effect after backend restart, and preserve saved notes when turned off.

Runtime and data flow

Path Where it runs and what it can do
Recall during a conversation Session originals, SQLite, FTS5, local embeddings and candidate retrieval stay on the desktop. The Host checks scope, permissions and source revisions. A cloud character's model provider receives the evidence used for the reply and may also receive candidate excerpts for selection during a button-initiated lookup.
Background formation With formation enabled and a key configured, a separate bounded request sends eligible source text, speaker roles and record times to DeepSeek Flash in low-reasoning mode at api.deepseek.com. A validated, attributable verbatim user report can become a source-dependent note. Other suggestions can be reviewed in the Memory panel. A suggestion saved by the user becomes an independent note.
Background comparison The desktop Alpha pauses new comparison requests. Existing proposals can be inspected and dismissed.

The Host tracks the exact note and source versions used by a reply. Corrections, withdrawal and forgetting can prevent reuse in model history and queued speech. The forget confirmation lists affected notes, including automatic notes removed with a linked source. Ordinary chat uses the standard reply flow. Automatic injection requires a separate experimental configuration. Persona settings and execution permissions stay with Amadeus. Evidence and invalidation API

Validation of this candidate

  • All 8 GitHub Actions workflows passed on b537e4d7, including Windows, Linux, macOS, Electron and source packaging. Windows passed its three Python suites, installed-runtime checks and packaged desktop smoke. Candidate checks
  • Local qualification passed 451 related Python regressions, 791 Electron tests, 28 packaging tests and the desktop frontend build. Regressions cover follow-up after lookup with formation off, disclosure of linked forget effects, and confirmation with 101 associated notes.
  • The source-release PR check validates the code-only archive. The public application source bundle will be built from the merged revision with the pinned pronunciation dictionary and updated manifest and checksums.

Recall research, latency and cost

These results are from earlier Amadeus research builds with CPU Jina ONNX Q4 and GPT-6.1 Terra for explicit lookup and answering. The desktop default role uses DeepSeek Flash with thinking disabled.

Cohort Earlier configuration Research candidate
LongMemEval-S development subset 48/79 64/79
LongMemEval-S independent holdout, strict grounding 26/38 29/38
Internal synthetic dialogue, prior live run — 18/24

In the development subset, multi-session recall improved from 1/12 to 7/12 and temporal reasoning from 3/7 to 6/7. Correct abstention went from 12/12 to 11/12. Twenty-five development questions had appeared in earlier comparisons. The internal 18/24 came from an earlier live run. The candidate's 36-turn replay checked requests, evidence reads and displayed replies against fixed receipts.

  • Evidence budget. The public runs initially supplied at most eight evidence groups, 1,024 estimated evidence tokens and 8,192 bytes. An eligible follow-up could deliver newly found evidence. These limits cover the evidence packet. Provider token usage also includes prompts and replies.
  • Measured stages. On the 79-question run, p50/p95 was 65/84 ms for local retrieval, 1.95/2.87 s for remote evidence selection and 2.15/3.09 s from Host validation to evidence ready. These measurements end before the reply is displayed or spoken.
  • Opt-in formation cost. A 32-request Flash Low run had 70.5% cached input. Applying the recorded DeepSeek off-peak CN¥ rates to that usage gives about ¥0.63 total, or ¥0.02 per request. The actual bill depends on the cache mix, reasoning output and time of use. Local indexing and search make zero API calls. Full benchmark, budget and pricing methodology

Desktop acceptance

The next gate is paired text and voice testing in the actual desktop with fresh synthetic conversations. It checks that the character sounds natural, uses memory when it helps, stays quiet when it should, and handles people, dates, corrections and forgetting correctly. Measure screen first text, first audible speech and first complete grounded answer separately. Ordinary chat targets ≤200 ms added p95 for both first text and first audio. This gate also records when background formation creates useful candidates. In-app acceptance #322

Follow-up presentation. Add a character-specific recall expression after the initial Alpha. Start it when the Host confirms a lookup and clear it when the reply begins, the turn is interrupted, or the session changes. The expression uses existing turn events. Tracked in #322

中文概览

0.18 Alpha 接通手动记忆管理、跨会话查阅和可独立开启的后台形成。「允许角色查阅记忆」开启后,即使关闭「从新对话自动积累记忆」,已有笔记仍可用。后台形成使用独立的 DeepSeek Flash Low 请求,云端角色也可能收到用于选材的获准摘录。桌面已暂停新发起的冷比较。

修复候选 b537e4d7 的 8 个工作流全通过。公开题成绩来自早期 Terra 研究构建。默认 Flash 的角色自然度、首字和首音按 #322 实测后再公开发布。「回忆表情」扩充已记为后续体验增强,表情由真实查阅事件触发,并随回答开始或轮次结束收起。

@Lucas1479
Lucas1479 marked this pull request as ready for review November 28, 2026 09:06
@Lucas1479
Lucas1479 merged commit 3147d04 into main Nov 28, 2026
18 checks passed
@Lucas1479
Lucas1479 deleted the codex/eidema-release-integration branch November 28, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant