Skip to content
Discussion options

You must be logged in to vote

Hi @afuetterer, thanks for your interest in PDL!

Here's an example that takes the output from an LLM, creates JSON data and outputs the structured data to a file:

defs:
  myfile:
    aggregator: 
      file: myfile.json
text:
- Hello
- model: ollama_chat/granite3.3:8b
  def: out
- data:
    response: ${ out }
  contribute:
  - myfile

Hope this helps. Please let us know if you have any further questions.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@afuetterer
Comment options

@afuetterer
Comment options

Answer selected by afuetterer
Comment options

You must be logged in to vote
1 reply
@afuetterer
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants