Find answers from the community

Updated 3 months ago

How do I output the prompt before it is

How do I output the prompt before it is send to the llm for answer generation? I want to check the format and if everything is correct before sending to llm.
L
f
7 comments
I added it, but when I run a query it just outputs the response. Where do I have to set it to return the prompt ?
Attachment
image.png
you might have to add it at the start of your script, and restart the notebook
It worked, thanks a lot!

Does this handler also output the messagelist of a chat conversation?
It should, assuming the chat() method is being called πŸ‘
Do you know why the prompt is not being updated?
Attachment
image.png
Nevermind I had to move the update call a bit down. Works now. Thank you
Add a reply
Sign up and join the conversation on Discord