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

[ENHANCEMENT]: Print Prompt #6747

Open
jlopatec opened this issue Mar 8, 2025 · 1 comment
Open

[ENHANCEMENT]: Print Prompt #6747

jlopatec opened this issue Mar 8, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@jlopatec
Copy link
Collaborator

jlopatec commented Mar 8, 2025

I think you need a way to simple print the:
phoenix.client.types.prompts.PromptVersion object

I created a prompt, can't remember what my prompt vars were, Just want to see the message JSON as a string. I'm having to go back to the UI just to see the prompt as a string.

We should be able to choose a model format (say OpenAI) by default and just print. Example below:

from phoenix.client import Client

client = Client()

prompt_name = "article-bullet-summarizer"
client.prompts.get(prompt_identifier=prompt_name)

prompt = client.prompts.get(prompt_version_id="UHJvbXB0VmVyc2lvbjoy")

print(prompt)

@jlopatec jlopatec added enhancement New feature or request triage issues that need triage labels Mar 8, 2025
@github-project-automation github-project-automation bot moved this to 📘 Todo in phoenix Mar 8, 2025
@axiomofjoy
Copy link
Contributor

Makes sense

@mikeldking mikeldking removed the triage issues that need triage label Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📘 Todo
Development

No branches or pull requests

3 participants