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/README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ PDL provides the following features:
23
23
24
24
The PDL interpreter takes a PDL program as input and generates data by executing its instructions (calling out to models, code, etc...).
25
25
26
-
See below for a quick reference, followed by [installation notes](#interpreter_installation) and an [overview](#overview) of the language. A more detailed description of the language features can be found in this [tutorial](https://ibm.github.io/prompt-declaration-language/tutorial).
26
+
See below for a quick reference, followed by [installation notes](#interpreter-installation) and an [overview](#overview) of the language. A more detailed description of the language features can be found in this [tutorial](https://ibm.github.io/prompt-declaration-language/tutorial).
The Live Explorer can be installed as follows (MacOS):
52
52
```
53
-
brew install pdl
53
+
brew install pdl
54
54
```
55
55
56
56
For other platforms, see installation notes.
57
57
58
58
You can run PDL with LLM models in local using [Ollama](https://ollama.com), or other cloud service.
59
-
See [here](https://ibm.github.io/prompt-declaration-language/tutorial/#using-ollama-models) for
59
+
See [here](https://ibm.github.io/prompt-declaration-language/tutorial/#using-ollama-models) for
60
60
instructions on how to install an Ollama model locally.
61
61
62
62
Most examples in this repository use IBM Granite models on [Ollama](https://ollama.com) and some are on [Replicate](https://replicate.com/). In order to run these examples, you need to create a free account
@@ -172,7 +172,7 @@ text:
172
172
temperature: 0
173
173
```
174
174
175
-
Notice the syntactic differences. Model ids on watsonx start with `watsonx`.
175
+
Notice the syntactic differences. Model ids on watsonx start with `watsonx`.
176
176
177
177
Watsonx also provides a text completion endpoint as shown in the following example. A text completion endpoint does not take chat
178
178
templates into account:
@@ -299,10 +299,10 @@ When we execute this program with the PDL interpreter, we obtain the following t
299
299
@SuppressWarnings("unchecked")
300
300
public static Map<String, String> deserializeOffsetMap(String lastSourceOffset) throws IOException {
301
301
Map<String, String> offsetMap;
302
-
if (lastSourceOffset == null || lastSourceOffset.isEmpty()) {
303
-
offsetMap = new HashMap<>();
302
+
if (lastSourceOffset == null || lastSourceOffset.isEmpty()) {
Once the process is complete, a file `optimized_gsm8k.pdl` is written in same directory as the source PDL file. This file contains the optimal configuration and is directly executable by the standard PDL interpreter. A log of the optimization process is written to `experiments/` by default.
176
+
Once the process is complete, a file `optimized_gsm8k.pdl` is written in same directory as the source PDL file. This file contains the optimal configuration and is directly executable by the standard PDL interpreter. A log of the optimization process is written to `experiments/` by default.
0 commit comments