-
Notifications
You must be signed in to change notification settings - Fork 4
CLI Companion Db
The maintenance verbs. They exist because of one structural rule: the vault and the episodes are append-only and immutable, and everything above them is derived and disposable.
Usage:
ed companion db [migrate] [--json] [--endpoint <url>]
ed companion db reindex [--json] [--endpoint <url>]
ed companion db rebuild-derived [--json] [--endpoint <url>]
ed companion db migrate (also the bare default) applies any migration the backend
has not run. It runs on boot too, so this is for when you deploy without a restart.
ed companion db reindex drops the chunks. ed companion index then
embeds every episode again, which is what you want after changing the embedding model
or the chunker.
ed companion db rebuild-derived is the bigger hammer and the reason the ladder is
built this way. It drops the chunks, retires every belief and closes every fact,
keeping the episodes untouched, so the next nightly run derives the whole upper
memory again with the current prompts. This is your "I improved the extraction
prompt" button, and it is only cheap because nothing above the episodes was ever the
original.
Both reindex and rebuild-derived are destructive maintenance operations.
They do not touch episodes or vault originals, but search is incomplete until
indexing finishes. rebuild-derived also retires active, contested and already
superseded beliefs, and expires every open fact. Export first when you need an
easy rollback of derived state.
Every JSON response includes action. The remaining keys are nullable strings:
{action,chunksDropped,beliefsRetired,factsExpired,episodesKept}. migrate
returns all four count fields as null. reindex sets only chunksDropped.
rebuild-derived sets all four counts.
-
ed companion index, what rebuilds the chunks -
ed companion exportanded companion wipe, the data itself rather than what is derived from it - Memory, why the ladder is arranged this way
-
ed companion, the rest of this group - All
edcommands
Auto-generated from docs/, edit the docs in the repo, not the wiki.
CLI reference
Companion
- Deploy
- Concepts
- Concepts Memory
- Concepts Ingestion
- Concepts Search
- Concepts Chat
- Concepts Learning
- Concepts Brain
- Concepts Friend
- Hosts
- Stack
- Status
- Doctor
- Search
- Index
- Ingest
- Episodes
- Sync
- Observations
- Reflect
- Beliefs
- Ask
- Extract
- Claims
- Corroborate
- Runs
- Chat
- Conversations
- Forget
- Export
- Import
- Erase
- Wipe
- Episode
- Nightly
- Reason
- Personas
- Council
- Lenses
- Core
- Why
- Hypotheses
- Predictions
- Commitments
- Discrepancies
- Calibration
- Inquire
- Entities
- Eval
- Standup
- Machines
- Baselines
- Connectors
- Facts
- Correct
- Weekly
- Db
Guides