Connecting to an Existing Phoenix Server in Docker: A Guide
Really enjoying getting to know Phoenix so far. Great platform! Now I am moving on to evals and following the quick start - https://docs.arize.com/phoenix/evaluation/evals During the first part of it there is the following code to launch Phoenix. import phoenix as px session = px.launch_app(trace=trace_ds) session.view() Since I am already running Phoenix on another server in a Docker container, how can I get access to a session from that instance? Is there a connect method or something? I tried the following with Client, but was unsuccessful. spans_df = px.Client(endpoint="http://192.168.1.69:6006").get_spans_dataframe() spans_df[["name", "span_kind", "attributes.input.value", "attributes.retrieval.documents"]].head()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[10], line 2
1 spans_df = px.Client(endpoint="http://192.168.1.69:6006").get_spans_dataframe()
----> 2 spans_df[["name", "span_kind", "attributes.input.value", "attributes.retrieval.documents"]].head()
TypeError: 'NoneType' object is not subscriptable
Same goes with the example notebook - https://colab.research.google.com/github/Arize-ai/phoenix/blob/main/tutorials/llm_ops_overview.ipynb How can I connect to an existing running Phoenix server in Docker versus launching a new one in code?
