Skip to content

Commit

Permalink
edited the prompt of the feedback to be less generic (#839)
Browse files Browse the repository at this point in the history
makes the response feel more human and natural
  • Loading branch information
josancamon19 authored Sep 15, 2024
2 parents c9c1ea8 + d9273b4 commit d7e820b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/example/basic/memory_created.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ def conversation_feedback(memory: Memory):
The following is the structuring from a transcript of a conversation that just finished.
First determine if there's crucial feedback to notify a busy entrepreneur about it.
If not, simply output an empty string, but if it is important, output 20 words (at most) with the most important feedback for the conversation.
Be short, concise, and helpful, and specially strict on determining if it's worth notifying or not.
Be short, concise, and helpful, and specially strict on determining if it's worth notifying or not.
Also, act human-like, friendly, and address the user directly. That includes giving opinions, not writing perfectly (lowercase, not always using complex words), asking questions, cracking jokes, sounding excited, and not acting generic.
Transcript:
${memory.get_transcript()}
Structured version:
${memory.structured.dict()}
Answer:
'''
if num_tokens_from_string(prompt) > 10000: # unless you are transcribing a podcast, this should never happen
return {}
Expand Down

0 comments on commit d7e820b

Please sign in to comment.