Skip to content

CLI Companion Index

github-actions[bot] edited this page Aug 16, 2026 · 2 revisions

ed companion index

Embeds pending episodes and stores their searchable chunks.

Usage:

ed companion index [--json] [--endpoint <url>]

Options:

Name Type / values Default What it does
--json flag off Emits one JSON document on stdout.
--endpoint URL resolution order Uses this Companion API base URL.

--json shape:

{
  "chunksCreated": 9,
  "episodesIndexed": 3
}

episodesIndexed counts episodes completed by this request, and chunksCreated counts the searchable chunks created for them.

Examples:

$ ed companion index
indexed 3 episodes into 9 chunks

$ ed companion index --json
{
  "chunksCreated": 9,
  "episodesIndexed": 3
}

Behaviour: this mutating command sends POST /v1/index with an empty body. Only episodes without chunks are indexed, up to 500 oldest episodes per pass, with embeddings requested in batches of 16. The client allows five minutes for the request. If the embedding service returns HTTP 502, the command names the Ollama embedding service, leaves stdout empty, and exits 4. Database and other backend failures exit 1.

Where to go next

CLI reference

Getting Started
Config
App
Extensions
Permissions
Usage
System
Music
Calendar
Clipboard
Color
Download
Apps
Tools
Shelf
Cleaner
Machines
Machines Remote
Machines Docker
Machines Files
Machines Power
Machines Workspace
Companion
Herdr
Lid Awake
Machines Thermal

Guides

Clone this wiki locally