Skip to content

Commit a5bac0d

Browse files
committed
First class aggregators (#706)
Signed-off-by: Louis Mandel <[email protected]>
1 parent 30c2ece commit a5bac0d

File tree

18 files changed

+1032
-298
lines changed

18 files changed

+1032
-298
lines changed

.github/actions/ollama/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ runs:
2020
run: |
2121
ollama pull granite3.2:2b
2222
ollama pull granite3.2:8b
23+
ollama pull granite3.3:2b
2324
ollama pull granite3.3:8b
2425
ollama pull mxbai-embed-large
2526
ollama list
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
defs:
2+
log:
3+
aggregator:
4+
file: /tmp/log.txt
5+
text:
6+
- Hello
7+
- model: ollama_chat/granite3.3:2b
8+
parameters:
9+
temperature: 0
10+
contribute: [ result, context, log ]
11+
- nice to meet you.
12+
- model: ollama_chat/granite3.3:2b
13+
parameters:
14+
temperature: 0
15+
modelResponse: raw_response
16+
contribute:
17+
- result
18+
- log:
19+
value: ${raw_response}
20+
- Bye
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
text:
2+
- Hello
3+
- text: Before model call
4+
contribute: [ stderr ]
5+
- model: ollama_chat/granite3.3:2b
6+
parameters:
7+
temperature: 0
8+
- contribute:
9+
- stderr:
10+
value: After model call
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
text:
2+
- Hello
3+
- text: Before model call
4+
contribute: [ stdout ]
5+
- model: ollama_chat/granite3.3:2b
6+
parameters:
7+
temperature: 0
8+
- contribute:
9+
- stdout:
10+
value: After model call

0 commit comments

Comments
 (0)