Skip to content

First class aggregators #706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
b226df0
First class aggregators
mandel Mar 6, 2025
b6a9e0e
Merge branch 'main' into pdl-aggregators
mandel Mar 6, 2025
61bdc51
Progress
mandel Mar 7, 2025
397261b
Merge branch 'main' into pdl-aggregators
mandel Mar 7, 2025
4979c08
Fix typing
mandel Mar 8, 2025
9452c19
Merge branch 'main' into pdl-aggregators
mandel Mar 10, 2025
28919ab
Contribute to user aggregators
mandel Mar 10, 2025
daf3ee4
Functional implementation of the aggregators
mandel Mar 11, 2025
5718045
Fix static checks
mandel Mar 12, 2025
d6c0120
Merge branch 'main' into pdl-aggregators
mandel Mar 28, 2025
39396ca
Fix warnings
mandel Mar 28, 2025
7411884
Merge branch 'main' into pdl-aggregators
mandel Apr 4, 2025
0289e4a
Merge branch 'main' into pdl-aggregators
mandel Apr 4, 2025
cb63c69
Fix for Python 3.11
mandel Apr 4, 2025
3056322
Contributed values can be of any type
mandel Apr 7, 2025
881572b
Bug fix
mandel Apr 7, 2025
c30ed93
Merge branch 'main' into pdl-aggregators
mandel Jun 25, 2025
0feedbb
Merge branch 'main' into pdl-aggregators
mandel Jun 26, 2025
a4518dd
Fix merge
mandel Jun 26, 2025
e9c1988
fix test
mandel Jun 30, 2025
1765a8d
Fix UI
mandel Jun 30, 2025
6805246
Update example
mandel Jun 30, 2025
ab82ae9
Update example
mandel Jun 30, 2025
87ae8b5
Download granite3.3:2b in github action
mandel Jun 30, 2025
72c874e
Rename `messages` aggregator into `context`
mandel Jul 1, 2025
592edf0
`stdout` and `stderr` as contribute target + other fixes
mandel Jul 1, 2025
6bf1ff8
Update schema
mandel Jul 2, 2025
3e1d2a7
Update example
mandel Jul 2, 2025
a124cfa
Fix tests and dumper
mandel Jul 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/ollama/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ runs:
run: |
ollama pull granite3.2:2b
ollama pull granite3.2:8b
ollama pull granite3.3:2b
ollama pull granite3.3:8b
ollama pull mxbai-embed-large
ollama list
Expand Down
20 changes: 20 additions & 0 deletions examples/aggregators/contribute_in_file.pdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
defs:
log:
aggregator:
file: /tmp/log.txt
text:
- Hello
- model: ollama_chat/granite3.3:2b
parameters:
temperature: 0
contribute: [ result, context, log ]
- nice to meet you.
- model: ollama_chat/granite3.3:2b
parameters:
temperature: 0
modelResponse: raw_response
contribute:
- result
- log:
value: ${raw_response}
- Bye
10 changes: 10 additions & 0 deletions examples/aggregators/contribute_in_stderr.pdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
text:
- Hello
- text: Before model call
contribute: [ stderr ]
- model: ollama_chat/granite3.3:2b
parameters:
temperature: 0
- contribute:
- stderr:
value: After model call
10 changes: 10 additions & 0 deletions examples/aggregators/contribute_in_stdout.pdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
text:
- Hello
- text: Before model call
contribute: [ stdout ]
- model: ollama_chat/granite3.3:2b
parameters:
temperature: 0
- contribute:
- stdout:
value: After model call
Loading