Sorry if I missed this in the docs, but is there example code for uploading datasets and running experiments to a deployed phoenix server? I tried doing this but it didn't work:
phoenix_client = px.Client(
endpoint="https://app.phoenix.arize.com",
api_key=PHOENIX_API_KEY
)
dataset = phoenix_client.upload_dataset(
...
)
The error I get is: HTTPStatusError: Client error '401 Unauthorized' for url 'https://app.phoenix.arize.com/v1/datasets/upload?sync=true'
The error you're encountering, HTTPStatusError: Client error '401 Unauthorized', suggests that there might be an issue with the authentication credentials being used. Ensure that the PHOENIX_API_KEY environment variable is correctly set and that the API key is valid. According to GitHub Issue #5162, setting the PHOENIX_API_KEY environment variable should resolve authentication issues when interacting with a Phoenix server.
Would you like more detail on setting up the environment variable or troubleshooting the API key?
Sources: - GitHub Issue #5162
馃挕聽Hint: Mention RunLLM in the thread for followups.
Hey Hain-Lee H. - the authentication strategy for managed phoenix right now is a bit different than the native phoenix authentication. You can find the header config in your managed phoenix config. LMK if you still face issues
I can ping the hosting team if needed
ah ok, so i should specify the headers arg instead of api_key?
Nice!
yup, i did
i do see this warning, but it still seems to work (i can upload a dataset): UserWarning: :warning::warning: The Phoenix server (6.0.0) and client (7.1.1) versions are severely mismatched. Upgrade either the client or server to ensure API compatibility
Yeah Hein-Lee, the servers will be updated to 7 at some point. You can ignore for now - it's just a warning in case we ship breaking API changes. There are none in 7.
