huginn-mind::index owns what of a document is searchable: index_text is a pure function per kind, Mind::index_entries builds the entries with the writing receipt's ordinal, INDEX_TEXT_VERSION says when the rule changed. huginn-daemon::index owns the projection. A Projector reconciles the mind against the collection at startup (the only place a point is judged missing: set difference on point ids, rebuild when the model name, digest, dimensions or text version differ, refuse a collection that is not this instance's) and one worker thread embeds and upserts in batches of 32, retrying with a 30 s to 10 min backoff. IndexSink::committed builds entries and leaves them in an inbox; admission never waits on the embedder or on Qdrant. Whoami reports the worker's health as IndexStatus. The Ollama and Qdrant adapters are the only files holding HTTP or JSON (ureq 3, no TLS). The daemon now requires --qdrant-url, --ollama-url and --embedding-model; NoIndex leaves the binary. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
46 lines
1.7 KiB
TOML
46 lines
1.7 KiB
TOML
[package]
|
|
name = "huginn-daemon"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
# The organ's CultNet surface: the socket, the sessions, the process lifetime
|
|
# and the operation envelope, and no rule. Every rule, the instance check, the
|
|
# receipt, the status and the wire vocabulary are `huginn-mind`'s, and the leaf
|
|
# and the store type are reached through it so one crate pins one revision.
|
|
[lib]
|
|
name = "huginn_daemon"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "huginn-daemon"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
base64 = "0.22"
|
|
chrono = "0.4.44"
|
|
cultnet-rs = { git = "https://github.com/GameCult/CultLib.git", rev = "6251cbcd37c12ef3f0c1cc50063a03369225b7ac", package = "cultnet-rs" }
|
|
huginn-mind = { path = "../huginn-mind" }
|
|
rmp-serde = "1"
|
|
schemars = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
# The vector store's and the embedder's HTTP APIs are the xenos boundary, and
|
|
# JSON exists in `index/ollama.rs` and `index/qdrant.rs` only. `ureq` 3 with
|
|
# default features off is plain HTTP with no TLS (`rustls` and `gzip` are its
|
|
# only defaults), which is all the private mesh needs. It stays below 3.4,
|
|
# whose `base64` 0.23 would put a second `base64` in a tree that has one.
|
|
serde_json = "1"
|
|
sha2 = "0.10"
|
|
signal-hook = "0.3"
|
|
ureq = { version = "~3.3", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
|
|
# Test-only: `Mind::store_path_for`, the grammar-checked door onto a raw
|
|
# store's path. The daemon's own store-integrity tests reach a store directly
|
|
# (to break a row on purpose) and must go through the same door `open` does
|
|
# rather than reconstructing the path by hand (S3, residue batch).
|
|
huginn-mind = { path = "../huginn-mind", features = ["test-support"] }
|