Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prompts preview in Prompt Node #90

Closed
ianarawjo opened this issue Jul 7, 2023 · 7 comments
Closed

Add prompts preview in Prompt Node #90

ianarawjo opened this issue Jul 7, 2023 · 7 comments
Assignees
Labels
enhancement New feature or request high priority Necessary feature for a next release

Comments

@ianarawjo
Copy link
Owner

Currently there is no way to inspect (and hence debug) what prompts will be sent to LLMs in a prompt node, before sending them off. Add a button to inspect the queries, maybe with a ? to the header of the node.

@ianarawjo ianarawjo added enhancement New feature or request high priority Necessary feature for a next release labels Jul 7, 2023
@ianarawjo ianarawjo self-assigned this Jul 7, 2023
@ianarawjo
Copy link
Owner Author

Solved by #91 👍

hover-over-prompt-preview

@profplum700
Copy link

profplum700 commented Jul 10, 2023

This is so useful! Question: Will this work even with large prompts? I'm building some massive prompts. Could, for instance, there be a button that opens a scroll-able lightbox with collapsed prompts that can be expanded?

@ianarawjo
Copy link
Owner Author

Hi profplum, clicking on the new button shown above will bring up a scrollable lightbox (hovering over it only gives you a preview). However currently the lightbox just shows the prompts verbatim —there’s no collapse feature like in response inspectors.

How big are you prompts? It’s likely this is something we should give thought to. Maybe if a prompt is over 1024 characters or something it’s only displayed up to that point, then one has to click on it to expand it individually. What design makes sense to you?

@ianarawjo ianarawjo reopened this Jul 10, 2023
@profplum700
Copy link

One small problem at the moment: When you move your mouse into the prompt preview box, it disappears which means you can't access the vertical scroll bar. Also, the horizontal scroll bar doesn't seem to be needed.
promptsPreviewDisappears

I am currently playing with prompts that are 3300 chars across 69 lines.

I think opening the view of prompts should open all prompts, like how Response Inspector already works. A user may have a lot of prompts. They could use the filter function in Response Inspector to easily navigate to the prompt you want to inspect. I like how Response Inspector already works and you could repurpose it. It could be Prompt Preview Inspector 😁

@ianarawjo
Copy link
Owner Author

Hi there, like I said above, you can click the button to access a fullscreen view —the hover view is only for a quick preview. The fullscreen popup should give you ample room to explore.

@profplum700
Copy link

Completely missed that, sorry. Seeing the scrollbar made me want to mouse over and scroll it. I like how it works now well enough!

Maybe there should also be a tooltip like with the Play button to make it clear?

image

@ianarawjo
Copy link
Owner Author

Yes, maybe a tooltip and setting overflow:hidden will work. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority Necessary feature for a next release
Projects
None yet
Development

No branches or pull requests

2 participants