Testing Phoenix Experiment Feature with Toy Dataset and Error Fix
Hi Phoenix team, I鈥檓 trying out the experiment feature and I uploaded a toy dataset per documentation.
import phoenix as px
import pandas as pd
# Create a pandas DataFrame with examples
df = pd.DataFrame({
"question": ["Which team won the most games?", "Which team won the most games in 2015?", "Who led the league in 3 point shots?"],
"answer": ["Team A", "Team B", "Player X"]
})
# Upload the dataset to Phoenix
client = px.Client()
dataset = client.upload_dataset(
dataframe=df,
input_keys=["question"],
output_keys=["answer"],
dataset_name="nba-questions-v1"
)And when I run experiment, I get AttributeError: 'DataFrame' object has no attribute 'examples'
from phoenix.experiments import run_experiment
run_experiment(df, task=task, evaluators=[no_error, has_results])