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
@@ -22,7 +22,7 @@ We are open to contributions in all areas of our core Pipelex library:
22
22
- Install dependencies: `make install` (creates .venv and installs dependencies)
23
23
- Copy `.env.example` to `.env` and fill in required API keys (at least OpenAI)
24
24
- Run checks to make sure all is good: `make check` & `make test`
25
-
- Create a branch with the format user_name/category/short_slug where category is one of: `feature`, `fix`, `refactor`, `doc`, `cicd` or `chore`
25
+
- Create a branch with the format user_name/category/short_slug where category is one of: `feature`, `fix`, `refactor`, `docs`, `cicd` or `chore`
26
26
- Make and commit changes
27
27
- Push your local branch to your fork
28
28
- Open a PR that [links to an existing Issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) which does not include the `needs triage` label
Copy file name to clipboardExpand all lines: docs/pages/build-reliable-ai-workflows-with-pipelex/pipe-operators/PipeLLM.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,18 @@ Analyze the document page shown in the image and explain how it relates to the p
121
121
|`images`| list of strings |**Deprecated**: Use the `inputs` section to declare image inputs instead. | No |
122
122
|`structuring_method`| string | The method for generating structured output. Can be `direct` or `preliminary_text`. Defaults to the global configuration. | No |
123
123
|`prompt_template_to_structure`| string | The prompt template for the second step in `preliminary_text` mode. | No |
124
+
|`nb_output`| integer | Specifies exactly how many outputs to generate (e.g., `nb_output = 3` for exactly 3 outputs). Use when you need a fixed number of results. Mutually exclusive with `multiple_output`. | No |
125
+
|`multiple_output`| boolean | Controls output generation mode. Default is `false` (single output). Set to `true` for variable-length list generation when you need an indeterminate number of outputs. Mutually exclusive with `nb_output`. | No |
126
+
127
+
### Output Generation Modes
128
+
129
+
`PipeLLM` supports three different output generation modes:
130
+
131
+
1.**Single Output** (default): Don't specify `nb_output` or `multiple_output`, or set `multiple_output = false`. The LLM generates exactly one result.
132
+
133
+
2.**Fixed Multiple Outputs**: Use `nb_output = N` (where N is a positive integer) when you need exactly N outputs. For example, `nb_output = 3` will try to generate 3 results. The parameter `_nb_output` will be available in the prompt template, e.g. "Give me the names of $_nb_output flowers".
134
+
135
+
3.**Variable Multiple Outputs**: Use `multiple_output = true` when you need a variable-length list where the LLM determines how many outputs to generate based on the content and context.
124
136
|`output_multiplicity`| string or integer | Defines the number of outputs. Use `"list"` for a variable-length list, or an integer (e.g., `3`) for a fixed-size list. | No |
0 commit comments