Skip to content

Instantly share code, notes, and snippets.

@jeanmidevacc
Created May 28, 2025 22:48
Show Gist options
  • Save jeanmidevacc/4857b9a31718af39b27fb164e0bb5fcd to your computer and use it in GitHub Desktop.
Save jeanmidevacc/4857b9a31718af39b27fb164e0bb5fcd to your computer and use it in GitHub Desktop.
this is an example of prompt teste during my kaamelot project
prompt = """
You are given raw dialogues from a TV show script in HTML format.
Extract and return the dialogues in the following JSON format:
[
{
"character": "",
"dialogue": "",
"parenthetical": ""
}
]
Example input HTML:
<p><strong>Merlin:</strong> <em>(off)</em> Non, non, non on y va sûrement pas ! Vous me laissez le temps de me faire à l'idée !</p>
Expected output:
[
{
"character": "Merlin",
"dialogue": "Non, non, non on y va sûrement pas ! Vous me laissez le temps de me faire à l'idée !",
"parenthetical": "(off)"
}
]
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment