- PROMPTBOOK URL https://promptbook.example.com/samples/postprocessing-2.ptbk.md@v1
- PROMPTBOOK VERSION 1.0.0
- INPUT PARAMETER {sentence} Sentence to be processed
- OUTPUT PARAMETER
{parsedSentence}
%% 🔮 Tip: Open this on GitHub or in the VSCode website to see the Mermaid graph visually
flowchart LR
subgraph "✨ Sample: Parsing data to JSON"
direction TB
input((Input)):::input
templateQuestion("💬 Question")
input--"{sentence}"-->templateQuestion
templateQuestion--"{parsedSentence}"-->output
output((Output)):::output
classDef input color: grey;
classDef output color: grey;
end;
- MODEL VARIANT Completion
- MODEL NAME
gpt-3.5-turbo-instruct
- POSTPROCESSING
trimEndOfCodeBlock
- Expect JSON
Dark horse hopping over the fence.
\`\`\`json
{
"subject": "horse",
"action": "hopping",
"object": "fence"
}
\`\`\`
---
{sentence}
\`\`\`json
-> {parsedSentence}