Skip to content

Commit 095f653

Browse files
feat: add support for arize-phoenix v15.x.x (#56)
* chore(deps-dev): bump the python-deps group with 6 updates Bumps the python-deps group with 6 updates: | Package | From | To | | --- | --- | --- | | [arize-phoenix](https://github.com/Arize-ai/phoenix) | `14.15.0` | `15.2.0` | | [langgraph](https://github.com/langchain-ai/langgraph) | `1.1.9` | `1.1.10` | | [hypothesis](https://github.com/HypothesisWorks/hypothesis) | `6.152.3` | `6.152.4` | | [ty](https://github.com/astral-sh/ty) | `0.0.32` | `0.0.34` | | [langchain](https://github.com/langchain-ai/langchain) | `1.2.15` | `1.2.17` | | [openai](https://github.com/openai/openai-python) | `2.32.0` | `2.33.0` | Updates `arize-phoenix` from 14.15.0 to 15.2.0 - [Release notes](https://github.com/Arize-ai/phoenix/releases) - [Changelog](https://github.com/Arize-ai/phoenix/blob/main/CHANGELOG.md) - [Commits](Arize-ai/phoenix@arize-phoenix-v14.15.0...arize-phoenix-v15.2.0) Updates `langgraph` from 1.1.9 to 1.1.10 - [Release notes](https://github.com/langchain-ai/langgraph/releases) - [Commits](langchain-ai/langgraph@1.1.9...1.1.10) Updates `hypothesis` from 6.152.3 to 6.152.4 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@hypothesis-python-6.152.3...hypothesis-python-6.152.4) Updates `ty` from 0.0.32 to 0.0.34 - [Release notes](https://github.com/astral-sh/ty/releases) - [Changelog](https://github.com/astral-sh/ty/blob/main/CHANGELOG.md) - [Commits](astral-sh/ty@0.0.32...0.0.34) Updates `langchain` from 1.2.15 to 1.2.17 - [Release notes](https://github.com/langchain-ai/langchain/releases) - [Commits](langchain-ai/langchain@langchain==1.2.15...langchain==1.2.17) Updates `openai` from 2.32.0 to 2.33.0 - [Release notes](https://github.com/openai/openai-python/releases) - [Changelog](https://github.com/openai/openai-python/blob/main/CHANGELOG.md) - [Commits](openai/openai-python@v2.32.0...v2.33.0) --- updated-dependencies: - dependency-name: arize-phoenix dependency-version: 15.2.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: python-deps - dependency-name: langgraph dependency-version: 1.1.10 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-deps - dependency-name: hypothesis dependency-version: 6.152.4 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-deps - dependency-name: ty dependency-version: 0.0.34 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-deps - dependency-name: langchain dependency-version: 1.2.17 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-deps - dependency-name: openai dependency-version: 2.33.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: python-deps ... Signed-off-by: dependabot[bot] <support@github.com> * test: fix test_append_adds_examples to reflect Phoenix versioning semantics * test: fix test_append_adds_examples to reflect Phoenix versioning semantics --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: zurfjereluhmie <zurfluh.jeremie@gmail.com>
1 parent 4431134 commit 095f653

4 files changed

Lines changed: 122 additions & 116 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
strategy:
7070
fail-fast: false
7171
matrix:
72-
phoenix-major: [13, 14]
72+
phoenix-major: [13, 14, 15]
7373

7474
steps:
7575
- uses: actions/checkout@v6

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ classifiers = [
2424
"Typing :: Typed",
2525
]
2626
dependencies = [
27-
"arize-phoenix>=13.0,<15",
27+
"arize-phoenix>=13.0,<16",
2828
"pandas>=2.0",
2929
"click>=8.0",
3030
"jsonschema>=4.0",
@@ -94,7 +94,7 @@ dev = [
9494
]
9595
demo = [
9696
"evalwire[langgraph,openai]",
97-
"arize-phoenix>=13.0,<15",
97+
"arize-phoenix>=13.0,<16",
9898
"langchain>=1.0,<2",
9999
"langchain-core>=1.0,<2",
100100
"langchain-openai>=1.0,<2",

tests/integration/test_uploader_integration.py

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,28 @@ def test_skip_does_not_duplicate(
6666
search_ds = phoenix_client.datasets.get_dataset(dataset=search_tag)
6767
assert len(search_ds) == 2
6868

69-
def test_append_adds_examples(
70-
self, phoenix_client, integration_csv: tuple[Path, str, str]
71-
):
72-
csv_path, search_tag, _router_tag = integration_csv
73-
uploader = DatasetUploader(
74-
csv_path=csv_path,
75-
phoenix_client=phoenix_client,
69+
def test_append_adds_examples(self, phoenix_client, tmp_path: Path):
70+
import uuid
71+
72+
tag = f"append_{uuid.uuid4().hex[:8]}"
73+
csv_2 = tmp_path / "initial.csv"
74+
csv_2.write_text(f"user_query,expected_output,tags\nq1,a1,{tag}\nq2,a2,{tag}\n")
75+
csv_3 = tmp_path / "append.csv"
76+
csv_3.write_text(
77+
f"user_query,expected_output,tags\nq3,a3,{tag}\nq4,a4,{tag}\nq5,a5,{tag}\n"
7678
)
77-
uploader.upload(on_exist="skip")
78-
count_before = len(phoenix_client.datasets.get_dataset(dataset=search_tag))
7979

80-
uploader.upload(on_exist="append")
81-
count_after = len(phoenix_client.datasets.get_dataset(dataset=search_tag))
80+
DatasetUploader(csv_path=csv_2, phoenix_client=phoenix_client).upload(
81+
on_exist="skip"
82+
)
83+
count_before = len(phoenix_client.datasets.get_dataset(dataset=tag))
84+
85+
DatasetUploader(csv_path=csv_3, phoenix_client=phoenix_client).upload(
86+
on_exist="append"
87+
)
88+
count_after = len(phoenix_client.datasets.get_dataset(dataset=tag))
8289

83-
assert count_after == count_before + 2 # 2 more "search" rows
90+
assert count_after == count_before + 3
8491

8592
def test_custom_keys(self, phoenix_client, tmp_path: Path):
8693
import uuid

0 commit comments

Comments
 (0)