-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
73 lines (65 loc) · 3.17 KB
/
Copy pathCargo.toml
File metadata and controls
73 lines (65 loc) · 3.17 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[package]
name = "recall-echo"
version = "4.3.0"
edition = "2021"
description = "Persistent memory system with knowledge graph — for any LLM tool"
license = "MPL-2.0"
repository = "https://github.com/dnacenta/recall-echo"
keywords = ["ai", "memory", "llm", "conversation", "knowledge-graph"]
categories = ["command-line-utilities"]
authors = ["dnacenta"]
readme = "README.md"
[dependencies]
clap = { version = "4", features = ["derive"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
dirs = "6"
# Graph — knowledge graph with SurrealDB + fastembed
# Pinned to the 3.2 series: the embedded store's on-disk record format is
# tied to the surrealdb-core version (3.0/3.1 cannot read a 3.2-written
# store — "Invalid revision `2` for type `Node`"). `cargo install` resolves
# dependencies fresh unless `--locked`, so a loose "3" lets a fresh install
# write a format the pinned build cannot read. Bump deliberately, with a
# migration note.
surrealdb = { version = "3.2", default-features = false }
fastembed = { version = "4", default-features = false, features = ["ort-download-binaries", "hf-hub-rustls-tls"] }
tokio = { version = "1", features = ["rt-multi-thread", "process", "io-util", "net", "time", "sync", "macros"] }
chrono = { version = "0.4", features = ["serde"] }
thiserror = "2"
futures = "0.3"
regex = "1"
async-trait = "0.1"
# LLM HTTP provider (optional) — for entity extraction via Anthropic/OpenAI-compat APIs
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "charset", "http2"], optional = true }
# Pulse-null integration (optional) — plugin system for pulse-null entities
pulse-system-types = { version = "0.6", optional = true }
# Self-update (optional) — unpack the release tar.gz the `update` command downloads.
# tar without default features: we copy the one entry ourselves, so xattr and
# timestamp preservation are dead weight.
flate2 = { version = "1", optional = true }
tar = { version = "0.4", default-features = false, optional = true }
[features]
# Both storage backends are compiled in by default; the active one is chosen
# at runtime via the `[graph] mode` config key (embedded | server).
# `llm` is on by default: without it the `graph extract` subcommand does not
# exist, so a stock install ingests episodes that can never become entities —
# the knowledge graph's whole point. Extraction still requires a configured
# provider at run time; it just stops being unreachable at compile time.
default = ["embedded", "server", "llm", "self-update"]
embedded = ["surrealdb/kv-surrealkv"]
server = ["surrealdb/protocol-ws"]
llm = ["reqwest"]
# `recall-echo update` — self-update from GitHub releases
self-update = ["reqwest", "dep:flate2", "dep:tar"]
pulse-null = ["pulse-system-types"]
# LoCoMo benchmark harness — exposes ingest/answer primitives via library API
# and a `bench` CLI subcommand. Requires the `llm` feature to answer questions.
bench = ["llm"]
[dev-dependencies]
tempfile = "3"
tokio = { version = "1", features = ["rt", "macros"] }
# The release binary is what `update` downloads on every upgrade; unstripped
# it carries ~26MB of symbol table for nothing.
[profile.release]
strip = "symbols"