rdancer / arbor-message-forwarder

Restore reply functionality in Arbor.sc by having all messages forwarded to your e-mail.
Other
0 stars 0 forks source link

Format as email #1

Closed rdancer closed 5 months ago

rdancer commented 5 months ago
  1. GPT-4:

Prompt: """The following e-mail lost its subject and line breaks. Restore them:

{message text}"""

  1. Parse ^Subject:(.*)
  2. Create a regexp from the rest of the chat message: re =/para1|para2|para3|.../
  3. s/{re}/\n&/g
  4. strip()

Doing it this way we preserve the message's integrity. If the model deviates from the message text, we simply fail to insert the line breaks.

TODO: keep trying until the model succeeds