how does prompt id differ from from prompt name or is it a one to one mapping?
馃敀[private user] is it possible to retrieve a prompt using the arizepromptclient by ID instead of name?
no prompt_id not version_id
馃敀[private user]
Hi Adam H. , Prompt name will map to one prompt ID. within a prompt, if you have multiple prompt versions, each of those can be differentiated with the version_id. for how to get these prompts into your code, you can run this code block, but replace with your prompt name:
from arize.experimental.prompt_hub import ArizePromptClient, Prompt, LLMProvider
client = ArizePromptClient(api_key=os.environ["ARIZE_API_KEY"], space_id=os.environ["ARIZE_SPACE_ID"])
//replace the line below with your prompt name
prompt = client.pull_prompt("test-basic")
//or if you want to pull all your prompts, you can run the following line
prompts = client.pull_prompts()more info on the code functions here: https://arize.com/docs/ax/reference/reference/prompt-hub-api#core-components In the UI, it might look something like this. The prompt ID & prompt name, found in the top left, will stay the same regardless of which version you are looking at. The version ID will change from version to version.
what i was wondering since there is a "prompt id" and a friendly copy function if ti was accessable via the sdk, but i suppose since its all graphql i could just whip my own thing up if really needed
(i was thinking about how to make it resilient to a product manager that may change the label by accident on the application)
