1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! LoCoMo benchmark harness — thin wrapper over recall-echo's retrieval primitives.
//!
//! Exposes two operations to the benchmark runner:
//!
//! 1. [`ingest_conversation`] — write a LoCoMo conversation as N entity sessions
//! (one archive per session, dated correctly), then trigger graph extraction.
//! 2. [`answer_question`] — answer a question using hybrid retrieval
//! (graph query + archive ranked search + MEMORY.md), call an LLM, return
//! the predicted answer plus the retrieval trace as JSON.
//!
//! This module is intentionally a *thin* facade: every call ultimately drives
//! the same code paths an entity exercises at runtime. Score validity depends
//! on that, so do not reimplement archive format, retrieval, or extraction here.
use ;
pub use ;
pub use ;
// ── Dataset shape ────────────────────────────────────────────────────────
/// One speaker turn inside a LoCoMo session.
/// One LoCoMo session: a header date plus an ordered list of turns.
///
/// The `date_time` is the raw string from the dataset (e.g. `"22 May 2023"`)
/// so ingestion can normalize it however needed.
/// A full LoCoMo conversation: identity of both speakers and N sessions.