You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/model-and-source-configuration.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ If a CLI flag is omitted and the matching `DEFAULT_*` key is unset, the value pa
223
223
224
224
## Segment parameters
225
225
226
-
Those configuration keys provide the fallback values; the per-segment parameters below override them and take final precedence at construction time.
226
+
For `llmPrompt`, `llmVisionPrompt`, and `llmEmbed`, only **`model`** and **`source`** fall back to `default_*` config keys when omitted. Every other segment parameter must be set on the segment (ChatterLang or Python); it is not read from `~/.talkpipe.toml` or `TALKPIPE_*` unless noted below for a specific higher-level segment.
227
227
228
228
### `llmPrompt` / `LLMPrompt`
229
229
@@ -269,7 +269,26 @@ segment = LLMVisionPrompt(
269
269
270
270
### `llmEmbed` / `LLMEmbed`
271
271
272
-
Required (directly or via config): `model`, `source`. Optional: `field` (text field to embed), `set_as` (field to store the vector on the item).
272
+
| Parameter | From config? | Notes |
273
+
|-----------|--------------|--------|
274
+
|`model`| Yes — `default_embedding_model_name`| Required if not passed on the segment |
275
+
|`source`| Yes — `default_embedding_model_source`| Required if not passed on the segment |
276
+
|`field`| No | Text field to embed on structured items |
277
+
|`set_as`| No | Field on the item where the vector is stored |
278
+
|`batch_size`| No | Scalar items per provider call (default `1`) |
279
+
|`fail_on_error`| No | Default `true`|
280
+
281
+
**Batching (two patterns):**
282
+
283
+
1.**Built-in buffering** — set `batch_size` greater than `1` on `llmEmbed` to amortize API round-trips without changing upstream segments.
284
+
2.**Composable buffering** — group items with `makeLists`, then embed the batch in one call:
0 commit comments