Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.1 KB

45-expect-json.ptbk.md

File metadata and controls

59 lines (41 loc) · 1.1 KB

✨ Sample: Parsing data to JSON

%% 🔮 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;
Loading

💬 Question

  • 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}